/* Premium Custom CSS overrides for DjangoAdmin.JS Demo */

/* Base Customizations */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Color Themes Configuration for Simulated Admin */
#mock-admin-container {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
}

.theme-indigo {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
}
.theme-emerald {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.15);
}
.theme-rose {
    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --primary-light: rgba(244, 63, 94, 0.15);
}
.theme-amber {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --primary-light: rgba(245, 158, 11, 0.15);
}
.theme-violet {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.15);
}
.theme-ocean {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: rgba(14, 165, 233, 0.15);
}

/* Apply Custom Variables to Utility Classes */
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-hover:hover { background-color: var(--primary-hover) !important; }
.primary-text { color: var(--primary) !important; }
.bg-primary-light\/10 { background-color: var(--primary-light) !important; }
.border-primary { border-color: var(--primary) !important; }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }

/* Layout Preset Customizations */

/* 1. Style Default (Sleek modern rounded cards) */
.style-default .admin-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
}

/* 2. Style Glassmorphism (Frosty blurred panels) */
.style-glassmorphism .admin-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
}
.style-glassmorphism .admin-sidebar {
    background-color: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 3. Style Minimalist (High contrast dark borders) */
.style-minimalist .admin-card {
    background-color: transparent;
    border: 2px solid #334155;
    border-radius: 0px;
    box-shadow: none;
}
.style-minimalist .admin-sidebar {
    border-right: 2px solid #334155;
}
.style-minimalist * {
    border-radius: 0px !important;
}

/* Light Mode Overrides for Simulated Admin */
.mode-light {
    background-color: #f8fafc !important;
    color: #334155 !important;
}
.mode-light .text-white { color: #0f172a !important; }
.mode-light .text-slate-400 { color: #64748b !important; }
.mode-light .text-slate-350 { color: #475569 !important; }
.mode-light .text-slate-300 { color: #475569 !important; }
.mode-light .text-slate-200 { color: #334155 !important; }
.mode-light .bg-slate-900 { background-color: #f1f5f9 !important; }
.mode-light .bg-slate-950 { background-color: #f8fafc !important; }
.mode-light .bg-slate-900\/30 { background-color: rgba(241, 245, 249, 0.4) !important; }
.mode-light .bg-slate-900\/40 { background-color: rgba(241, 245, 249, 0.6) !important; }
.mode-light .bg-slate-900\/10 { background-color: rgba(241, 245, 249, 0.2) !important; }
.mode-light .border-slate-800 { border-color: #e2e8f0 !important; }
.mode-light .border-slate-800\/60 { border-color: #cbd5e1 !important; }
.mode-light .border-slate-800\/40 { border-color: #cbd5e1 !important; }
.mode-light .admin-sidebar { border-color: #cbd5e1 !important; }
.mode-light tr.hover\:bg-slate-900\/30:hover { background-color: rgba(226, 232, 240, 0.5) !important; }
.mode-light input, .mode-light select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.mode-light .admin-card {
    border-color: #cbd5e1 !important;
}

/* Modal styling overrides */
#command-palette-modal .palette-item {
    transition: background-color 0.15s ease;
}
