:root {
    --primary: #ffcc02;
    --dark: #343344;
    --bg: #f8fafc;
    --white: #ffffff;
    --gray: #94a3b8;
    --radius: 3rem;
    --shadow: 0 15px 35px -5px rgba(52, 51, 68, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg); color: var(--dark); overflow-x: hidden; min-height: 100vh; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* Header & Nav */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; padding: 1.2rem 0; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 45px; cursor: pointer; }
nav { display: flex; gap: 1rem; align-items: center; }
nav a { text-decoration: none; color: var(--gray); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; padding: 0.8rem 1.5rem; border-radius: 2rem; transition: 0.3s; cursor: pointer; }
nav a:hover, nav a.active { color: var(--dark); background: var(--primary); }
.btn-logout { background: #fee2e2; color: #ef4444; border: none; font-weight: 800; padding: 0.6rem 1.2rem; border-radius: 2rem; cursor: pointer; font-size: 0.7rem; }

/* Dashboard Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.dashboard-header { padding: 3rem 0; text-align: left; }
.dashboard-header h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; }
.badge { background: var(--primary); padding: 0.3rem 1rem; border-radius: 2rem; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }

/* Health Bars */
.metrics-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.metric-item .label-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.9rem; }
.progress-bg { height: 12px; background: #f1f5f9; border-radius: 1rem; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 1rem; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Buttons */
.btn { border: none; font-weight: 800; cursor: pointer; transition: 0.3s; text-transform: uppercase; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--primary); color: var(--dark); padding: 1.2rem 2.5rem; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255,204,2,0.4); }
.btn-sm { padding: 0.8rem 1.5rem; font-size: 0.7rem; }
.w-100 { width: 100%; }

/* Auth */
.auth-container { max-width: 450px; margin: 10vh auto; text-align: center; }
.auth-logo { height: 70px; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-weight: 800; font-size: 0.75rem; color: var(--gray); text-transform: uppercase; margin-bottom: 0.5rem; padding-left: 1.5rem; }
.form-control { width: 100%; padding: 1.1rem 2rem; border-radius: var(--radius); border: 2px solid #f1f5f9; background: #f8fafc; font-size: 1rem; outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--primary); background: #fff; }
.auth-footer { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-footer a { color: var(--dark); font-weight: 800; cursor: pointer; font-size: 0.8rem; text-decoration: underline; }

/* Toasts */
#toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 10000; }
.toast { background: var(--dark); color: white; padding: 1rem 2rem; border-radius: 2rem; margin-top: 1rem; box-shadow: var(--shadow); border-left: 5px solid var(--primary); animation: slideIn 0.3s forwards; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
