* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f5f7;
    margin: 0;
    color: #26333d;
}
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-box {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    width: 340px;
}
.auth-box h1 {
    font-size: 20px;
    margin: 0 0 4px;
    text-align: center;
}
.auth-box p.sub {
    text-align: center;
    color: #6b7a86;
    font-size: 13px;
    margin-bottom: 20px;
}
label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #44525c;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select {
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 14px;
    border: 1px solid #d3dbe1;
    border-radius: 6px;
    font-size: 14px;
}
button, .btn {
    display: inline-block;
    background: #2f7d5b;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: #256349; }
.btn-secondary { background: #6b7a86; }
.btn-secondary:hover { background: #57646e; }
.btn-danger { background: #b83b3b; }
.btn-danger:hover { background: #942f2f; }
.full { width: 100%; }
.auth-box .switch {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
}
.msg-err {
    background: #fdecec;
    color: #a33;
    border: 1px solid #f3c1c1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}
.msg-ok {
    background: #eaf6ee;
    color: #256349;
    border: 1px solid #b9e2c6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}

.topbar {
    background: #1f2e35;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .brand { font-weight: 600; }
.topbar nav a {
    color: #cfe0e8;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}
.topbar nav a:hover, .topbar nav a.active { color: #fff; font-weight: 600; }
.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 20px;
}
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 700; color: #2f7d5b; }
.stat-card .label { font-size: 13px; color: #6b7a86; margin-top: 4px; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #eaeef1;
}
th { color: #6b7a86; font-weight: 600; font-size: 13px; }
.tag {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.tag-normal { background: #eaf6ee; color: #256349; }
.tag-gemuk { background: #fff4e0; color: #a06a00; }
.tag-obesitas { background: #fdecec; color: #a33; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.actions a { margin-right: 10px; font-size: 13px; }
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

@media print {
    .topbar, .toolbar, .no-print { display: none !important; }
}
