*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI",Arial,sans-serif;
    background:#f4f7fb;
    color:#1f2937;
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:linear-gradient(180deg,#063970,#0b5ea8);
    color:#fff;
    min-height:100vh;
    position:fixed;
    left:0;
    top:0;
    padding:20px;
    transition:.3s;
    z-index:1000;
}

.sidebar-header{
    text-align:center;
    margin-bottom:35px;
}

.sidebar-logo{
    font-size:24px;
    font-weight:700;
}

.sidebar-subtitle{
    font-size:12px;
    opacity:.8;
}

.sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.menu-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.menu-item:hover,
.menu-item.active{
    background:rgba(255,255,255,.15);
}

.menu-item svg{
    width:20px;
    height:20px;
}

.sidebar-footer{
    position:absolute;
    bottom:20px;
    left:20px;
    right:20px;
}

.collapse-menu{
    width:100%;
    border:0;
    background:rgba(255,255,255,.12);
    color:#fff;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
}

.main-area{
    margin-left:260px;
    width:calc(100% - 260px);
    min-height:100vh;
    transition:.3s;
}

.topbar{
    height:70px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    border-bottom:1px solid #e5e7eb;
}

.topbar-left,
.topbar-right{
    display:flex;
    align-items:center;
}

.menu-toggle{
    width:42px;
    height:42px;
    border:0;
    background:#f1f5f9;
    color:#063970;
    border-radius:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.menu-toggle svg{
    width:22px;
}

.brand{
    margin-left:20px;
    display:flex;
    flex-direction:column;
}

.brand-name{
    font-size:20px;
    font-weight:700;
    color:#063970;
}

.brand-system{
    font-size:12px;
    color:#64748b;
}

.topbar-button{
    position:relative;
    border:0;
    background:none;
    cursor:pointer;
    color:#063970;
}

.topbar-button svg{
    width:22px;
}

.notification-dot{
    position:absolute;
    top:0;
    right:0;
    width:8px;
    height:8px;
    background:#dc2626;
    border-radius:50%;
}

.divider{
    width:1px;
    height:35px;
    background:#e5e7eb;
    margin:0 20px;
}

.profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.profile-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#063970;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.profile-icon svg{
    width:20px;
}

.profile-info{
    display:flex;
    flex-direction:column;
}

.profile-info strong{
    font-size:14px;
    color:#1e293b;
}

.profile-info span{
    font-size:12px;
    color:#64748b;
}

.profile-action{
    border:0;
    background:none;
    cursor:pointer;
    color:#64748b;
}

.profile-action svg{
    width:20px;
}

.content{
    padding:30px;
}

.dashboard-content{
    width:100%;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
    margin-top:25px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:14px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    gap:18px;
    transition:.25s;
}

.card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.card svg{
    width:38px;
    height:38px;
    color:#063970;
    flex-shrink:0;
}

.card h3{
    font-size:14px;
    color:#64748b;
    font-weight:500;
    margin-bottom:5px;
}

.card strong{
    font-size:30px;
    color:#111827;
    font-weight:700;
}

.btn{
    padding:10px 18px;
    border-radius:8px;
    border:0;
    cursor:pointer;
}

.footer{
    display:flex;
    justify-content:center;
    gap:20px;
    padding:18px 30px;
    color:#64748b;
    font-size:13px;
    border-top:1px solid #e5e7eb;
    background:#fff;
}

.sidebar-collapsed .sidebar{
    width:80px;
}

.sidebar-collapsed .sidebar span,
.sidebar-collapsed .sidebar-subtitle{
    display:none;
}

.sidebar-collapsed .sidebar-logo{
    font-size:18px;
}

.sidebar-collapsed .menu-item{
    justify-content:center;
}

.sidebar-collapsed .collapse-menu{
    justify-content:center;
}

.sidebar-collapsed .main-area{
    margin-left:80px;
    width:calc(100% - 80px);
}

@media(max-width:900px){

    .sidebar{
        width:80px;
    }

    .sidebar span,
    .sidebar-subtitle{
        display:none;
    }

    .menu-item{
        justify-content:center;
    }

    .main-area{
        margin-left:80px;
        width:calc(100% - 80px);
    }

}

@media(max-width:600px){

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

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

    .main-area{
        margin-left:0;
        width:100%;
    }

    .topbar{
        padding:0 15px;
    }

    .content{
        padding:15px;
    }

    .profile-info{
        display:none;
    }

}