
/* =================================================
   SHGC INVENTORY PLATFORM
   PREMIUM DARK NAVY THEME
================================================= */

/* =================================================
   1. ROOT & GLOBAL
================================================= */

:root {
    --navy: #081525;
    --navy2: #0B1B2D;
    --navy3: #142A42;

    --blue: #2563eb;
    --blue2: #1d4ed8;

    --gold: #d8b56b;

    --ink: #172235;
    --muted: #8490a1;
    --line: #e7ebf2;
    --canvas: #f3f5f9;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
}

.app-shell {
    min-height: 100vh;
    display: block;
}

/* =================================================
   2. SIDEBAR
================================================= */

.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 252px !important;
    height: 100vh !important;

    background: linear-gradient(
        180deg,
        #081525 0%,
        #0B192B 55%,
        #071321 100%
    ) !important;

    color: #D8E0EC !important;

    padding: 22px 16px !important;

    display: flex !important;
    flex-direction: column !important;

    z-index: 1040 !important;

    box-shadow: 8px 0 30px rgba(7, 16, 29, .20) !important;

    overflow-y: auto;
}

/* Brand */

.sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    color: #FFFFFF !important;
    text-decoration: none !important;

    padding: 0 8px 30px !important;
}

.sidebar-brand:hover {
    color: #FFFFFF !important;
}

.sidebar-brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: .08em;
}

.sidebar-brand small {
    display: block;
    color: #AFC0D3;
    font-size: .58rem;
    letter-spacing: .13em;
    margin-top: 2px;
}

.brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #3b82f6,
        #1743a5
    );

    display: grid;
    place-items: center;

    color: #FFFFFF;
    font-size: 1.25rem;

    box-shadow: 0 7px 18px #2563eb55;

    flex: none;
}

/* =================================================
   SIDEBAR CAPTION
================================================= */

.sidebar-caption {
    position: relative;

    margin: 24px 15px 18px;
    padding-bottom: 10px;

    color: #91A5BC;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.sidebar-caption::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        to right,
        rgba(175, 192, 211, .35),
        rgba(175, 192, 211, .03)
    );
}

/* =================================================
   SIDEBAR NAVIGATION
================================================= */

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.side-link {
    height: 44px;

    display: flex !important;
    align-items: center;
    gap: 12px;

    padding: 0 13px !important;

    border-radius: 10px;

    color: #B8C5D5 !important;
    text-decoration: none !important;

    font-size: .84rem;
    font-weight: 550;

    transition: all .18s ease;
}

.side-link i {
    width: 18px;

    font-size: 1rem;
    text-align: center;

    color: #8FA4BC;
}

/* Hover */

.side-link:hover {
    background: #142A40 !important;
    color: #FFFFFF !important;
}

.side-link:hover i {
    color: var(--gold);
}

/* Active */

.side-link.active {
    background: linear-gradient(
        100deg,
        #173653,
        #1B4263
    ) !important;

    color: #FFFFFF !important;

    border-left: 3px solid var(--gold);

    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

.side-link.active i {
    color: var(--gold);
}

/* =================================================
   SIDEBAR USER
================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, .10);

    background: #10243A;

    padding: 11px;

    border-radius: 12px;
}

.avatar,
.top-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #d8b56b,
        #997334
    );

    color: #172235;

    font-weight: 800;
    font-size: .85rem;

    flex: none;
}

.user-meta {
    min-width: 0;
    flex: 1;
}

.user-meta strong {
    display: block;

    color: #FFFFFF;

    font-size: .76rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta small {
    color: #AFC0D3;

    font-size: .62rem;
    letter-spacing: .1em;
}

/* Logout */

.logout-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, .07);

    color: var(--gold) !important;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 12px;

    font-size: 21px;

    text-decoration: none !important;

    transition: all .25s ease;
}

.logout-icon:hover {
    background: var(--gold);

    color: var(--navy) !important;

    border-color: var(--gold);

    transform: translateY(-2px);
}

/* =================================================
   3. MAIN AREA
================================================= */

.main-area {
    margin-left: 252px !important;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

/* =================================================
   4. TOPBAR
================================================= */

.topbar {
    height: 66px;
    min-height: 66px;

    background: #081525 !important;
    color: #FFFFFF !important;

    border-bottom: 1px solid rgba(255, 255, 255, .10);

    box-shadow: 0 3px 12px rgba(0, 0, 0, .14);

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 0 30px;

    position: sticky;
    top: 0;

    z-index: 1020;
}

/* Search */

.top-search {
    width: min(420px, 48%);
    height: 37px;

    border: 1px solid rgba(255, 255, 255, .10);

    background: rgba(255, 255, 255, .055);

    border-radius: 9px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 13px;

    color: #C5D2E0;

    font-size: .73rem;
}

.top-search i {
    color: var(--gold);
    font-size: .9rem;
}

/* Right Section */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 19px;

    flex: none;
}

/* System Live */

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    background: rgba(34, 197, 94, .12);

    color: #86efac;

    border-radius: 20px;

    padding: 6px 11px;

    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .3px;
}

.live-pill i,
.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    display: inline-block;
}

.live-pill i {
    box-shadow: 0 0 8px rgba(34, 197, 94, .7);
}

/* Date */

.top-date {
    font-size: .72rem;
    color: #C5D2E0;
    white-space: nowrap;
}

.top-date i {
    color: var(--gold);
}

/* Mobile Toggle */

.sidebar-toggle {
    border: 1px solid rgba(255, 255, 255, .18);

    background: rgba(255, 255, 255, .07);

    color: #FFFFFF !important;

    font-size: 1.3rem;

    border-radius: 8px;
}

.sidebar-toggle:hover {
    background: var(--gold);
    color: var(--navy) !important;
}

/* =================================================
   5. PAGE CONTENT
================================================= */

.page-content {
    padding: 27px 30px 34px;

    flex: 1;
    min-width: 0;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.eyebrow {
    font-size: .61rem;
    letter-spacing: .16em;

    color: #8b98aa;

    font-weight: 800;

    margin-bottom: 5px;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 780;
    letter-spacing: -.04em;

    margin: 0;

    color: #152238;
}

.page-subtitle {
    font-size: .76rem;
    color: #8a95a5;

    margin-top: 5px;
}

.page-heading-date {
    font-size: .7rem;
    color: #8490a1;

    display: flex;
    align-items: center;
    gap: 7px;
}

/* =================================================
   6. PANELS & STAT CARDS
================================================= */

.panel,
.stat-card {
    background: #FFFFFF;

    border: 1px solid #e9edf3;

    border-radius: 15px;

    box-shadow: 0 5px 18px #182b4510;
}

.panel {
    padding: 21px;
}

.stat-card {
    padding: 18px;

    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: var(--gold);
}

.stat-label {
    font-size: .68rem;

    color: #8994a4;

    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.stat-value {
    font-size: 1.8rem;

    font-weight: 820;
    letter-spacing: -.05em;

    color: #16243a;
}

.stat-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: #eff4ff;

    color: #2860c9;

    font-size: 1.1rem;
}

/* =================================================
   7. BUTTONS
================================================= */

.btn {
    border-radius: 8px;

    font-size: .8rem;
    font-weight: 600;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-secondary {
    border-color: #d9e0e9;
    color: #536174;
}

/* =================================================
   8. FORMS
================================================= */

.form-control,
.form-select {
    border-color: #e0e5ed;

    border-radius: 8px;

    padding: .6rem .78rem;

    font-size: .82rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #8bb2ff;

    box-shadow: 0 0 0 .2rem #2563eb18;
}

/* =================================================
   9. TABLES
================================================= */

.table {
    --bs-table-bg: transparent;

    vertical-align: middle;

    margin-bottom: 0;
}

.table thead th {
    font-size: .66rem;

    text-transform: uppercase;
    letter-spacing: .055em;

    color: #788496;

    background: #f7f8fb;

    border-bottom: 1px solid #e8edf3;

    white-space: nowrap;

    padding: 12px 11px;
}

.table td {
    font-size: .79rem;

    padding: 11px;

    color: #425066;

    border-color: #eef1f5;
}

.table tbody tr:hover {
    background: #f8faff;
}

.table-responsive {
    border: 1px solid #edf0f5;

    border-radius: 10px;
}

.thumb {
    width: 45px;
    height: 39px;

    object-fit: cover;

    border-radius: 7px;

    border: 1px solid #e5eaf1;
}

.badge-soft {
    background: #edf3ff;
    color: #315ba7;
}

.empty-state {
    padding: 34px !important;

    text-align: center;

    color: #8995a5 !important;
}

/* =================================================
   10. DATATABLES & PAGINATION
================================================= */

.pagination .page-link {
    color: #315ba7;
    font-size: .75rem;
}

.pagination .active > .page-link {
    background: #2563eb;
    border-color: #2563eb;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
    border: 1px solid #dfe5ee;

    border-radius: 7px;

    padding: 5px 8px;

    font-size: .77rem;
}

.dataTables_wrapper .dt-info {
    font-size: .7rem;
    color: #8490a1;
}

/* =================================================
   11. FOOTER
================================================= */

.footer,
.app-footer {
    display: flex;
    justify-content: space-between;

    color: #8b96a6;

    font-size: .68rem;
}

.app-footer {
    padding: 15px 30px;

    border-top: 1px solid #e8ecf2;

    background: #FFFFFF;

    margin-top: auto;
}

/* =================================================
   12. LOGIN
================================================= */

.login-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        linear-gradient(
            90deg,
            rgba(7, 15, 27, .82),
            rgba(9, 21, 38, .36)
        ),
        url('../img/sachsenring-bg.jpg') center/cover fixed;
}

.login-card {
    width: min(100%, 440px);

    padding: 38px;

    background: rgba(255, 255, 255, .96);

    border: 1px solid #ffffff80;

    border-radius: 24px;

    box-shadow: 0 30px 90px #0005;
}

.login-kicker {
    letter-spacing: .2em;

    font-size: .68rem;
    font-weight: 800;

    color: #9c7734;
}

.login-title {
    font-size: 2rem;

    font-weight: 850;
    letter-spacing: -.05em;
}

.login-subtitle {
    color: #728096;
    font-size: .9rem;
}

/* =================================================
   13. PHOTO PREVIEW
================================================= */

.photo-preview {
    max-width: 150px;
    max-height: 110px;

    object-fit: cover;

    border-radius: 12px;
}

/* =================================================
   14. MODAL
================================================= */

.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header-premium {
    background: linear-gradient(
        115deg,
        #0d1728,
        #1c3150
    );

    padding: 21px 25px;

    border: 0;
}

.modal-header-premium .modal-title {
    letter-spacing: -.02em;
}

.modal-backdrop.show {
    opacity: .55;
}

.modal .form-label {
    color: #34445a;
}

.modal .form-control,
.modal .form-select {
    min-height: 42px;
}

.modal textarea.form-control {
    min-height: auto;
}

.modal-footer .btn {
    padding: .6rem 1.1rem;
}

.modal-dialog {
    max-width: 760px;
}

/* =================================================
   15. RECORD ID
================================================= */

.record-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #eaf0fa;

    color: #314968;

    border-radius: 7px;

    padding: 6px 10px;

    font-size: .75rem;
    font-weight: 700;
}

/* =================================================
   16. RESPONSIVE TABLET
================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-105%) !important;

        transition: transform .22s ease;
    }

    .sidebar.show {
        transform: translateX(0) !important;
    }

    .main-area {
        margin-left: 0 !important;
    }

    .topbar {
        padding: 0 18px;
    }

    .page-content {
        padding: 22px 18px;
    }

    .top-search {
        margin-right: auto;
        margin-left: 12px;
    }

    .app-footer {
        padding: 14px 18px;
    }
}

/* =================================================
   17. RESPONSIVE MOBILE
================================================= */

@media (max-width: 575.98px) {

    .topbar {
        height: 60px;
        min-height: 60px;

        padding: 0 12px;

        gap: 10px;
    }

    .top-search {
        width: auto;
        flex: 1;

        min-width: 0;
        height: 35px;

        font-size: 11px;

        gap: 6px;

        margin-left: 8px;
        margin-right: 0;

        padding: 0 9px;
    }

    .top-search span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-right {
        gap: 9px;
    }

    .live-pill {
        padding: 5px 8px;
        font-size: 9px;
    }

    .top-date {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .panel {
        padding: 15px;
    }

    .app-footer {
        padding: 14px 18px;
        font-size: .61rem;
    }
}

/* =================================================
   TOPBAR LOGOUT
================================================= */

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 19px;
}

.topbar-logout {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 13px;

    color: #D8B56B !important;
    background: rgba(216, 181, 107, .08);

    border: 1px solid rgba(216, 181, 107, .30);
    border-radius: 8px;

    font-size: .75rem;
    font-weight: 700;

    text-decoration: none !important;

    transition: all .2s ease;
}

.topbar-logout i {
    font-size: 1rem;
}

.topbar-logout:hover {
    background: #D8B56B;
    color: #081525 !important;
    border-color: #D8B56B;
}

@media (max-width: 575.98px) {
    .topbar-right {
        gap: 9px;
    }

    .topbar-logout {
        width: 36px;
        padding: 0;
    }

    .topbar-logout span {
        display: none;
    }
}



/* =================================================
   TOPBAR TITLE - PREMIUM SHIMMER
================================================= */

.topbar-title {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-title span {
    position: relative;
    display: inline-block;

    font-size: .88rem;
    font-weight: 850;
    letter-spacing: 2.2px;

    color: #D8B56B;

    background: linear-gradient(
        110deg,
        #9C793C 0%,
        #D8B56B 30%,
        #FFF4CE 48%,
        #FFFFFF 50%,
        #D8B56B 65%,
        #9C793C 100%
    );

    background-size: 250% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: inventoryShimmer 4s linear infinite;

    text-shadow: 0 0 18px rgba(216, 181, 107, .12);
}

@keyframes inventoryShimmer {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: -150% center;
    }
}

/* TOPBAR RIGHT */

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 19px;
}

/* LOGOUT */

.topbar-logout {
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 13px;

    color: #D8B56B !important;
    background: rgba(216, 181, 107, .08);

    border: 1px solid rgba(216, 181, 107, .30);
    border-radius: 8px;

    font-size: .75rem;
    font-weight: 700;

    text-decoration: none !important;

    transition: all .2s ease;
}

.topbar-logout i {
    font-size: 1rem;
}

.topbar-logout:hover {
    background: #D8B56B;
    color: #081525 !important;
    border-color: #D8B56B;
}

/* MOBILE */

@media (max-width: 575.98px) {

    .topbar-title span {
        font-size: .63rem;
        letter-spacing: 1px;
    }

    .topbar-right {
        gap: 9px;
    }

    .topbar-logout {
        width: 36px;
        padding: 0;
    }

    .topbar-logout span {
        display: none;
    }

    .live-pill {
        padding: 5px 7px;
        font-size: 9px;
    }
}

/* =================================================
   INVENTORY TITLE - ANIMATED UNDERLINE
================================================= */

.topbar-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.topbar-title::after {
    content: "";
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        rgba(216, 181, 107, .08),
        rgba(216, 181, 107, .45),
        rgba(255, 244, 206, .95),
        rgba(216, 181, 107, .45),
        rgba(216, 181, 107, .08)
    );

    background-size: 220% 100%;

    animation: underlineFlow 4s ease-in-out infinite;

    box-shadow: 0 0 7px rgba(216, 181, 107, .25);
}

@keyframes underlineFlow {
    0% {
        background-position: 100% 0;
        opacity: .65;
    }

    50% {
        background-position: 0% 0;
        opacity: 1;
    }

    100% {
        background-position: 100% 0;
        opacity: .65;
    }
}

/* =================================================
   SIDEBAR COLLAPSE / EXPAND
================================================= */

.sidebar-collapse-area {
    margin-top: 28px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.sidebar-collapse-btn {
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    padding: 0 13px;

    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;

    color: #AFC0D3;

    font-size: .75rem;
    font-weight: 650;

    cursor: pointer;

    transition: all .25s ease;
}

.sidebar-collapse-btn i {
    color: var(--gold);
    font-size: 1rem;
    transition: transform .25s ease;
}

.sidebar-collapse-btn:hover {
    background: rgba(216, 181, 107, .12);
    border-color: rgba(216, 181, 107, .35);
    color: #FFFFFF;
}

/* COLLAPSED SIDEBAR */

@media (min-width: 992px) {

    .sidebar {
        transition: width .25s ease, padding .25s ease;
    }

    .main-area {
        transition: margin-left .25s ease;
    }

    .sidebar.collapsed {
        width: 82px !important;
        padding: 22px 12px !important;
    }

    .main-area.sidebar-expanded {
        margin-left: 82px !important;
    }

    /* Hide brand text */
    .sidebar.collapsed .sidebar-brand > span:last-child {
        display: none;
    }

    .sidebar.collapsed .sidebar-brand {
        justify-content: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hide caption text */
    .sidebar.collapsed .sidebar-caption span {
        display: none;
    }

    .sidebar.collapsed .sidebar-caption {
        margin-left: 8px;
        margin-right: 8px;
    }

    /* Center navigation icons */
    .sidebar.collapsed .side-link {
        justify-content: center;
        padding: 0 !important;
    }

    .sidebar.collapsed .side-link span {
        display: none;
    }

    .sidebar.collapsed .side-link i {
        width: auto;
        font-size: 1.15rem;
    }

    /* Collapse button */
    .sidebar.collapsed .sidebar-collapse-btn {
        justify-content: center;
        padding: 0;
    }

    .sidebar.collapsed .sidebar-collapse-btn span {
        display: none;
    }

    .sidebar.collapsed .sidebar-collapse-btn i {
        transform: rotate(180deg);
    }

    /* User area */
    .sidebar.collapsed .sidebar-user {
        justify-content: center;
        padding: 8px 4px;
    }

    .sidebar.collapsed .user-meta {
        display: none;
    }

    .sidebar.collapsed .logout-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }
}



/* MOBILE SIDEBAR */
@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1050;
    }

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

    .main-area {
        margin-left: 0 !important;
    }

    .sidebar.collapsed {
        width: 252px !important;
        padding: 22px 18px !important;
    }

    .sidebar.collapsed .sidebar-brand > span:last-child,
    .sidebar.collapsed .sidebar-caption span,
    .sidebar.collapsed .side-link span,
    .sidebar.collapsed .user-meta,
    .sidebar.collapsed .sidebar-collapse-btn span {
        display: initial;
    }

    .sidebar.collapsed .side-link {
        justify-content: flex-start;
        padding: 0 13px !important;
    }

    .sidebar.collapsed .sidebar-collapse-btn {
        justify-content: flex-start;
        padding: 0 13px;
    }

    .sidebar.collapsed .sidebar-user {
        justify-content: space-between;
    }

}


/* =================================================
   MOBILE SIDEBAR - FINAL RESPONSIVE FIX
================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        width: 252px !important;
        max-width: 85vw;
        height: 100vh !important;

        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;

        transform: translateX(-105%) !important;
        transition: transform .25s ease !important;

        z-index: 1050 !important;

        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sidebar.show {
        transform: translateX(0) !important;
    }

    .main-area,
    .main-area.sidebar-expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Reset desktop collapsed appearance */
    .sidebar.collapsed {
        width: 252px !important;
        padding: 22px 16px !important;
    }

    .sidebar.collapsed .sidebar-brand > span:last-child,
    .sidebar.collapsed .sidebar-caption span,
    .sidebar.collapsed .side-link span,
    .sidebar.collapsed .user-meta,
    .sidebar.collapsed .sidebar-collapse-btn span {
        display: initial !important;
    }

    .sidebar.collapsed .sidebar-brand {
        justify-content: flex-start !important;
    }

    .sidebar.collapsed .side-link {
        justify-content: flex-start !important;
        padding: 0 13px !important;
    }

    .sidebar.collapsed .sidebar-collapse-btn {
        justify-content: flex-start !important;
        padding: 0 13px !important;
    }

    .sidebar.collapsed .sidebar-user {
        justify-content: space-between !important;
    }

    /* Mobile close button */
    .sidebar-collapse-area {
        margin-top: 22px;
        margin-bottom: 18px;
    }

    .sidebar-collapse-btn {
        min-height: 42px;
    }

    .sidebar-toggle {
        flex: none;
    }
}



