/* PEWS Calculator Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

.header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.patient-info, .vital-signs {
    margin-bottom: 30px;
}

.patient-info h2, .vital-signs h2 {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.parameter-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.parameter-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.parameter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.parameter-header i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.parameter-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.parameter-header .unit {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.parameter-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.parameter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.score-display {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    transition: all 0.3s ease;
}

.score-display.score-0 {
    background: #dcfce7;
    color: #166534;
}

.score-display.score-1 {
    background: #fef3c7;
    color: #92400e;
}

.score-display.score-2 {
    background: #fed7aa;
    color: #9a3412;
}

.score-display.score-3 {
    background: #fee2e2;
    color: #991b1b;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
}

.btn-reset {
    background: #6b7280;
    color: white;
}

.btn-reset:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-calculate {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.results {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 2px solid #e2e8f0;
}

.results h2 {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.total-score {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.total-score.stabil {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
}

.total-score.perhatian {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
}

.total-score.waspada {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border: 2px solid #f97316;
}

.total-score.kritis {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 10px;
}

.category-info {
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-info h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-info p {
    color: #6b7280;
    line-height: 1.6;
}

.recommendations {
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-list {
    list-style: none;
    padding: 0;
}

.recommendation-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.recommendation-list li::before {
    content: "✓";
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-breakdown {
    margin-bottom: 30px;
}

.score-breakdown h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.breakdown-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-item .parameter-name {
    font-weight: 600;
    color: #374151;
}

.breakdown-item .parameter-score {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f4f6;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-save {
    background: #22c55e;
    color: white;
}

.btn-save:hover {
    background: #16a34a;
}

.btn-print {
    background: #3b82f6;
    color: white;
}

.btn-print:hover {
    background: #2563eb;
}

.btn-new {
    background: #8b5cf6;
    color: white;
}

.btn-new:hover {
    background: #7c3aed;
}

.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 20px;
    }

    .parameters-grid {
        grid-template-columns: 1fr;
    }

    .score-summary {
        grid-template-columns: 1fr;
    }

    .actions, .result-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for results */
.results {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }

    .header {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }

    .actions, .result-actions {
        display: none;
    }

    .parameter-card {
        break-inside: avoid;
    }
}
