.main {
    min-height: 100vh;
}

/* ==========================================
   Logout
========================================== */

.logout-form {
    margin-top: 14px;
}

.logout-button {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 14px;

    border: 0;

    border-radius: var(--radius-small);

    background: transparent;

    color: #dc2626;

    font-family: inherit;

    font-size: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);

}

.logout-button:hover {

    background: rgba(220, 38, 38, .08);

}

.logout-button .nav-icon {

    width: 20px;

    height: 20px;

    object-fit: contain;

}

.logout-button span {

    font-size: inherit;

}

/* ==========================================
   Brand
========================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 40px;

}

.brand span {

    font-size: 1.5rem;

    font-weight: 700;

}

.logo-placeholder {

    width: 34px;

    height: 34px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}

.logo-placeholder img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ==========================================
   Sidebar
========================================== */

.sidebar {

    position: fixed;

    top: 0;
    left: 0;

    width: 260px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 28px 18px;

    background: var(--surface);

    border-right: 1px solid var(--border);

    overflow-y: hidden;
    overflow-x: hidden;

    z-index: 1000;

}


/* ==========================================
   Navigation
========================================== */

.sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.sidebar nav a {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 14px;

    border-radius: var(--radius-small);

    color: var(--text-secondary);

    transition:
        background var(--transition),
        color var(--transition);

}

.sidebar nav a:hover {

    background: #edf5ff;

}

.sidebar nav a.active {

    background: rgba(37, 99, 235, .12);

    color: var(--primary);

}

.nav-icon {

    width: 20px;

    height: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.nav-icon img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ==========================================
   Credits
========================================== */

.sidebar-credit-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px;

    border-radius: var(--radius-large);

    background: #f8fbff;

    border: 1px solid var(--border);

}

.credit-icon {

    width: 40px;

    height: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.credit-icon img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ==========================================
   User
========================================== */

.sidebar-user {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

}

.sidebar-user p {

    width:80%;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

}

.sidebar-bottom {
    margin-top: auto;
}

.avatar-placeholder {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    background: #d1d5db;

}


/* ==========================================
   Main Content
========================================== */

.content {

    margin-left: 260px;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    gap: 34px;

    padding: 40px;

}


/* ==========================================
   Header
========================================== */

.page-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.page-header h1 {

    margin-bottom: 8px;

    font-size: 2rem;

}

.header-actions {

    display: flex;

    align-items: center;

    gap: 18px;

}

.notification {

    width: 24px;

    height: 24px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.notification img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ==========================================
   Mobile Header
========================================== */

.mobile-page-header {

    display: none;

}


/* ==========================================
   Mobile Menu Button
========================================== */

.mobile-menu-button {

    display: none;

    position: fixed;

    top: 16px;
    left: 16px;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    z-index: 2000;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

}


/* Hamburger Lines */

.mobile-menu-button span {

    display: block !important;

    width: 22px !important;
    height: 3px !important;

    min-width: 22px;
    min-height: 3px;

    margin: 0 !important;
    padding: 0 !important;

    background: #111827 !important;

    border: 0;

    border-radius: 3px;

    opacity: 1;

    visibility: visible;

    flex-shrink: 0;

}


@media (max-width: 900px) {

    .mobile-menu-button {

        display: flex;

    }

}
/* ==========================================
   Sidebar Overlay
========================================== */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .35);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}


/* ==========================================
   Responsive Layout
========================================== */

@media (max-width: 900px) {

    .main {

        display: block;

    }


    /* ------------------------------
       Mobile Sidebar
    ------------------------------ */

    .sidebar {

        display: flex;

        width: 260px;

        transform: translateX(-100%);

        transition:
            transform .25s ease;

        box-shadow:
            5px 0 25px rgba(0, 0, 0, .08);

    }

    .sidebar.open {

        transform: translateX(0);

    }


    /* ------------------------------
       Overlay
    ------------------------------ */

    .sidebar-overlay {

        display: block;

    }

    .sidebar-overlay.active {

        opacity: 1;

        visibility: visible;

    }


    /* ------------------------------
       Menu Button
    ------------------------------ */

    .mobile-menu-button {

        display: flex;

    }


    /* ------------------------------
       Hamburger Animation
    ------------------------------ */

    .mobile-menu-button.active span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);

    }

    .mobile-menu-button.active span:nth-child(2) {

        opacity: 0;

    }

    .mobile-menu-button.active span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);

    }


    /* ------------------------------
       Content
    ------------------------------ */

    .content {

        margin-left: 0;

        padding: 80px 18px 24px;

    }


    /* ------------------------------
       Desktop Header
    ------------------------------ */

    .page-header {

        display: none;

    }


    /* ------------------------------
       Mobile Header
    ------------------------------ */

    .mobile-page-header {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

    }

    .mobile-page-header h1 {

        font-size: 1.3rem;

    }

}


/* ==========================================
   Small Mobile
========================================== */

@media (max-width: 500px) {

    .content {

        padding-left: 14px;
        padding-right: 14px;

    }

    .sidebar {

        width: 280px;

    }

}

/* ==========================================
   Global fix
========================================== */

* {
    box-sizing: border-box;
}


/* ==========================================
   Sidebar
========================================== */

.sidebar {

    position: fixed;

    top: 0;
    left: 0;

    width: 260px;

    height: 100dvh;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    background: var(--surface);

    border-right: 1px solid var(--border);

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1000;

}


/* ==========================================
   Brand
========================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;

}


/* ==========================================
   Navigation
========================================== */

.sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


/* ==========================================
   Bottom Section
========================================== */

.sidebar-bottom {

    margin-top: auto;

    padding-top: 20px;

}


/* ==========================================
   Credits
========================================== */

.sidebar-credit-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border-radius: var(--radius-large);

    background: #f8fbff;

    border: 1px solid var(--border);

}


/* ==========================================
   User
========================================== */

.sidebar-user {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid var(--border);

}


.sidebar-user p {

    max-width: 140px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

}


/* ==========================================
   Logout
========================================== */

.logout-form {

    margin-top: 10px;

}


.logout-button {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 11px 14px;

    border: 0;

    border-radius: var(--radius-small);

    background: transparent;

    color: #dc2626;

    cursor: pointer;

}