/* CekDosis - Clean Modern Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0891b2;
    --primary-light: #06b6d4;
    --primary-dark: #0e7490;
    --primary-soft: #ecfeff;
    --accent: #e11d48;
    --accent-soft: #fff1f2;
    --success: #059669;
    --success-soft: #ecfdf5;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --info: #2563eb;
    --info-soft: #eff6ff;
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-section: #f1f5f9;
    --bg-input: #ffffff;
    --bg-table-head: #0891b2;
    --bg-table-row: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --border: #e2e8f0;
    --border-focus: #0891b2;
    
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition: 0.2s ease;
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { 
    font-family: var(--font); 
    background: var(--bg-page); 
    color: var(--text-primary); 
    line-height: 1.6; 
    min-height: 100vh; 
    min-height: 100dvh; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.site-logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-logo i { color: var(--accent); font-size: 1.4rem; }
.site-logo span { color: var(--primary-dark); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text-secondary); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.site-nav a:hover { color: var(--primary); background: var(--bg-section); }
.menu-toggle { display: none; background: var(--bg-section); border: 1px solid var(--border); color: var(--text-primary); width: 38px; height: 38px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 56px 0 48px;
    text-align: center;
}
.hero-section h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.hero-section .lead { font-size: clamp(0.95rem, 2.5vw, 1.1rem); opacity: 0.9; max-width: 640px; margin: 0 auto 24px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--accent); color: var(--text-white); box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25); }
.btn-primary:hover { background: #be123c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.2); color: var(--text-white); border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--text-white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }
.stat-card { background: rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 14px 8px; text-align: center; backdrop-filter: blur(10px); }
.stat-number { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.7rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* Section */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--primary); font-size: 1.2em; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--primary-soft); color: var(--primary); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.card-badge { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1050; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); overflow-y: auto; padding: 20px; }
.modal-overlay.show { display: block; }
.modal-box { max-width: 920px; margin: 20px auto; background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px; position: relative; box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg-section); border: 1px solid var(--border); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

/* Tables */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 0.9rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--primary); color: var(--text-white); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table td { background: var(--bg-card); }
.data-table tr:nth-child(even) td { background: var(--bg-table-row); }
.data-table tr:hover td { background: var(--primary-soft); }
.data-table tr:last-child td { border-bottom: none; }
.badge-status { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-normal { background: var(--success-soft); color: var(--success); }
.badge-high { background: var(--danger-soft); color: var(--danger); }
.badge-low { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); font-size: 0.85rem; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary); font-size: 1rem; font-family: inherit; transition: var(--transition); min-height: 44px; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; appearance: none; }

/* Result Card */
.result-card { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-top: 16px; }
.result-card h4 { color: var(--primary-dark); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.result-highlight { font-size: 1.8rem; font-weight: 800; color: var(--primary); text-align: center; margin: 12px 0; }

/* Symptom Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: var(--transition); background: var(--bg-card); color: var(--text-secondary); user-select: none; }
.tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.tag.active { background: var(--primary); color: var(--text-white); border-color: var(--primary); }
.tag.danger { border-color: var(--danger); }
.tag.danger.active { background: var(--danger); color: var(--text-white); border-color: var(--danger); }

/* Search Input */
.search-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-primary); font-size: 1rem; margin-bottom: 16px; transition: var(--transition); }
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 2fr 1fr; } }
.about-text p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; line-height: 1.7; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: 0.9rem; font-weight: 500; }
.feature-item i { font-size: 1.1rem; }

/* Disclaimer */
.disclaimer-bar { background: var(--warning-soft); border-top: 2px solid var(--warning); padding: 12px 0; }
.disclaimer-bar p { color: #92400e; font-size: 0.85rem; line-height: 1.5; }

/* Footer */
.site-footer { background: var(--primary-dark); color: var(--text-white); padding: 20px 0; text-align: center; font-size: 0.85rem; }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { color: var(--text-white); }

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .site-header .container { padding: 10px 14px; }
    .site-logo { font-size: 1.1rem; }
    .hero-section { padding: 36px 0 32px; }
    .hero-section h1 { font-size: 1.7rem; }
    .hero-section .lead { font-size: 0.88rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .hero-stats { gap: 8px; }
    .stat-card { padding: 10px 4px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }
    .section { padding: 32px 0; }
    .section-title { font-size: 1.15rem; }
    .card { padding: 18px; }
    .card-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .modal-overlay { padding: 8px; }
    .modal-box { padding: 16px; margin: 8px auto; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .form-control { font-size: 16px; }
    .footer-links { flex-direction: column; gap: 6px; }
}

/* Print */
@media print {
    .site-header, .site-footer, .disclaimer-bar, .hero-buttons, .modal-close { display: none; }
    body { background: white; color: black; }
    .modal-overlay { display: block; position: static; background: none; }
    .modal-box { box-shadow: none; border: none; }
    .data-table { box-shadow: none; }
}
