* { box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2d3d;
    margin: 0;
}

/* ---- Login ---- */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-box {
    background: #fff;
    padding: 32px 36px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 320px;
}
.login-box h1 { font-size: 18px; margin-top: 0; margin-bottom: 20px; color: #1f4e78; }
.login-box label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: bold; }
.login-box input { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccd3dc; border-radius: 4px; }
.login-box button {
    width: 100%; padding: 10px; margin-top: 8px; background: #1f4e78; color: #fff;
    border: none; border-radius: 4px; font-size: 14px; cursor: pointer;
}
.login-box button:hover { background: #163a5c; }

/* ---- Layout umum ---- */
.topbar {
    background: #1f4e78; color: #fff; padding: 10px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.topbar .brand { font-weight: bold; font-size: 16px; margin-right: 24px; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.topbar nav a { color: #dce8f5; text-decoration: none; font-size: 13px; }
.topbar nav a:hover { color: #fff; text-decoration: underline; }
.topbar .user-info { font-size: 13px; }
.topbar .user-info a { color: #dce8f5; }

.content { width: 100%; margin: 24px 0; padding: 0 20px 60px; box-sizing: border-box; }
.content h1 { font-size: 20px; color: #1f4e78; margin-bottom: 4px; }
.content h2 { font-size: 15px; color: #1f4e78; margin-top: 28px; }
.hint { font-size: 12px; color: #666; }

/* ---- Alert ---- */
.alert { padding: 10px 14px; border-radius: 4px; font-size: 13px; margin: 12px 0; }
.alert-info { background: #e2efda; color: #375623; }
.alert-error { background: #fce4e4; color: #7a1c1c; }
.alert-warning { background: #fff2cc; color: #7a5c00; }

/* ---- Cards (dashboard) ---- */
.cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.card {
    background: #fff; border-radius: 6px; padding: 16px 20px; min-width: 180px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.card-label { font-size: 12px; color: #666; margin-bottom: 6px; }
.card-value { font-size: 20px; font-weight: bold; color: #1f4e78; }

/* ---- Form ---- */
.form-inline, .form-stack {
    background: #fff; padding: 16px 20px; border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.form-inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-stack label, .form-inline label { font-size: 12px; font-weight: bold; display: block; }
.form-stack label { margin-bottom: 12px; }
.form-inline input, .form-inline select,
.form-stack input, .form-stack select {
    display: block; margin-top: 4px; padding: 7px 8px; border: 1px solid #ccd3dc;
    border-radius: 4px; font-size: 13px;
}
.form-inline button, .form-stack button, .btn {
    background: #1f4e78; color: #fff; border: none; padding: 9px 16px;
    border-radius: 4px; font-size: 13px; cursor: pointer; text-decoration: none;
    display: inline-block;
}
.form-inline button:hover, .form-stack button:hover, .btn:hover { background: #163a5c; }
.btn-kecil {
    background: #e8eef4; color: #1f4e78; border: 1px solid #c3d3e0; padding: 4px 10px;
    border-radius: 4px; font-size: 12px; cursor: pointer; text-decoration: none;
}
.btn-hapus { background: #fce4e4; color: #7a1c1c; border-color: #f0b8b8; }

/* ---- Tabel ---- */
.tabel { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.tabel th, .tabel td { padding: 9px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #eef1f4; }
.tabel th { background: #eef4fa; color: #1f4e78; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.tabel tr:hover td { background: #f8fafc; }
.tabel input[type=number] { width: 90px; padding: 5px; border: 1px solid #ccd3dc; border-radius: 4px; }

/* ---- Tugas Tambahan checkbox list (fix alignment) ---- */
.tugas-tambahan-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-bottom: 8px;
}
.tugas-tambahan-list input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
}

/* ---- Sidebar layout ---- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; flex-shrink: 0; background: #1f4e78; color: #fff;
    overflow: hidden; transition: width 0.2s ease;
}
.sidebar-brand { font-weight: bold; font-size: 16px; padding: 16px 20px; white-space: nowrap; }
.sidebar-nav { display: flex; flex-direction: column; padding: 4px 8px 20px; }
.sidebar-nav a {
    color: #dce8f5; text-decoration: none; font-size: 13px;
    padding: 9px 12px; border-radius: 4px; white-space: nowrap;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar-sep { height: 1px; background: rgba(255,255,255,0.18); margin: 8px 12px; }

.app-shell.sidebar-collapsed .sidebar { width: 0; }

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar-mini {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; background: #fff; border-bottom: 1px solid #e0e4e8;
}
.hamburger-btn {
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: #1f4e78; padding: 4px 10px; border-radius: 4px;
}
.hamburger-btn:hover { background: #eef4fa; }
.topbar-mini .user-info { font-size: 13px; }
.topbar-mini .user-info a { color: #1f4e78; }

/* ---- Dashboard v2: badge status ---- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: bold;
}
.badge-terkunci { background: #e2efda; color: #375623; }
.badge-dibuka { background: #fff2cc; color: #7a5c00; }
.badge-draft { background: #e8eef4; color: #1f4e78; }
.badge-kosong { background: #f1f1f1; color: #999; }
.card.card-accent { border-left: 4px solid #2E75B6; }
