* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Strona logowania */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.login-card h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.login-card p {
    color: #666;
    margin-bottom: 25px;
}

/* Nagłówek */
.header {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header h1 {
    font-size: 22px;
    color: #2d3748;
}

.header-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Karty */
.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

/* Formularze */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.field-hint {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

.form-row.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline:hover,
.btn-outline.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.form-actions {
    margin-top: 20px;
}

/* Tabela */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.records-table th {
    background: #f7fafc;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.records-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #edf2f7;
}

.pressure-high { color: #e53e3e; font-weight: 600; }
.pressure-low { color: #3182ce; font-weight: 600; }
.pressure-pulse { color: #38a169; font-weight: 600; }

.result-cell {
    max-width: 250px;
    font-size: 13px;
}

.btn-delete {
    color: #e53e3e;
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    display: inline-block;
}

.btn-delete:hover {
    color: #c53030;
}

/* Aktualne dane */
.current-data {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.current-data h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2d3748;
}

.data-list {
    list-style: none;
}

.data-list li {
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Wskazówki norm */
.norm-hint {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.norm-hint ul {
    margin-left: 20px;
    margin-top: 5px;
}

.norm-hint li {
    margin: 3px 0;
}

/* Alerty */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.no-data {
    text-align: center;
    color: #a0aec0;
    padding: 30px;
    font-style: italic;
}

/* Adaptacja mobilna */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
    }
    
    .btn-outline {
        flex: 1;
        min-width: 80px;
    }
    
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}