/*==========================================================
  MIDAL INNOVATIONS LTD.
  UNIVERSAL SIDEBAR
  Version: 1.0.0
==========================================================*/

/*==========================================================
PAGE LAYOUT
==========================================================*/

.page-layout {

    display: grid;

    grid-template-columns: 320px minmax(0, 1fr);

    gap: 3rem;

    align-items: start;

}

/*==========================================================
STICKY SIDEBAR
==========================================================*/

.page-sidebar {

    position: sticky;

    top: 140px;

    align-self: start;

    width: 100%;

    z-index: 10;

}

/*==========================================================
SIDEBAR CARD
==========================================================*/

.sidebar-card {

    background: #ffffff;

    border: 1px solid #E7EDF7;

    border-radius: 24px;

    padding: 2rem;

    box-shadow: 0 12px 35px rgba(13, 44, 110, .08);

    transition: .35s ease;

}

.sidebar-card:hover {

    box-shadow: 0 18px 45px rgba(13, 44, 110, .12);

}

/*==========================================================
PAGE LABEL
==========================================================*/

.sidebar-label {

    display: inline-block;

    font-size: .9rem;

    font-weight: 600;

    color: #6B7280;

    margin-bottom: .4rem;

}

/*==========================================================
TITLE
==========================================================*/

.sidebar-card h2 {

    font-size: 2rem;

    line-height: 1.2;

    color: var(--primary);

    margin-bottom: .8rem;

    font-weight: 700;

}

/*==========================================================
DESCRIPTION
==========================================================*/

.sidebar-card p {

    color: #6B7280;

    margin-bottom: 2rem;

    line-height: 1.7;

}

/*==========================================================
NAVIGATION
==========================================================*/

.sidebar-nav ul {

    list-style: none;

    margin: 0;

    padding: 0;

    display: flex;

    flex-direction: column;

    gap: .45rem;

}

/*==========================================================
NAVIGATION LINKS
==========================================================*/

.sidebar-nav a {

    display: flex;

    align-items: center;

    gap: .9rem;

    padding: 1rem 1.15rem;

    border-radius: 14px;

    text-decoration: none;

    color: #2C3646;

    font-weight: 600;

    transition: .3s ease;

    position: relative;

}

.sidebar-nav a:hover {

    background: #F5F8FD;

    color: var(--primary);

    transform: translateX(4px);

}

/*==========================================================
ACTIVE LINK
==========================================================*/

.sidebar-nav a.active {

    background: var(--primary);

    color: #ffffff;

    transform: translateX(6px);

}

.sidebar-nav a.active::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 4px;

    height: 100%;

    background: var(--accent);

    border-radius: 4px;

}

.sidebar-nav a.active i {

    color: #ffffff;

}

/*==========================================================
ICONS
==========================================================*/

.sidebar-nav i {

    width: 22px;

    text-align: center;

    font-size: 1rem;

    flex-shrink: 0;

}

/*==========================================================
DIVIDER
==========================================================*/

.sidebar-divider {

    margin: 2rem 0;

    border-top: 1px solid #E6ECF5;

}

/*==========================================================
SIDEBAR ACTIONS
==========================================================*/

.sidebar-actions {

    display: flex;

    flex-direction: column;

    gap: .8rem;

}

.sidebar-actions .btn {

    width: 100%;

    justify-content: center;

}

/*==========================================================
OPTIONAL PROGRESS BAR
==========================================================*/

.sidebar-progress {

    margin: 1.5rem 0;

}

.sidebar-progress-bar {

    width: 100%;

    height: 8px;

    background: #EDF2F8;

    border-radius: 999px;

    overflow: hidden;

}

.sidebar-progress-fill {

    width: 40%;

    height: 100%;

    background: linear-gradient(90deg, var(--primary), var(--accent));

    border-radius: 999px;

}

.sidebar-progress small {

    display: block;

    margin-top: .6rem;

    color: #6B7280;

}

/*==========================================================
SCROLLBAR
==========================================================*/

.page-sidebar::-webkit-scrollbar {

    width: 6px;

}

.page-sidebar::-webkit-scrollbar-thumb {

    background: #C9D6EA;

    border-radius: 999px;

}

.page-sidebar::-webkit-scrollbar-track {

    background: transparent;

}

/*==========================================================
TABLET
==========================================================*/

@media(max-width:992px) {

    .page-layout {

        display: block;

    }

    .page-sidebar {

        display: none;

    }

}

/*==========================================================
LARGE DESKTOP
==========================================================*/

@media(min-width:1400px) {

    .page-layout {

        grid-template-columns: 340px minmax(0, 1fr);

    }

}