﻿:root {
    --sb-bg: #0f172a;
    --sb-bg-2: #111827;
    --sb-text: #cbd5e1;
    --sb-active: #ffffff;
    --sb-active-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
    --page-bg: #f4f7fb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, var(--sb-bg), var(--sb-bg-2));
    color: var(--sb-text);
    padding: 20px 16px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transition: transform 0.3s ease;
    box-shadow: 8px 0 24px rgba(2, 6, 23, 0.18);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 20px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.brand-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sb-text);
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 14px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
}

    .nav-item i {
        font-size: 18px;
    }

    .nav-item:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .nav-item.active {
        background: var(--sb-active-bg);
        color: var(--sb-active);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    }

.disabled-nav {
    opacity: 0.7;
    cursor: not-allowed;
}

.main-wrapper {
    margin-left: 270px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 76px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #3730a3;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.page-content {
    padding: 20px;
}

.menu-toggle {
    border: 0;
    background: #eff6ff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    color: #1d4ed8;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1035;
    }

        .sidebar-overlay.show {
            display: block;
        }

    .main-wrapper {
        margin-left: 0;
    }

    .topbar {
        padding: 0 14px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-content {
        padding: 14px;
    }
}
