/* =================================
   LIMOR CHAKRA UI DESIGN SYSTEM
   Pixel-perfect match to option-3-chakra.html
   ================================= */

/* Chakra Brand Colors & Complete Design System Variables */
:root {
    /* Brand Colors */
    --chakra-colors-brand-50: #f5f3ff;
    --chakra-colors-brand-100: #ede9fe;
    --chakra-colors-brand-200: #ddd6fe;
    --chakra-colors-brand-300: #c4b5fd;
    --chakra-colors-brand-400: #a78bfa;
    --chakra-colors-brand-500: #8b5cf6;
    --chakra-colors-brand-600: #7c3aed;
    --chakra-colors-brand-700: #6d28d9;
    --chakra-colors-brand-800: #5b21b6;
    --chakra-colors-brand-900: #4c1d95;
    
    /* Alias Variables for Pages */
    --color-primary: var(--chakra-colors-brand-500);
    --color-brand-100: var(--chakra-colors-brand-100);
    --color-surface: #ffffff;
    --color-text-primary: #1a202c;
    --color-text-secondary: #718096;
    --color-border: #e2e8f0;
    --color-gray-50: #f7fafc;
    --color-gray-100: #edf2f7;
    --color-gray-200: #e2e8f0;
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-2xl: 2rem;
    /* Additional spacing aliases */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: #f7fafc;
    color: #1a202c;
    direction: rtl;
    line-height: 1.5;
}

/* CRITICAL CSS - Prevents FOUC & CLS */
#limor-navigation {
    opacity: 0;
    transition: opacity 0.2s ease-in;
    /* Pre-allocate space to prevent CLS */
    min-height: 4rem;
    contain: layout;
}

#limor-navigation.loaded {
    opacity: 1;
}

/* Prevent navbar jumping during load */
.navbar__container {
    contain: layout style;
    will-change: auto;
}

.navbar__left {
    /* Fixed dimensions to prevent CLS */
    min-width: 120px;
    min-height: 2.5rem;
    contain: layout;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =================================
   NAVIGATION SYSTEM - CHAKRA EXACT MATCH
   ================================= */

.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

/* RIGHT SIDE: Logo + Navigation */
.navbar__right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.navbar__brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--chakra-colors-brand-600);
    text-decoration: none;
}

.navbar__links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar__link:hover {
    color: var(--chakra-colors-brand-600);
}

.navbar__link--active {
    color: var(--chakra-colors-brand-600);
}

/* LEFT SIDE: User Actions - Enhanced for CLS Prevention */
.navbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Enhanced CLS prevention */
    min-width: 120px;
    min-height: 2.5rem;
    contain: layout;
    justify-content: flex-start;
}

.navbar__icon-btn {
    background: transparent;
    border: none;
    color: #4a5568;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar__icon-btn:hover {
    background: #edf2f7;
}

.navbar__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.navbar__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--chakra-colors-brand-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* =================================
   MAIN LAYOUT - CHAKRA STYLE
   ================================= */

.main-layout {
    margin-top: 2rem;
}

.main-layout__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

/* =================================
   SIDEBAR - CHAKRA EXACT MATCH
   ================================= */

#limor-sidebar,
.sidebar {
    width: 16rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 5rem;
}

.sidebar__content {
    padding: 0;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sidebar__item:hover {
    background: var(--chakra-colors-brand-50);
    color: var(--chakra-colors-brand-600);
}

.sidebar__item--active {
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-700);
    font-weight: 600;
}

.sidebar__icon,
.sidebar-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.sidebar__text {
    flex: 1;
}

/* =================================
   MAIN CONTENT - ENHANCED COMPREHENSIVE STYLING
   ================================= */

.main-content {
    flex: 1;
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    min-height: 80vh;
    transition: opacity 0.3s ease-in-out;
    /* Enhanced CLS prevention */
    contain: layout;
}

.main-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* UNIVERSAL COMPONENT STYLING - Ensure ALL elements have design */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--chakra-colors-brand-700);
}

.main-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.main-content h3 {
    font-size: 1.25rem;
    color: #2d3748;
}

.main-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.main-content ul,
.main-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
    color: #4a5568;
}

.main-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.main-content a {
    color: var(--chakra-colors-brand-600);
    text-decoration: none;
    transition: color 0.2s;
}

.main-content a:hover {
    color: var(--chakra-colors-brand-700);
    text-decoration: underline;
}

/* Enhanced Dividers */
.main-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

/* Enhanced Code Blocks */
.main-content pre,
.main-content code {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    color: #2d3748;
}

.main-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.main-content code {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Enhanced Images */
.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
    color: #718096;
    font-size: 1.125rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Cards & Containers */
.content-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.content-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--chakra-colors-brand-200);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--chakra-colors-brand-200);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-600);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-ready {
    background: #c6f6d5;
    color: #22543d;
}

.status-auth {
    background: #fbb6ce;
    color: #97266d;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--chakra-colors-brand-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Charts & Data Visualization */
.chart-container,
.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.chart-canvas {
    position: relative;
    height: 300px;
    margin-top: 1rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.control-select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
}

/* Status Indicators */
.status-banner {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.status-banner.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.status-banner.error {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* Lists & Navigation */
.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--chakra-colors-brand-50);
    color: var(--chakra-colors-brand-600);
}

.nav-link.active {
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-700);
    font-weight: 600;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* =================================
   PAGE COMPONENTS - CHAKRA STYLE
   ================================= */

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #718096;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Stats Grid & Rows */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-600);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.stat-change.positive {
    background: #c6f6d5;
    color: #22543d;
}

.stat-change.negative {
    background: #fed7d7;
    color: #742a2a;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--chakra-colors-brand-500);
    color: white;
}

.btn-primary:hover {
    background: var(--chakra-colors-brand-600);
}

.btn-ghost {
    background: transparent;
    color: #4a5568;
}

.btn-ghost:hover {
    background: #edf2f7;
}

/* Tables */
.table-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.data-table-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.table {
    width: 100%;
}

.table th {
    text-align: right;
    padding: 0.75rem 1.5rem;
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

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

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* =================================
   MOBILE RESPONSIVE
   ================================= */

@media (max-width: 768px) {
    .navbar__links {
        display: none;
    }
    
    .navbar__right {
        gap: 1rem;
    }
    
    .main-layout__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    #limor-sidebar,
    .sidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

/* =================================
   THEME SUPPORT
   ================================= */

[data-theme="dark"] {
    --chakra-colors-brand-50: #4c1d95;
    --chakra-colors-brand-100: #5b21b6;
    --chakra-colors-brand-500: #a78bfa;
    --chakra-colors-brand-600: #c4b5fd;
    --chakra-colors-brand-700: #ddd6fe;
}

[data-theme="dark"] body {
    background-color: #1a202c;
    color: #f7fafc;
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .table-card {
    background: #2d3748;
    color: #f7fafc;
}

[data-theme="dark"] .navbar__link,
[data-theme="dark"] .sidebar__item {
    color: #cbd5e0;
}

[data-theme="dark"] .navbar__link:hover,
[data-theme="dark"] .sidebar__item:hover {
    color: var(--chakra-colors-brand-600);
}

/* =================================
   ENHANCED COMPONENT STYLING
   ================================= */

/* Dashboard Charts */
.main-content canvas {
    border-radius: 0.5rem;
    background: white;
    contain: layout;
}

.main-content .chart-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    contain: layout;
}

/* Enhanced Metrics & KPIs */
.main-content .metric,
.main-content .kpi-card,
.main-content .metric-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    contain: layout;
}

.main-content .metric:hover,
.main-content .kpi-card:hover,
.main-content .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--chakra-colors-brand-200);
}

/* Enhanced Data Displays */
.main-content .data-card,
.main-content .info-card,
.main-content .summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    contain: layout;
}

.main-content .data-card:hover,
.main-content .info-card:hover,
.main-content .summary-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced Panels */
.main-content .panel,
.main-content .widget,
.main-content .dashboard-panel {
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    contain: layout;
}

.main-content .panel::before,
.main-content .widget::before,
.main-content .dashboard-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--chakra-colors-brand-500);
    border-radius: 0 0 3px 3px;
}

/* Enhanced Lists & Grids */
.main-content .grid,
.main-content .dashboard-grid,
.main-content .content-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.main-content .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.main-content .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.main-content .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Enhanced Text Elements */
.main-content .highlight {
    background: linear-gradient(135deg, var(--chakra-colors-brand-100) 0%, var(--chakra-colors-brand-50) 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--chakra-colors-brand-700);
    font-weight: 500;
}

.main-content .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-content .badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.main-content .badge-warning {
    background: #fbb6ce;
    color: #97266d;
}

.main-content .badge-info {
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-700);
}

/* Action Cards */
.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    contain: layout;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--chakra-colors-brand-500);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced Alerts & Notifications */
.main-content .alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
    contain: layout;
}

.main-content .alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left-color: #38a169;
}

.main-content .alert-warning {
    background: #fbb6ce;
    color: #97266d;
    border-left-color: #ed8936;
}

.main-content .alert-info {
    background: var(--chakra-colors-brand-100);
    color: var(--chakra-colors-brand-700);
    border-left-color: var(--chakra-colors-brand-500);
}

/* Enhanced Loading States */
.main-content .skeleton {
    background: linear-gradient(90deg, #f7fafc 25%, #edf2f7 50%, #f7fafc 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}