        :root {
            --bg-base: #f4f5f7;
            --bg-surface: #ffffff;
            --bg-placeholder: #f4f5f8;
            --border-light: #e4e6ef;
            --text-dark: #181c32;
            --text-gray: #5e6278;
            --text-muted: #a1a5b7;
            --primary: #3e97ff;
            --radius-lg: 12px;
            --sidebar-width: 85px;
        }

        * {
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-dark);
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* Mini Sidebar */
        .sidebar-mini {
            width: var(--sidebar-width);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            background: var(--bg-base);
            height: 100%;
            flex-shrink: 0;
        }

        .brand-logo {
            width: 38px;
            height: 38px;
            background: var(--bg-surface);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0px 3px 6px rgba(0,0,0,0.03);
            margin-bottom: 25px;
            color: var(--text-dark);
        }
        
        .brand-logo svg {
            width: 18px;
            height: 18px;
        }

        .side-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            width: 100%;
            align-items: center;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--text-gray);
            font-size: 11px;
            font-weight: 500;
            width: 60px;
            height: 58px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .nav-item i {
            font-size: 18px;
            margin-bottom: 4px;
            color: var(--text-muted);
            transition: color 0.2s;
        }

        .nav-item:hover, .nav-item.active {
            background-color: var(--bg-surface);
            color: var(--text-dark);
            box-shadow: 0px 3px 6px rgba(0,0,0,0.02);
        }
        .nav-item:hover i, .nav-item.active i {
            color: var(--text-dark);
        }

        /* Flyout Dropdown Menu Styles */
        .nav-wrapper.has-dropdown {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .sub-menu {
            display: none;
            position: absolute;
            left: 85px; /* Offset to clear the 85px sidebar */
            top: 0;
            width: 180px;
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: 0px 5px 25px rgba(0,0,0,0.05);
            flex-direction: column;
            padding: 10px;
            z-index: 1000;
        }

        .nav-wrapper.expanded .sub-menu {
            display: flex;
        }

        .sub-nav-link {
            padding: 8px 14px;
            color: var(--text-gray);
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .sub-nav-link:hover {
            color: var(--text-dark);
            background: var(--bg-base);
        }

        .sidebar-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 18px;
            margin-bottom: 20px;
        }

        .action-icon {
            color: var(--text-muted);
            font-size: 16px;
            cursor: pointer;
            transition: color 0.2s;
        }
        .action-icon:hover {
            color: var(--text-dark);
        }

        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            box-shadow: 0 0 0 2px var(--bg-surface);
        }

        /* Main Surface Card Wrapper */
        .wrapper {
            flex: 1;
            padding: 18px 18px 18px 0;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .surface-card {
            flex: 1;
            background: var(--bg-surface);
            border-radius: 14px;
            box-shadow: 0px 5px 25px rgba(0,0,0,0.02);
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        /* Surface Header */
        .surface-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 35px;
        }

        .header-title-area {
            display: flex;
            align-items: baseline;
            gap: 15px;
        }

        .page-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-dark);
            letter-spacing: -0.2px;
        }

        .breadcrumbs {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .breadcrumbs a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }

        .breadcrumbs a:hover {
            color: var(--primary);
        }

        .breadcrumbs span {
            margin: 0 2px;
            color: var(--text-muted);
            opacity: 0.6;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .icon-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 16px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .icon-btn:hover {
            color: var(--text-dark);
        }

        .btn-outline {
            background: var(--bg-surface);
            border: 1px solid var(--border-light);
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.01);
            transition: all 0.2s;
        }

        .btn-outline i {
            color: var(--text-muted);
            font-size: 14px;
        }

        .btn-outline:hover {
            background: #fdfdfd;
            border-color: #d8d8e5;
        }

        /* Surface Body */
        .surface-body {
            flex: 1;
            padding: 0 35px;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }

        .large-placeholder {
            flex: 1;
            background: var(--bg-placeholder);
            border-radius: 8px;
            width: 100%;
        }

        /* Surface Footer */
        .surface-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 35px;
            font-size: 13px;
        }

        .footer-left {
            color: var(--text-muted);
        }
        .footer-left strong {
            color: var(--text-gray);
            font-weight: 500;
        }

        .footer-nav {
            display: flex;
            gap: 18px;
        }

        .footer-nav a {
            color: var(--text-gray);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

        .footer-nav a:hover {
            color: var(--text-dark);
        }
    
/* === Global Responsive Boilerplate === */
@media (max-width: 900px) {
    .sidebar { position: absolute; left: -100%; transition: left 0.3s ease; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
    .sidebar.active { left: 0; }
    .main-wrapper { margin-left: 0 !important; width: 100% !important; padding-left: 0 !important; }
    .topbar, .toolbar, .header { flex-direction: column; align-items: flex-start; height: auto !important; padding: 1rem !important; gap: 1rem; }
    .search-box, .search-bar, .search-input { width: 100% !important; max-width: 100% !important; }
    .toolbar-actions, .header-actions { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
    .content, .main-content { padding: 1rem !important; }
    .dashboard-grid, .stats-grid, .features-grid, .mega-menu-content { grid-template-columns: 1fr !important; }
    .overview-grid, .pricing-grid { grid-template-columns: 1fr !important; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-img-box { margin: 0 auto; }
}
