



/* ─── SIDEBAR ─── */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateX(0);
    opacity: 1;
}

.sidebar.closed {
    transform: translateX(100%);
    opacity: 0;
}

.sidebar-logo {
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-mark {
    display: grid;
    gap: 5px;
    text-align: center;
}

.logo-text-sub {
    width: 100%;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-aside {
    width: 136px;
}


.logo-text {
    font-size: var(--text-7xl);
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.5px;
    display: inline-flex;
    letter-spacing: -6px;
}

.logo-text span {
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.logo-sub {
    font-size: var(--text-xl);
    color: var(--text-muted);
    margin-top: 2px;
    display: inline-flex;
    line-height: 1.2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.login-link {
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}




.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-section-label {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 4px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2px;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-color: rgba(91, 141, 239, 0.15);
}

.nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 1.5;
}

.nav-badge {
    margin-right: auto;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.nav-item.logout {
    color: #E57373;
}

.nav-item.logout:hover {
    background: #FFF0F0;
    color: #E53935;
}

/* ─── MAIN ─── */
.main {
    margin-right: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.35s ease, width 0.35s ease;
}

/* حالت تمام‌صفحه */
.main.full-width {
    margin-right: 0;
    width: 100%;
}

.main.full {
    margin: 0 3%;
    width: 94%;
}

.main-logout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    color: var(--text-muted);
}

.icon-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.notif-dot {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    border: 1.5px solid var(--white);
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--text-2xl);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.support-btn:hover {
    box-shadow: 0 2px 8px rgba(91, 140, 239, 0.42);
}

.support-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
}

/* ─── CONTENT ─── */
.content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px;
}







/* ═══════════════ DASHBOARD FOOTER ═══════════════ */

.dashboard-footer {
    background: #ffffff;
    color: var(--black);
    margin-top: 60px;
    padding-top: 50px;
    font-family: inherit;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.dashboard-footer h4 {
    font-size: var(--text-2xl);
    margin-bottom: 18px;
    color: var(--black);
    font-weight: 600;
}

.dashboard-footer p {
    font-size: var(--text-2xl);
    line-height: 1.9;
    color: var(--text-muted);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-4xl);
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo svg {
    width: 26px;
    height: 26px;
    stroke: #38bdf8;
}

.footer-links a,
.footer-support a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--text-2xl);
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover,
.footer-support a:hover {
    color: #38bdf8;
    transform: translateX(-4px);
}

.footer-links svg,
.footer-support svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #38bdf8;
    transform: translateY(-4px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #bdbdbd;
    text-align: center;
    padding: 18px;
    font-size: var(--text-xl);
    color: #64748b;
    margin-top: 40px;
}






.sidebar-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.sidebar-close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-close-btn svg {
    width: 24px;
    height: 24px;
}

.sidebar-open-btn {
    display: none;
    position: fixed;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    z-index: 101;
}

.sidebar-open-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-open-btn svg {
    width: 18px;
    height: 18px;
}

.main.full .sidebar-open-btn {
    display: flex;
}
