:root {
    --cmb-blue: #0057d9;
    --cmb-blue-dark: #003a91;
    --cmb-yellow: #ffd400;
    --cmb-yellow-dark: #d9a900;
    --cmb-bg: #f4f7fb;
    --cmb-text: #182033;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: var(--cmb-bg);
    color: var(--cmb-text);
}

a {
    text-decoration: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, .24), transparent 34%),
        linear-gradient(135deg, #001b47 0%, #0057d9 55%, #021736 100%);
}

.check-card {
    width: 100%;
    max-width: 920px;
    background: rgba(255, 255, 255, .98);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.card-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.brand-panel {
    background: linear-gradient(145deg, #001f5f, #0057d9);
    padding: 42px 32px;
    color: white;
    position: relative;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--cmb-yellow);
    border-radius: 50%;
    right: -60px;
    bottom: -70px;
    opacity: .18;
}

.logo {
    width: 150px;
    max-width: 80%;
    margin-bottom: 22px;
}

.brand-panel h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.brand-panel p {
    opacity: .88;
    line-height: 1.7;
}

.form-panel {
    padding: 42px 36px;
}

.badge {
    display: inline-block;
    background: rgba(255, 212, 0, .22);
    color: #8d6900;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.muted {
    color: #697386;
    line-height: 1.6;
}

.input-group {
    margin: 24px 0 14px;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input, textarea, select {
    width: 100%;
    border: 1px solid #d9e0ea;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--cmb-blue);
    box-shadow: 0 0 0 4px rgba(0, 87, 217, .12);
}

.btn {
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cmb-yellow), #ffb700);
    color: #13203b;
    box-shadow: 0 10px 24px rgba(255, 184, 0, .3);
}

.btn-blue {
    background: linear-gradient(135deg, var(--cmb-blue), var(--cmb-blue-dark));
    color: white;
}

.btn-danger {
    background: #e53935;
    color: white;
}

.btn-light {
    background: #eef3fb;
    color: #15305f;
}

.result {
    margin-top: 24px;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #e7ecf4;
    background: #fbfdff;
}

.status-active {
    color: #087443;
    background: #e8fff3;
    border: 1px solid #bdf3d5;
}

.status-expired {
    color: #9a1b1b;
    background: #fff0f0;
    border: 1px solid #ffd0d0;
}

.status-box {
    padding: 14px;
    border-radius: 16px;
    font-weight: 900;
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-item {
    padding: 14px;
    background: white;
    border-radius: 14px;
    border: 1px solid #edf1f7;
}

.info-label {
    font-size: 12px;
    color: #697386;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 800;
}

.notfound {
    background: #fff7e0;
    border: 1px solid #ffe6a5;
    color: #7a5500;
    padding: 16px;
    border-radius: 16px;
    margin-top: 20px;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.sidebar {
    background: #071a3d;
    color: white;
    padding: 24px;
}

.sidebar img {
    width: 120px;
    margin-bottom: 18px;
}

.sidebar h3 {
    margin: 0 0 22px;
}

.sidebar a {
    display: block;
    color: #dce8ff;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 212, 0, .16);
    color: var(--cmb-yellow);
}

.content {
    padding: 28px;
}

.topbar {
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(7, 26, 61, .08);
    margin-bottom: 22px;
}

.table-card, .form-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(7, 26, 61, .08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px 10px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    font-size: 14px;
}

th {
    color: #53627a;
    font-size: 12px;
    text-transform: uppercase;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.alert-success {
    background: #e8fff3;
    color: #087443;
}

.alert-danger {
    background: #fff0f0;
    color: #9a1b1b;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #071a3d, #0057d9);
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.login-box img {
    width: 140px;
    display: block;
    margin: 0 auto 20px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .card-top, .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .brand-panel, .form-panel {
        padding: 30px 22px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
@media(max-width:600px){

    body{
        font-size:11px;
    }

    h1{
        font-size:20px !important;
    }

    h2{
        font-size:18px !important;
    }

    h3{
        font-size:16px !important;
    }

    p,
    label,
    td,
    th,
    a,
    span,
    div,
    input,
    select,
    textarea,
    button{
        font-size:11px !important;
    }

    input,
    select,
    textarea{
        padding:10px !important;
    }

    .btn{
        padding:10px !important;
        border-radius:10px !important;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .logo{
        width:85px !important;
    }

    .card,
    .box,
    .table-card,
    .topbar{
        padding:14px !important;
        border-radius:14px !important;
    }

    .sidebar a{
        font-size:11px !important;
        padding:8px 10px !important;
    }

}


/* CMB FINAL FIX - sidebar rapat dengan content */
.admin-layout{display:flex !important;grid-template-columns:none !important;width:100% !important;min-height:100vh !important;overflow-x:hidden !important}
.sidebar{flex:0 0 260px !important;width:260px !important;min-width:260px !important;max-width:260px !important;height:100vh !important;max-height:100vh !important;position:sticky !important;top:0 !important;margin:0 !important;overflow-y:auto !important;overflow-x:hidden !important;box-sizing:border-box !important}
.content,.main,.main-content,.page-content,.admin-content,.dashboard-content,.wrapper > main{flex:1 1 auto !important;min-width:0 !important;width:auto !important;max-width:none !important;margin:0 !important;margin-left:0 !important;left:auto !important;position:relative !important;box-sizing:border-box !important;overflow-x:hidden !important}
.content{height:100vh !important;overflow-y:auto !important;overflow-x:hidden !important;padding:28px !important}
.sidebar,.sidebar *{box-sizing:border-box !important}
.sidebar a,.side-link,.menu-toggle,.submenu a{max-width:100% !important;overflow:hidden !important;white-space:normal !important;word-break:break-word !important;overflow-wrap:anywhere !important}
.submenu{max-width:100% !important;overflow:hidden !important}
.table-wrap,.table-responsive,.data-scroll,.scroll-x,.table-scroll{width:100% !important;max-width:100% !important;overflow-x:auto !important}
.card,.table-card,.form-card,.win{max-width:100% !important;overflow:hidden}
@media(max-width:900px){
    .admin-layout{display:block !important;overflow:auto !important}
    .sidebar{position:relative !important;width:100% !important;min-width:100% !important;max-width:100% !important;height:auto !important;max-height:none !important}
    .content,.main,.main-content,.page-content,.admin-content,.dashboard-content,.wrapper > main{width:100% !important;height:auto !important}
    .content{height:auto !important;padding:16px !important}
}
