/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
}

body{
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:#f4f7fb;
    color:#1f2937;
}


/* =====================================================
   HEADER
===================================================== */

.ksp-header{

    position:fixed;

    top:0;
    left:0;
    right:0;

    height:70px;

    background:#ffffff;

    border-bottom:1px solid #e5e7eb;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 24px;

    z-index:1000;
}


.ksp-header-left{

    display:flex;

    align-items:center;

    gap:15px;
}


.ksp-menu-btn{

    width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    background:#f3f6fa;

    cursor:pointer;

    font-size:20px;

    transition:.25s;
}


.ksp-menu-btn:hover{

    background:#e8eef6;

    transform:scale(1.05);
}


/* =====================================================
   LOGO
===================================================== */

.ksp-logo{

    display:flex;

    align-items:center;

    gap:10px;
}


.ksp-logo-icon{

    width:40px;
    height:40px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    display:flex;

    align-items:center;
    justify-content:center;

    color:white;

    font-size:14px;

    font-weight:700;
}


.ksp-logo-text{

    display:flex;

    flex-direction:column;
}


.ksp-logo-title{

    font-size:17px;

    font-weight:700;

    color:#111827;
}


.ksp-logo-subtitle{

    font-size:10px;

    color:#6b7280;

    margin-top:2px;
}


/* =====================================================
   PAGE TITLE
===================================================== */

.ksp-page-title{

    margin-left:25px;

    padding-left:25px;

    border-left:1px solid #e5e7eb;

    font-size:14px;

    font-weight:600;

    color:#4b5563;
}


/* =====================================================
   HEADER RIGHT
===================================================== */

.ksp-header-right{

    display:flex;

    align-items:center;

    gap:15px;
}


.ksp-notification{

    position:relative;

    width:42px;
    height:42px;

    border-radius:12px;

    background:#f8fafc;

    display:flex;

    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:18px;
}


.ksp-notification-badge{

    position:absolute;

    top:6px;
    right:6px;

    width:8px;
    height:8px;

    background:#ef4444;

    border-radius:50%;

    border:2px solid white;
}


/* =====================================================
   USER
===================================================== */

.ksp-user{

    display:flex;

    align-items:center;

    gap:10px;

    padding:5px 10px;

    border-radius:14px;
}


.ksp-user-photo{

    width:38px;
    height:38px;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6366f1
        );

    color:white;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:12px;

    font-weight:700;
}


.ksp-user-info{

    display:flex;

    flex-direction:column;
}


.ksp-user-name{

    font-size:13px;

    font-weight:700;
}


.ksp-user-role{

    font-size:11px;

    color:#6b7280;
}


/* =====================================================
   SIDEBAR
===================================================== */

.ksp-sidebar{

    position:fixed;

    top:70px;
    left:0;
    bottom:0;

    width:250px;

    background:#ffffff;

    border-right:1px solid #e5e7eb;

    padding:20px 14px;

    overflow-y:auto;

    transition:.3s;

    z-index:900;
}


.ksp-sidebar.closed{

    width:75px;
}


.ksp-sidebar.closed
.ksp-menu-text,

.ksp-sidebar.closed
.ksp-menu-arrow,

.ksp-sidebar.closed
.ksp-section-title{

    display:none;
}


.ksp-sidebar.closed
.ksp-menu-item{

    justify-content:center;
}


.ksp-section{

    margin-bottom:22px;
}


.ksp-section-title{

    padding:0 12px;

    margin-bottom:8px;

    font-size:10px;

    font-weight:700;

    color:#9ca3af;

    letter-spacing:1px;
}


.ksp-menu-item{

    width:100%;

    display:flex;

    align-items:center;

    gap:13px;

    padding:12px 13px;

    margin-bottom:4px;

    border-radius:12px;

    text-decoration:none;

    color:#4b5563;

    font-size:13px;

    cursor:pointer;

    transition:.25s;
}


.ksp-menu-item:hover{

    background:#f3f6fb;

    color:#2563eb;

    transform:translateX(2px);
}


.ksp-menu-item.active{

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color:white;

    box-shadow:
        0 5px 15px
        rgba(37,99,235,.20);
}


.ksp-menu-icon{

    width:22px;

    text-align:center;

    font-size:17px;

    flex-shrink:0;
}


.ksp-menu-text{

    flex:1;

    white-space:nowrap;
}


.ksp-menu-arrow{

    font-size:10px;

    transition:.3s;
}


.ksp-submenu-toggle.open
.ksp-menu-arrow{

    transform:rotate(180deg);
}


/* =====================================================
   SUBMENU
===================================================== */

.ksp-submenu{

    max-height:0;

    overflow:hidden;

    margin-left:35px;

    transition:
        max-height .3s ease;
}


.ksp-submenu.show{

    max-height:300px;
}


.ksp-submenu a{

    display:block;

    padding:9px 12px;

    margin:2px 0;

    border-radius:9px;

    color:#6b7280;

    text-decoration:none;

    font-size:12px;

    transition:.2s;
}


.ksp-submenu a:hover{

    background:#f3f6fb;

    color:#2563eb;
}


.ksp-submenu a.active{

    color:#2563eb;

    background:#eff6ff;

    font-weight:600;
}


/* =====================================================
   MAIN
===================================================== */

.ksp-main{

    margin-left:250px;

    padding-top:70px;

    min-height:calc(100vh - 70px);

    transition:.3s;
}


.ksp-main.expanded{

    margin-left:75px;
}


.ksp-content{

    padding:25px;
}


/* =====================================================
   FOOTER
===================================================== */

.ksp-footer{

    margin-left:250px;

    padding:18px 25px;

    background:#ffffff;

    border-top:1px solid #e5e7eb;

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#9ca3af;

    font-size:11px;

    transition:.3s;
}


.ksp-footer.expanded{

    margin-left:75px;
}


/* =====================================================
   OVERLAY
===================================================== */

.ksp-overlay{

    display:none;

    position:fixed;

    top:70px;
    left:0;
    right:0;
    bottom:0;

    background:
        rgba(0,0,0,.35);

    z-index:800;
}


.ksp-overlay.show{

    display:block;
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

    .ksp-header{

        padding:0 15px;
    }


    .ksp-logo-subtitle{

        display:none;
    }


    .ksp-page-title{

        display:none;
    }


    .ksp-user-info{

        display:none;
    }


    .ksp-sidebar{

        transform:
            translateX(-100%);

        width:250px;
    }


    .ksp-sidebar.mobile-show{

        transform:
            translateX(0);
    }


    .ksp-main{

        margin-left:0;
    }


    .ksp-main.expanded{

        margin-left:0;
    }


    .ksp-footer{

        margin-left:0;

        flex-direction:column;

        gap:5px;

        text-align:center;
    }


    .ksp-footer.expanded{

        margin-left:0;
    }


    .ksp-content{

        padding:15px;
    }

}