/* Bagian 2 */
/* =================================================== */

/*==================================================
    TOPBAR
==================================================*/
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
}

.topbar .left{
    display:flex;
    align-items:center;
    gap:20px;
    flex:1;
}

.topbar .right{
    display:flex;
    align-items:center;
    gap:20px;
}

/*==================================================
    MENU BUTTON
==================================================*/
.menu-btn{
    width:48px;
    height:48px;
    border:none;
    border-radius:14px;
    background:#fff;
    box-shadow:var(--shadow);
    cursor:pointer;
    font-size:18px;
    transition:.3s;
}

.menu-btn:hover{
    background:var(--primary);
    color:#fff;
}

/*==================================================
    SEARCH BOX
==================================================*/
.search{
    flex:1;
    background:#fff;
    border-radius:16px;
    display:flex;
    align-items:center;
    padding:0 18px;
    height:55px;
    box-shadow:var(--shadow);
}

.search i{
    color:#999;
    margin-right:12px;
    font-size:15px;
}

.search input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    color:#444;
    font-family:'Poppins',sans-serif;
}

.search input::placeholder{
    color:#aaa;
}

/*==================================================
    NOTIFICATION
==================================================*/

.notif{
    width:50px;
    height:50px;
    border:none;
    background:#fff;
    border-radius:15px;
    box-shadow:var(--shadow);
    cursor:pointer;
    font-size:18px;
    transition:.3s;
    position:relative;
}

.notif:hover{
    background:var(--primary);
    color:#fff;
}

.notif::after{
    content:"";
    position:absolute;
    top:12px;
    right:13px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:#ef4444;
}

/*==================================================
    PROFILE
==================================================*/

.profile{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    padding:8px 18px 8px 8px;
    border-radius:18px;
    box-shadow:var(--shadow);
}

.profile img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

.profile strong{
    display:block;
    font-size:15px;
}

.profile span{
    font-size:13px;
    color:#777;
}

/*==================================================
    WELCOME
==================================================*/
.welcome{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    margin-bottom:30px;
}

.welcome h1{
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;
}

.welcome p{
    color:#777;
    font-size:15px;
}

/*==================================================
    DATE BOX
==================================================*/
.date-box{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    padding:20px 28px;
    border-radius:20px;
    text-align:center;
    min-width:230px;
    box-shadow:0 15px 35px rgba(37,99,235,.25);
}

.date-box strong{
    display:block;
    font-size:15px;
    margin-bottom:10px;
    font-weight:600;
}

.date-box span{
    font-size:28px;
    font-weight:700;
    letter-spacing:2px;
}

/*==================================================
    DASHBOARD CARDS
==================================================*/

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:30px;
}

.card{
    background:#fff;
    border-radius:22px;
    padding:25px;
    display:flex;
    align-items:center;
    gap:20px;
    box-shadow:var(--shadow);
    transition:.35s;
    cursor:pointer;
}

.card:hover{
    transform:translateY(-6px);
}

.card .icon{
    width:70px;
    height:70px;
    border-radius:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:28px;
    flex-shrink:0;
}

.card span{
    color:#777;
    font-size:14px;
    display:block;
}

.card h2{
    margin:6px 0;
    font-size:32px;
    font-weight:700;
}

.card small{
    color:#999;
    font-size:13px;
}

/*==================================================
    CARD COLORS
==================================================*/
.card.blue .icon{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
}

.card.green .icon{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}

.card.orange .icon{
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
}

.card.red .icon{
    background:linear-gradient(135deg,#ef4444,#f87171);
}

/*==================================================
    RESPONSIVE
==================================================*/
@media(max-width:1200px){
    .cards{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){
    .topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .topbar .left{
        width:100%;
    }

    .topbar .right{
        justify-content:flex-end;
    }

    .welcome{
        flex-direction:column;
        align-items:flex-start;
    }

    .date-box{
        width:100%;
    }

}

@media(max-width:768px){
    .cards{
        grid-template-columns:1fr;
    }
}

@media(max-width:576px){
    .search{
        height:50px;
    }
    
    .profile{
        padding:6px 12px 6px 6px;
    }

    .profile img{
        width:42px;
        height:42px;
    }

    .welcome h1{
        font-size:26px;
    }
    .date-box span{
        font-size:22px;
    }
}