/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
}

/* ================= LAYOUT ================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.header{
    position:fixed;
    top:0;
    left:0;
    width:260px;
    height:100vh;
    background:linear-gradient(180deg,#0f766e,#0d9488);
    padding:22px 18px;
    box-shadow:4px 0 25px rgba(0,0,0,.15);
    z-index:1000;
    transition:.3s ease;
}

/* ================= LOGO ================= */
.logo-area{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:30px;
}

.logo-area img.logo{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    background:#ecfeff;
    padding:4px;
}

.logo-area h2{
    color:#ecfeff;
    font-size:18px;
    font-weight:600;
}

/* ================= NAVIGATION ================= */
.header nav{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.header nav a{
    text-decoration:none;
    color:#ecfeff;
    padding:12px 14px;
    border-radius:12px;
    font-size:15px;
    display:flex;
    align-items:center;
    gap:10px;
    transition:.25s ease;
    position:relative;
}

/* ===== HOVER EFFECT ===== */
.header nav a:hover{
    background:rgba(255,255,255,.18);
    transform:translateX(6px);
}

/* ===== ACTIVE MENU ===== */
.header nav a.active{
    background:#ffffff;
    color:#0f766e;
    font-weight:600;
    transform:translateX(6px);
    box-shadow:0 6px 14px rgba(0,0,0,.1);
}

/* Hover tidak merusak active */
.header nav a.active:hover{
    background:#ffffff;
    color:#0f766e;
}

/* ===== ACTIVE INDICATOR LINE ===== */
.header nav a.active::before{
    content:"";
    position:absolute;
    left:-18px;
    top:0;
    width:5px;
    height:100%;
    background:#ffffff;
    border-radius:0 6px 6px 0;
}

/* ================= LOGOUT BUTTON ================= */
.btn-logout{
    margin-top:12px;
    background:rgba(255,255,255,.15);
}

.btn-logout:hover{
    background:#ef4444;
    color:#fff;
}

/* ================= CONTENT AREA ================= */
.content{
    margin-left:260px;
    padding:30px;
    width:100%;
}

/* ================= MENU TOGGLE (MOBILE) ================= */
.menu-toggle{
    display:none;
    position:fixed;
    top:18px;
    right:18px;
    z-index:1200;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    width:26px;
    height:3px;
    background:#0f766e;
    margin-bottom:5px;
    border-radius:3px;
}

/* ================= OVERLAY ================= */
.overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    z-index:900;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .header{
        transform:translateX(-100%);
    }

    .header.active{
        transform:translateX(0);
    }

    .content{
        margin-left:0;
    }

    .menu-toggle{
        display:block;
    }

    .overlay.active{
        display:block;
    }
}
