/* CekDosis - Modern Beautiful CSS (Mobile-First) */

:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-glow: rgba(13, 148, 136, 0.35);
    --accent: #e11d48;
    --accent-light: #fb7185;
    --success: #16a34a;
    --warning: #ca8a04;
    --info: #3b82f6;
    --bg-0: #0a0f1a;
    --bg-1: #0f172a;
    --bg-2: #1e293b;
    --bg-light: #f0fdfa;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: #cbd5e1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg-0); color: var(--text); line-height: 1.6; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(13, 148, 136, 0.15), transparent), radial-gradient(ellipse 60% 40% at 80% 10%, rgba(59, 130, 246, 0.1), transparent), radial-gradient(ellipse 70% 50% at 50% 100%, rgba(225, 29, 72, 0.08), transparent); pointer-events: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(10, 15, 26, 0.8); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); transition: var(--transition); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 60px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.logo i { color: var(--primary-light); font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--primary-glow)); }
.logo .highlight { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-light); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav a:hover, .nav a:active { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.mobile-menu-btn { display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.mobile-menu-btn:active { transform: scale(0.95); }
.hero { position: relative; z-index: 1; padding: 48px 0 40px; text-align: center; }
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: clamp(0.95rem, 2.5vw, 1.1rem); color: var(--text-light); margin-bottom: 28px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 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: 48px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); box-shadow: 0 4px 16px var(--primary-glow); }
.btn-primary:hover { box-shadow: 0 6px 24px var(--primary-glow); transform: translateY(-2px); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--primary-light); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 400px; margin: 32px auto 0; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 8px; text-align: center; backdrop-filter: blur(10px); transition: var(--transition); }
.stat-card:hover { background: var(--bg-card-hover); border-color: var(--primary-light); transform: translateY(-2px); }
.stat-number { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.section { position: relative; z-index: 1; padding: 48px 0; }
.section.bg-light { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 700; color: var(--white); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.section-title i { color: var(--primary-light); font-size: 1.3em; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: var(--transition); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.tool-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tool-card:hover::before, .tool-card:active::before { opacity: 0.3; }
.tool-card:hover, .tool-card:active { transform: translateY(-4px); border-color: var(--primary-light); box-shadow: var(--shadow-glow); }
.tool-icon { font-size: 2.5rem; color: var(--primary-light); margin-bottom: 16px; filter: drop-shadow(0 0 12px var(--primary-glow)); }
.tool-card h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.tool-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.tool-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tool-panel { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; padding: 16px; animation: fadeIn 0.2s ease; }
.tool-panel.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tool-panel .container { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; max-width: 900px; margin: 0 auto; position: relative; animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.close-btn { position: sticky; top: 8px; float: right; background: var(--accent); color: var(--white); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10; margin-bottom: 8px; }
.close-btn:active { transform: scale(0.9); }
.about-content { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .about-content { grid-template-columns: 2fr 1fr; } }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.7; }
.about-features { display: flex; flex-direction: column; gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; color: var(--success); font-size: 0.9rem; font-weight: 500; }
.feature-item i { font-size: 1.1rem; }
.disclaimer { background: rgba(202, 138, 4, 0.1); border-top: 1px solid rgba(202, 138, 4, 0.3); padding: 16px 0; }
.disclaimer p { color: #fbbf24; font-size: 0.85rem; line-height: 1.6; }
.footer { background: var(--bg-1); border-top: 1px solid var(--border); color: var(--text-muted); padding: 24px 0; text-align: center; font-size: 0.85rem; }
.footer-links { margin-top: 12px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--primary-light); text-decoration: none; font-weight: 500; transition: var(--transition); padding: 4px 8px; }
.footer-links a:hover { color: var(--white); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 1rem; font-family: inherit; transition: var(--transition); min-height: 44px; -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-glow); background: rgba(255, 255, 255, 0.08); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' 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; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.symptom-search { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 1rem; margin-bottom: 16px; transition: var(--transition); }
.symptom-search:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-glow); }
.symptom-list, .diagnosis-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.symptom-tag, .diagnosis-tag { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: var(--transition); background: rgba(255, 255, 255, 0.04); color: var(--text-light); touch-action: manipulation; min-height: 36px; display: inline-flex; align-items: center; }
.symptom-tag:hover, .diagnosis-tag:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(13, 148, 136, 0.1); }
.symptom-tag.active, .diagnosis-tag.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-color: var(--primary-light); box-shadow: 0 2px 8px var(--primary-glow); }
.symptom-result, .assessment-result { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; animation: fadeIn 0.3s ease; }
.dosage-form, .assessment-form, .lab-form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .dosage-form, .assessment-form, .lab-form { grid-template-columns: 1fr 1fr; } }
.dosage-highlight { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 12px 0; text-align: center; }
.dosage-result { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; animation: fadeIn 0.3s ease; }
.lab-result { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; animation: fadeIn 0.3s ease; }
.lab-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.lab-normal { background: rgba(22, 163, 74, 0.2); color: #4ade80; }
.lab-high { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.lab-low { background: rgba(202, 138, 4, 0.2); color: #fbbf24; }
.careplan-output { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; white-space: pre-wrap; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.7; max-height: 60vh; overflow-y: auto; color: var(--text-light); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header .container { padding: 10px 12px; }
    .logo { font-size: 1.15rem; }
    .logo i { font-size: 1.3rem; }
    .hero { padding: 32px 0 28px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .hero-stats { gap: 8px; }
    .stat-card { padding: 12px 6px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }
    .section { padding: 32px 0; }
    .section-title { font-size: 1.2rem; }
    .tool-card { padding: 20px; }
    .tool-icon { font-size: 2rem; }
    .tool-panel { padding: 8px; }
    .tool-panel .container { padding: 20px 16px; border-radius: var(--radius-md); }
    .close-btn { position: fixed; top: 12px; right: 12px; }
    input, select, textarea { font-size: 16px; }
    .footer-links { flex-direction: column; gap: 8px; }
}
@supports (padding: max(0px)) {
    .header .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .tool-panel { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: light) {
    :root { --bg-0: #f0fdfa; --bg-1: #ffffff; --bg-2: #f1f5f9; --bg-card: rgba(255, 255, 255, 0.8); --bg-card-hover: rgba(255, 255, 255, 0.95); --text: #1e293b; --text-light: #475569; --text-muted: #64748b; --border: #cbd5e1; --shadow-sm: 0 2px 8px rgba(0,0,0,0.06); --shadow-md: 0 8px 24px rgba(0,0,0,0.08); --shadow-lg: 0 16px 48px rgba(0,0,0,0.1); }
    body::before { background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(13, 148, 136, 0.08), transparent), radial-gradient(ellipse 60% 40% at 80% 10%, rgba(59, 130, 246, 0.05), transparent); }
    .header { background: rgba(255, 255, 255, 0.85); }
    .tool-panel .container { background: var(--bg-1); }
    input, select, textarea { background: var(--bg-2); color: var(--text); }
    .symptom-search { background: var(--bg-2); color: var(--text); }
    .symptom-tag, .diagnosis-tag { background: var(--bg-2); color: var(--text-light); }
    .close-btn { position: fixed; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }