/* static/modern-style.css - Clean, Modern UI with Dark Mode Support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== IMPORTANT PERFORMANCE FIX ===== */
/* Remove ALL transitions for theme switching except where absolutely necessary */
html.dark-mode, html.dark-mode * {
  /* This nullifies most transitions when in dark mode or switching modes */
  transition-duration: 0s !important;
}

/* Only allow transitions when explicitly opting in with this class */
.allow-transition {
  transition-duration: initial !important;
}

/* Fix for oversized buttons in boost cards */
.boost-card .quantity-input {
  height: 28px !important;
  max-width: 90px !important; /* Narrower overall width */
  width: 90px !important;
}

.boost-card .quantity-input button {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 28px !important;
  font-size: 1rem !important;
  flex-shrink: 0;
  flex-grow: 0;
  padding: 0 !important;
}

.boost-card .quantity-input input {
  height: 28px !important;
  font-size: 0.9rem !important;
  width: 42px !important; /* Just enough for 4 digits */
  min-width: 42px !important;
  max-width: 42px !important;
  flex: none !important;
}

:root {
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Color Scheme - Light Mode */
    --color-primary: #FF1E00; /* F1 Racing Red */
    --color-primary-light: #FF6B59;
    --color-primary-dark: #CC1800;
    
    --color-secondary: #18214D; /* Dark Blue */
    --color-accent: #3498db; /* Blue for highlighting */
    
    --color-background: #f8f9fa;
    --color-surface: #ffffff;
    --color-card: #ffffff;
    --color-card-alt: #f2f4f6;
    
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    
    --color-border: #E5E7EB;
    --color-divider: #F3F4F6;
    
    --color-success: #10B981;
    --color-warning: #FBBF24;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Rarity Colors */
    --rarity-common-text: #3366cc;
    --rarity-common-bg: #e6f0ff;
    --rarity-common-border: #d1e4ff;
    
    --rarity-rare-text: #f57c00;
    --rarity-rare-bg: #fff3e0;
    --rarity-rare-border: #ffd699;
    
    --rarity-epic-text: #7b1fa2;
    --rarity-epic-bg: #f2eaff;
    --rarity-epic-border: #e1d1ff;
    
    --rarity-legendary-text: #ff9800;
    --rarity-legendary-bg: #fff9e6;
    --rarity-legendary-border: #ffe8b3;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;
    
    /* Spacing */
    --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;
    
    /* Z-index layers */
    --z-sidebar: 40;
    --z-header: 30;
    --z-modal: 50;
    --z-notification: 60;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Sidebar */
    --sidebar-width: 240px;
    
    /* Input and Button Styling - New standardized variables */
    --input-bg: var(--color-surface);
    --input-text: var(--color-text);
    --input-border: var(--color-border);
    
    --btn-bg: var(--color-card-alt);
    --btn-text: var(--color-text);
    --btn-hover-bg: var(--color-primary-light);
    --btn-hover-text: white;
}

/* Dark Mode Theme Variables */
.dark-mode {
    --color-background: #111827;
    --color-surface: #1F2937;
    --color-card: #1F2937;
    --color-card-alt: #374151;
    
    --color-text: #F9FAFB;
    --color-text-secondary: #D1D5DB;
    --color-text-tertiary: #9CA3AF;
    
    --color-border: #374151;
    --color-divider: #2D3748;

    /* Rarity Colors */
    --rarity-common-text: #7aa5ff;
    --rarity-common-bg: rgba(51, 102, 204, 0.2);
    --rarity-common-border: rgba(51, 102, 204, 0.4);
    
    --rarity-rare-text: #ffab58;
    --rarity-rare-bg: rgba(245, 124, 0, 0.2);
    --rarity-rare-border: rgba(245, 124, 0, 0.4);
    
    --rarity-epic-text: #c586e3;
    --rarity-epic-bg: rgba(123, 31, 162, 0.2);
    --rarity-epic-border: rgba(123, 31, 162, 0.4);
    
    --rarity-legendary-text: #ffbf50;
    --rarity-legendary-bg: rgba(255, 152, 0, 0.2);
    --rarity-legendary-border: rgba(255, 152, 0, 0.4);
    
    /* Adjusted shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    /* Dark mode input and button styling */
    --input-bg: #374151;
    --input-text: #F9FAFB; 
    --input-border: #4B5563;
    
    --btn-bg: #374151;
    --btn-text: #F9FAFB;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

input, select, textarea {
    font-family: var(--font-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: var(--z-sidebar);
    overflow-y: auto;
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.tagline {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
    padding-left: var(--space-8);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.sidebar-nav li:hover {
    background-color: var(--color-divider);
    color: var(--color-text);
}

.sidebar-nav li.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background-color: rgba(255, 30, 0, 0.05);
}

.sidebar-nav li.allow-transition:hover {
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

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


/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-text-tertiary);
    transition: var(--transition-fast);
    border-radius: var(--border-radius-full);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Main Content Area */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-header {
    height: 70px;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
}

.content-header h2 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--color-background);
    border-radius: var(--border-radius-full);
    padding: var(--space-2) var(--space-4);
    width: 240px;
    transition: width var(--transition-normal);
}

.search-bar:focus-within {
    width: 300px;
    box-shadow: var(--shadow-sm);
}

.search-bar svg {
    color: var(--color-text-tertiary);
    margin-right: var(--space-2);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--color-text);
    font-size: 0.875rem;
}

.search-bar input::placeholder {
    color: var(--color-text-tertiary);
}

/* Tab Content Area */
.tab-content-area {
    flex: 1;
    padding: var(--space-6);
    background-color: var(--color-background);
}

.tab-pane {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.dashboard-card {
    background-color: var(--color-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
}

.dashboard-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Summary Card */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--space-3);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3);
    background-color: var(--color-card-alt);
    border-radius: var(--border-radius-md);
}

.summary-stat span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.summary-stat strong {
    font-size: 1.25rem;
    color: var(--color-text);
}

/* Track Card */
.track-preview {
    display: flex;
    flex-direction: column;
}

.track-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--space-4);
}

.track-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.track-stat span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.track-stat strong {
    font-size: 1.5rem;
    color: var(--color-text);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    background-color: var(--color-card);
    padding: var(--space-4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 0.875rem;
    outline: none;
}

.filter-group select:focus {
    border-color: var(--color-primary);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.chip:hover {
    background-color: var(--color-divider);
}

.chip.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.chip-all {}
.chip-common { border-color: var(--rarity-common); color: var(--rarity-common); }
.chip-rare { border-color: var(--rarity-rare); color: var(--rarity-rare); }
.chip-epic { border-color: var(--rarity-epic); color: var(--rarity-epic); }
.chip-legendary { border-color: var(--rarity-legendary); color: var(--rarity-legendary); }

.chip-common.active { background-color: var(--rarity-common); color: white; border-color: var(--rarity-common); }
.chip-rare.active { background-color: var(--rarity-rare); color: white; border-color: var(--rarity-rare); }
.chip-epic.active { background-color: var(--rarity-epic); color: white; border-color: var(--rarity-epic); }
.chip-legendary.active { background-color: var(--rarity-legendary); color: white; border-color: var(--rarity-legendary); }

/* Common rarity styling for all components */
.rarity-common {
    background-color: var(--rarity-common-bg);
    color: var(--rarity-common-text);
    border-color: var(--rarity-common-border);
}

.rarity-rare {
    background-color: var(--rarity-rare-bg);
    color: var(--rarity-rare-text);
    border-color: var(--rarity-rare-border);
}

.rarity-epic {
    background-color: var(--rarity-epic-bg);
    color: var(--rarity-epic-text);
    border-color: var(--rarity-epic-border);
}

.rarity-legendary {
    background-color: var(--rarity-legendary-bg);
    color: var(--rarity-legendary-text);
    border-color: var(--rarity-legendary-border);
}

/* Input group styling - shared across components */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Label styling - consistent across all inputs */
.input-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    text-align: center;
}

/* Base consistent styling for all input types */
.input-group input,
.level-dropdown,
.quantity-input {
    height: 36px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

/* Fix text input styling */
.input-group input {
    padding: var(--space-2);
    text-align: center;
    outline: none;
}

/* Fix the dropdown styling */
.level-dropdown {
    height: 36px !important;
    min-height: 36px;
    max-height: 36px;
    padding: 0 var(--space-4);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.8em;
    text-align: center;
    cursor: pointer;
}

/* Fix dropdown options */
.level-dropdown option {
    text-align: center;
    padding: 4px;
    display: flex;
    justify-content: center;
}

/* Quantity input (for cards) styling */
.quantity-input {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    height: 36px;
    overflow: hidden;
}

.quantity-input button {
    border: none;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

/* Explicitly limit hover transitions to allowed elements */
.quantity-input button.allow-transition:hover {
    transition: background-color 150ms ease, color 150ms ease;
}

.quantity-input button:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}

.quantity-input button:active {
    background-color: #e53935 !important;
    color: white !important;
    transform: scale(0.95);
}

.quantity-input button:first-child {
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.quantity-input button:last-child {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.quantity-input input {
    flex: 1;
    border: none;
    border-top: 1px solid var(--input-border);
    border-bottom: 1px solid var(--input-border);
    border-radius: 0;
    margin: 0;
    height: 36px;
    min-width: 40px;
    text-align: center;
    background-color: var(--input-bg);
    color: var(--input-text);
}

/* Focus states */
.input-group input:focus,
.level-dropdown:focus,
.quantity-input input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Hide browser default number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* For Firefox */
}

.requirements-display {
    padding: var(--space-3) var(--space-4);
    margin: 0 var(--space-4);
    background-color: var(--color-card-alt);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
}

.requirements-display strong {
    color: var(--color-text);
}

.upgrade-button {
    margin: var(--space-4);
    padding: var(--space-3) 0;
    width: calc(100% - 2 * var(--space-4));
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.upgrade-button.allow-transition:hover {
    transition: background-color 150ms ease;
}

.upgrade-button:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
}

.upgrade-button:disabled {
    background-color: var(--color-text-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Generic stats section styling - used across components */
.stats {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.stats h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px dashed var(--color-border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Placeholder Message */
.placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16);
    color: var(--color-text-secondary);
}

.placeholder-message svg {
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-4);
}

.placeholder-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.placeholder-message p {
    font-size: 0.875rem;
    max-width: 400px;
}

/* Notification Styling */
.notification {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background-color: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    max-width: 350px;
    z-index: var(--z-notification);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    border-left: 4px solid var(--color-info);
}

.notification.hidden {
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}

.notification p {
    margin: 0;
    padding-right: var(--space-3);
}

.notification button {
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification button:hover {
    color: var(--color-text);
}

.notification.error {
    border-left-color: var(--color-error);
}

.notification.success {
    border-left-color: var(--color-success);
}

.notification.warning {
    border-left-color: var(--color-warning);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .search-bar {
        width: 180px;
    }
    
    .search-bar:focus-within {
        width: 220px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 240px;
    }
    
    .content {
        margin-left: 0;
    }
    
    .content-header {
        padding: 0 var(--space-4);
    }
    
    .content-header h2 {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-bar {
        width: 140px;
    }
    
    .search-bar:focus-within {
        width: 180px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tab-content-area {
        padding: var(--space-4);
    }
    
    .search-bar {
        display: none;
    }
    
    .notification {
        left: var(--space-4);
        right: var(--space-4);
        max-width: none;
    }
}

/* Dark mode specific styles for better contrast */
.dark-mode .sidebar {
    border-right-color: #374151;
}

.dark-mode .content-header {
    border-bottom-color: #374151;
}

/* Dark mode slider */
.dark-mode .slider:before {
    background-color: #111827;
}

/* Make notifications more visible in dark mode */
.dark-mode .notification {
    background-color: #1F2937;
    color: #F9FAFB;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

/* Dark mode dropdown styling */
.dark-mode .level-dropdown {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}