/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Inter","Segoe UI",sans-serif;
    background:#f4f7fb;
    color:#1e293b;
}

.container{
    width:94%;
    max-width:1420px;
    margin:auto;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header{
    width:100%;
    background:#ffffff;
    border-bottom:1px solid #e2e8f0;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    overflow:visible;
}

.header .container{
    width:100%;
    max-width:1280px;
    margin-left:auto;
    margin-right:auto;
    padding-left:40px;
    padding-right:40px;
}

.navbar{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding-left:6px;
    padding-right:6px;
}

/* ==========================================================================
   BRAND / LOGO NAVBAR
   ========================================================================== */
.brand{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-shrink:0;
    width:68px;
    min-width:68px;
    text-decoration:none;
    margin-left:-140px;
}

.logo{
    width:40px;
    height:40px;
    min-width:40px;
    border-radius:12px;
    background:linear-gradient(135deg,#1d4ed8,#38bdf8);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight:900;
    font-size:13px;
    box-shadow:0 8px 18px rgba(37,99,235,.18);
}

.logo-img{
    width:80px;
    height:80px;
    min-width:80px;
    border-radius:12px;
    overflow:hidden;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 18px rgba(37,99,235,.15);
    transition:.25s ease;
}

.logo-img:hover{
    transform:translateY(-2px);
}

.logo-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.brand-text{
    display:none;
}

/* ==========================================================================
   NAV MENU
   ========================================================================== */
.nav-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    flex:1;
    min-width:0;
}

.nav-menu{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    list-style:none;
    gap:4px;
    flex-wrap:nowrap;
}

.nav-menu li{
    position:relative;
}

.nav-menu a{
    text-decoration:none;
    color:#475569;
    font-size:13.5px;
    font-weight:650;
    padding:10px 12px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:7px;
    transition:.2s ease;
    white-space:nowrap;
}

.nav-menu a:hover{
    background:#eff6ff;
    color:#2563eb;
}

.nav-menu a.active{
    background:#2563eb;
    color:#fff;
    box-shadow:0 8px 20px rgba(37,99,235,.22);
}

.nav-menu a i{
    font-size:17px;
}

/* ==========================================================================
   DROPDOWN & SUBMENU
   ========================================================================== */
.dropdown-menu,
.submenu{
    position:absolute;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:8px;
    list-style:none;
    box-shadow:0 18px 45px rgba(15,23,42,.12);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.18s ease;
    z-index:9999;
}

.dropdown-menu{
    top:100%;
    left:0;
    min-width:290px;
}

.dropdown::after{
    content:"";
    position:absolute;
    left:0;
    top:100%;
    width:100%;
    height:14px;
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.dropdown-menu a{
    justify-content:space-between;
    padding:11px 12px;
    font-size:13px;
}

.sub-dropdown{
    position:relative;
}

.submenu{
    top:0;
    left:100%;
    min-width:270px;
}

.sub-dropdown::after{
    content:"";
    position:absolute;
    top:0;
    right:-14px;
    width:14px;
    height:100%;
}

.sub-dropdown:hover > .submenu,
.submenu:hover{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

/* ==========================================================================
   AUTH BUTTONS
   ========================================================================== */
.auth-menu{
    display:flex;
    align-items:center;
    gap:6px;
    border-left:1px solid #e2e8f0;
    padding-left:12px;
    flex-shrink:0;
}

.auth-link{
    text-decoration:none;
    font-size:12.5px;
    font-weight:750;
    padding:7px 11px;
    border-radius:8px;
    transition:.2s;
    white-space:nowrap;
}

.auth-login{
    color:#475569;
}

.auth-login:hover{
    background:#eff6ff;
    color:#2563eb;
}

.auth-register{
    background:#eff6ff;
    color:#2563eb;
    border:1.5px solid #2563eb;
}

.auth-register:hover{
    background:#2563eb;
    color:#fff;
}

.menu-toggle{
    display:none;
    border:none;
    background:#2563eb;
    color:#fff;
    padding:9px 12px;
    border-radius:10px;
    font-size:20px;
    cursor:pointer;
}

/* ==========================================================================
   HERO SECTION BERANDA
   ========================================================================== */
.hero{
    padding:85px 0;
    background:
    linear-gradient(135deg,rgba(30,64,175,.96),rgba(15,23,42,.96)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80");
    background-size:cover;
    background-position:center;
    color:#fff;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:42px;
    align-items:center;
}

.hero-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.24);
    padding:8px 14px;
    border-radius:999px;
    margin-bottom:20px;
    font-size:13px;
}

.hero h1{
    font-size:46px;
    line-height:1.15;
    margin-bottom:20px;
    font-weight:850;
}

.hero p{
    font-size:16px;
    line-height:1.8;
    color:#dbeafe;
    margin-bottom:28px;
}

.hero-action{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-light{
    text-decoration:none;
    padding:12px 20px;
    border-radius:12px;
    font-weight:750;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:.2s;
}

.btn-primary{
    background:#fff;
    color:#2563eb;
}

.btn-light{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
}

.btn-primary:hover,
.btn-light:hover{
    transform:translateY(-3px);
}

/* ==========================================================================
   HERO PANEL SUMMARY
   ========================================================================== */
.hero-panel{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    border-radius:24px;
    padding:24px;
    backdrop-filter:blur(12px);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:18px;
}

.status{
    background:#dbeafe;
    color:#1d4ed8;
    padding:5px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
}

.panel-list{
    display:grid;
    gap:12px;
}

.panel-item{
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.13);
    border-radius:15px;
    padding:14px;
    display:flex;
    gap:12px;
}

.panel-item i{
    color:#38bdf8;
    font-size:22px;
}

.panel-item h4{
    font-size:14px;
    margin-bottom:4px;
}

.panel-item p{
    font-size:12px;
    color:#dbeafe;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.section{
    padding:70px 0;
}

.section-title{
    text-align:center;
    margin-bottom:38px;
}

.section-title span{
    color:#2563eb;
    font-weight:800;
    font-size:13px;
    letter-spacing:1px;
}

.section-title h2{
    font-size:32px;
    margin:8px 0;
}

.section-title p{
    color:#64748b;
    font-size:14px;
}

.features{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.feature-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:24px;
    transition:.25s;
    box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.feature-card:hover{
    transform:translateY(-6px);
    border-color:#2563eb;
    box-shadow:0 18px 36px rgba(15,23,42,.08);
}

.feature-icon{
    width:48px;
    height:48px;
    border-radius:14px;
    background:#dbeafe;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    margin-bottom:15px;
}

.feature-card h3{
    margin-bottom:8px;
    font-size:16px;
}

.feature-card p{
    color:#64748b;
    font-size:13px;
    line-height:1.6;
}

/* ==========================================================================
   ORANG TUA PAGE - TAMBAH, DATA, DETAIL
   ========================================================================== */
.hero-gradient{
    background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 55%,#38bdf8 100%);
}

.glass-card{
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.25);
}

.form-input{
    transition:all .3s ease;
    border:1.5px solid #e5e7eb;
}

.form-input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.1);
    outline:none;
}

.section-card{
    border-radius:16px;
    transition:transform .2s ease;
}

.section-card:hover{
    transform:translateY(-2px);
}

select.form-input{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right .75rem center;
    background-size:1.5em 1.5em;
    padding-right:2.5rem;
    appearance:none;
}

/* ==========================================================================
   FORM MODERN
   ========================================================================== */
.form-label{
    display:block;
    font-size:14px;
    font-weight:700;
    color:#475569;
    margin-bottom:8px;
}

.form-modern-input{
    width:100%;
    padding:12px 16px;
    border:1.5px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
    color:#0f172a;
    transition:.25s ease;
    outline:none;
}

.form-modern-input:focus{
    border-color:#2563eb;
    background:#fff;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

/* ==========================================================================
   BADGES & TABLE ACTION
   ========================================================================== */
.badge-blue,
.badge-pink,
.badge-green,
.badge-red,
.badge-yellow,
.badge-orange,
.badge-gray{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}

.badge-blue{
    background:#dbeafe;
    color:#1d4ed8;
}

.badge-pink{
    background:#fce7f3;
    color:#be185d;
}

.badge-green{
    background:#dcfce7;
    color:#15803d;
}

.badge-red{
    background:#fee2e2;
    color:#b91c1c;
}

.badge-yellow{
    background:#fef9c3;
    color:#a16207;
}

.badge-orange{
    background:#ffedd5;
    color:#c2410c;
}

.badge-gray{
    background:#f1f5f9;
    color:#64748b;
}

.table-action{
    width:36px;
    height:36px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.2s ease;
}

.table-action.blue{
    background:#dbeafe;
    color:#2563eb;
}

.table-action.yellow{
    background:#fef9c3;
    color:#a16207;
}

.table-action.red{
    background:#fee2e2;
    color:#dc2626;
}

.table-action:hover{
    transform:translateY(-2px);
    filter:brightness(.97);
}

/* ==========================================================================
   TEXT LIMIT / LINE CLAMP SAFE
   ========================================================================== */
.line-clamp-2{
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:21px;
    max-height:42px;
}

table th{
    white-space:nowrap;
}

table td{
    vertical-align:top;
}

/* MODAL DETAIL */
#detailModal{
    animation:fadeModal .2s ease;
}

@keyframes fadeModal{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

/* ==========================================================================
   FOOTER STYLE
   ========================================================================== */
.footer{
    width:100%;
    background:#0f172a;
    color:#cbd5e1;
    padding:42px 0 20px;
    overflow:hidden;
}

.footer .container{
    width:100%;
    max-width:1280px;
    margin-left:auto;
    margin-right:auto;
    padding-left:40px;
    padding-right:40px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:30px;
    margin-bottom:24px;
}

.footer h3,
.footer h4{
    color:#fff;
    margin-bottom:12px;
}

.footer p,
.footer a{
    color:#cbd5e1;
    display:block;
    text-decoration:none;
    line-height:1.7;
    font-size:13.5px;
}

.footer a:hover{
    color:#fff;
}

.copyright{
    text-align:center;
    border-top:1px solid #1e293b;
    padding-top:16px;
    font-size:13px;
    color:#94a3b8;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:1280px){
    .header .container,
    .footer .container{
        padding-left:28px;
        padding-right:28px;
    }

    .brand{
        width:62px;
        min-width:62px;
        margin-left:-18px;
    }

    .nav-menu a{
        font-size:12.8px;
        padding:9px 10px;
        gap:6px;
    }

    .auth-link{
        font-size:12px;
        padding:7px 9px;
    }
}

@media(max-width:1180px){
    .menu-toggle{
        display:block;
        flex-shrink:0;
    }

    .navbar{
        flex-wrap:wrap;
        padding:14px 0;
    }

    .brand{
        width:auto;
        max-width:none;
        min-width:0;
        margin-left:0;
    }

    .nav-right{
        width:100%;
        display:none;
        flex-direction:column;
        align-items:flex-start;
        margin-top:14px;
        padding-top:14px;
        border-top:1px solid #e2e8f0;
    }

    .nav-right.show{
        display:flex;
    }

    .nav-menu{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
    }

    .nav-menu li,
    .nav-menu a{
        width:100%;
    }

    .dropdown-menu,
    .submenu{
        position:static;
        width:100%;
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        display:none;
        box-shadow:none;
        margin-top:5px;
    }

    .dropdown:hover > .dropdown-menu,
    .sub-dropdown:hover > .submenu{
        display:block;
    }

    .auth-menu{
        width:100%;
        border-left:none;
        padding-left:0;
        padding-top:10px;
    }

    .hero-grid,
    .features,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:34px;
    }
}

@media(max-width:768px){
    .container{
        width:92%;
    }

    .header .container,
    .footer .container{
        padding-left:20px;
        padding-right:20px;
    }

    .logo,
    .logo-img{
        width:38px;
        height:38px;
        min-width:38px;
        border-radius:11px;
    }

    .hero{
        padding:65px 0;
    }

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:14px;
    }

    .footer{
        padding:34px 0 18px;
    }
}
/* ==========================================================================
   DASHBOARD SUMMARY CARD
   ========================================================================== */

.bg-light{
    background:#f8fafc;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-top:10px;
}

.dashboard-card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:24px;

    padding:26px 24px;

    display:flex;
    align-items:center;
    gap:18px;

    transition:.25s ease;

    box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.dashboard-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 36px rgba(15,23,42,.08);
    border-color:#bfdbfe;
}

.dashboard-icon{
    width:62px;
    height:62px;
    min-width:62px;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;
}

.dashboard-icon.blue{
    background:#dbeafe;
    color:#2563eb;
}

.dashboard-icon.pink{
    background:#fce7f3;
    color:#db2777;
}

.dashboard-icon.green{
    background:#dcfce7;
    color:#16a34a;
}

.dashboard-icon.purple{
    background:#ede9fe;
    color:#7c3aed;
}

.dashboard-card h3{
    font-size:32px;
    line-height:1;
    font-weight:800;
    color:#0f172a;
    margin-bottom:6px;
}

.dashboard-card p{
    font-size:14px;
    color:#64748b;
    font-weight:500;
}

/* RESPONSIVE */

@media(max-width:1100px){

    .dashboard-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:640px){

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .dashboard-card{
        padding:22px;
    }

    .dashboard-icon{
        width:54px;
        height:54px;
        min-width:54px;
        font-size:24px;
    }

    .dashboard-card h3{
        font-size:26px;
    }

}