/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background-image:
        linear-gradient(
            rgba(255,255,255,.2),
            rgba(255,255,255,.2)
        ),
        url("background.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
    min-height:100vh;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;
    background:linear-gradient(180deg,#0d2f8d,#123fbb);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition:.35s ease;
    z-index:1000;
}

.sidebar::before{
    content:"";
    position:absolute;
    inset:0;
    background:url("sidebar.png") center bottom no-repeat;
    background-size:100% auto;
    opacity:.15;
}

.sidebar>*{
    position:relative;
    z-index:2;
}

/* =====================================================
   LOGO
===================================================== */

.logo{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    padding:28px 20px;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.logo i{
    font-size:24px;
}

.logo h2{
    font-size:22px;
    font-weight:bold;
}

/* =====================================================
   MENU
===================================================== */

.sidebar ul{
    list-style:none;
    padding:20px 15px;
}

.sidebar ul li{
    margin-bottom:10px;
}

.sidebar ul li a{
    display:flex;
    align-items:center;
    gap:14px;
    color:#fff;
    text-decoration:none;
    padding:14px 18px;
    border-radius:14px;
    transition:.3s;
    font-size:15px;
}

.sidebar ul li a:hover{
    background:rgba(255,255,255,.12);
    transform:translateX(5px);
}

.sidebar ul li a.active{
    background:#1d63da;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.sidebar ul li a i{
    width:20px;
    text-align:center;
}

/* =====================================================
   CONTENT
===================================================== */

.content{
    margin-left:250px;
    padding:35px;
    min-height:100vh;
    transition:.35s;
}

/* =====================================================
   OVERLAY
===================================================== */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.overlay.show{
    opacity:1;
    visibility:visible;
}

/* =====================================================
   HAMBURGER
===================================================== */

.menu-toggle{
    display:none;
    position:fixed;
    top:15px;
    left:15px;
    width:45px;
    height:45px;
    border:none;
    border-radius:10px;
    background:#1e3a8a;
    color:#fff;
    cursor:pointer;
    font-size:20px;
    z-index:1001;
}

/* =====================================================
   TOPBAR
===================================================== */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:#fff;
    padding:25px 35px;
    border-radius:20px;
    margin-bottom:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.topbar h1{
    color:#1e3a8a;
    font-size:38px;
    font-weight:700;
}

.topbar p{
    margin-top:8px;
    color:#666;
    font-size:16px;
    line-height:1.6;
}

.user-box{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 22px;
    border-radius:50px;
    background:#1e3a8a;
    color:#fff;
    font-size:15px;
    font-weight:500;
    white-space:nowrap;
    box-shadow:0 8px 20px rgba(30,58,138,.25);
}

.user-box i{
    font-size:18px;
}

/* =====================================================
   CARDS
===================================================== */

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:35px;
}

.card{
    background:#fff;
    border-radius:20px;
    padding:22px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
    position:relative;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.card-top{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:18px;
}

.icon-box{
    width:65px;
    height:65px;
    border-radius:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    flex-shrink:0;
}

.card h3{
    color:#666;
    font-size:17px;
    margin-bottom:5px;
    line-height:1.4;
}

.card h2{
    font-size:42px;
    font-weight:bold;
}

.card p{
    font-size:15px;
    color:#666;
    line-height:1.5;
}

/* =====================================================
   WARNA CARD
===================================================== */

.blue .icon-box{
    background:#eaf2ff;
    color:#2563eb;
}

.blue h2{
    color:#2563eb;
}

.orange .icon-box{
    background:#fff2e8;
    color:#f97316;
}

.orange h2{
    color:#f97316;
}

.green .icon-box{
    background:#eaf9ef;
    color:#2f855a;
}

.green h2{
    color:#2f855a;
}

.purple .icon-box{
    background:#f1ebff;
    color:#6d28d9;
}

.purple h2{
    color:#6d28d9;
}

/* =====================================================
   WAVE
===================================================== */

.wave{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(
        90deg,
        rgba(37,99,235,.25),
        rgba(37,99,235,.05)
    );
}

.orange .wave{
    background:linear-gradient(
        90deg,
        rgba(249,115,22,.25),
        rgba(249,115,22,.05)
    );
}

.green .wave{
    background:linear-gradient(
        90deg,
        rgba(34,197,94,.25),
        rgba(34,197,94,.05)
    );
}

.purple .wave{
    background:linear-gradient(
        90deg,
        rgba(109,40,217,.25),
        rgba(109,40,217,.05)
    );
}

/* =====================================================
   WELCOME BOX
===================================================== */

.welcome-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:35px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(8px);
    padding:30px;
    border-radius:20px;
    margin-bottom:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.welcome-text{
    flex:1;
}

.welcome-text h2{
    color:#1e3a8a;
    font-size:28px;
    margin-bottom:15px;
}

.welcome-text p{
    color:#555;
    font-size:15px;
    line-height:1.9;
    text-align:justify;
}

.welcome-img{
    width:220px;
    max-width:100%;
    height:auto;
    flex-shrink:0;
}

/* =====================================================
   ACTIVITY
===================================================== */

.activity-box{
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.activity-box h2{
    color:#1e3a8a;
    margin-bottom:20px;
    font-size:28px;
}

/* =====================================================
   TABLE
===================================================== */

.table-responsive{
    width:100%;
    overflow-x:auto;
}

.table-responsive::-webkit-scrollbar{
    height:8px;
}

.table-responsive::-webkit-scrollbar-thumb{
    background:#b5c7f3;
    border-radius:10px;
}

table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
}

table th{
    background:#1e3a8a;
    color:#fff;
    padding:15px;
    text-align:left;
    font-size:15px;
}

table td{
    padding:15px;
    border-bottom:1px solid #eee;
    font-size:14px;
    line-height:1.6;
}

table tr:hover{
    background:#eef4ff;
}

/* =====================================================
   STATUS
===================================================== */

.status-selesai{
    display:inline-block;
    padding:7px 14px;
    border-radius:30px;
    background:#dcfce7;
    color:#15803d;
    font-size:13px;
    font-weight:600;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Tablet */
@media (max-width:992px){

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .welcome-box{
        flex-direction:column;
        text-align:center;
    }

    .welcome-text p{
        text-align:left;
    }

    .welcome-img{
        width:180px;
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    /* Tombol Hamburger */

    .menu-toggle{
        display:flex;
        justify-content:center;
        align-items:center;
    }

    /* Sidebar */

    .sidebar{
        transform:translateX(-100%);
        width:260px;
        box-shadow:5px 0 20px rgba(0,0,0,.2);
    }

    .sidebar.show{
        transform:translateX(0);
    }

    /* Content */

    .content{
        margin-left:0;
        padding:75px 15px 20px;
    }

    /* Topbar */

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
        padding:20px;
    }

    .topbar h1{
        font-size:28px;
    }

    .topbar p{
        font-size:15px;
    }

    .user-box{
        width:100%;
        justify-content:center;
    }

    /* Card */

    .cards{
        grid-template-columns:1fr;
    }

    .card{
        padding:20px;
    }

    .card h2{
        font-size:36px;
    }

    /* Welcome */

    .welcome-box{
        padding:20px;
    }

    .welcome-text h2{
        font-size:24px;
    }

    .welcome-img{
        width:150px;
    }

    /* Activity */

    .activity-box{
        padding:20px;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width:480px){

    .content{
        padding:70px 12px 15px;
    }

    .topbar{
        border-radius:15px;
    }

    .topbar h1{
        font-size:24px;
    }

    .topbar p{
        font-size:14px;
    }

    .card-top{
        gap:12px;
    }

    .icon-box{
        width:55px;
        height:55px;
        font-size:24px;
    }

    .card h3{
        font-size:15px;
    }

    .card h2{
        font-size:32px;
    }

    .welcome-text h2{
        font-size:22px;
    }

    .welcome-text p{
        font-size:14px;
    }

    .activity-box h2{
        font-size:22px;
    }

    table{
        min-width:650px;
    }

}