/* style.css - qSOFA Calculator Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
}

.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pharmacy-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.input-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input.input-error {
    border-color: #ef4444;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.score-circle.low {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.score-circle.medium {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.score-circle.high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.tab-button {
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tab-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tab-button.active {
    background: #2563eb;
    color: white;
}

.tab-button.active:hover {
    background: #1d4ed8;
}

.btn-primary {
    background: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: #22c55e;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
}

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

.btn-danger {
    background: #ef4444;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-print {
    background: transparent;
    color: #2563eb;
    font-size: 1.5rem;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-print:hover {
    color: #1d4ed8;
    transform: scale(1.1);
}

.guide-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #0ea5e9;
}

.guide-box.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left-color: #f59e0b;
}

.guide-box.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left-color: #ef4444;
}

.guide-box.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-left-color: #22c55e;
}

.admin-link {
    color: #94a3b8;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}

.admin-link:hover {
    color: #475569;
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
}

.modal-overlay-donasi {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 99999;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-modal {
    animation: fadeInModal 0.3s ease-out;
}

.donasi-badge {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #c4b5fd;
}

.donasi-badge:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #8b5cf6;
}

.rating-star {
    color: #f59e0b;
    font-size: 1.25rem;
}

.rating-star.empty {
    color: #d1d5db;
}

.testimonial-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 9999px;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 9999px;
}

@media print {
    .no-print {
        display: none !important;
    }
    .print-report {
        display: block !important;
    }
    #formArea {
        display: none !important;
    }
    #resultArea {
        display: none !important;
    }
    .card-glass {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
        padding: 0 !important;
    }
    body {
        background: white !important;
        padding: 20px !important;
    }
    .report-title {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
    }
    .report-subtitle {
        font-size: 14px !important;
        color: #475569 !important;
    }
    .report-box {
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 24px !important;
        margin-top: 16px !important;
    }
    .score-circle {
        width: 100px !important;
        height: 100px !important;
        font-size: 3rem !important;
    }
    .report-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
    .report-card {
        background: #f8fafc !important;
        padding: 12px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    .antibiotic-box {
        border: 2px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 16px !important;
        margin-top: 16px !important;
    }
    .antibiotic-category {
        display: inline-block !important;
        padding: 4px 12px !important;
        border-radius: 9999px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    .print-icon {
        display: none !important;
    }
}

.print-report {
    display: none;
}

@media (max-width: 640px) {
    .score-circle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}