/* ==========================================================================
   Podbase - Modern Enterprise Stylesheet (MyDesigns.io Inspired Design System)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

@layer base {
    :root {
        --color-primary: #00baa9;
        --color-primary-hover: #02cbb7;
        --color-primary-glow: rgba(0, 186, 169, 0.35);
        --color-cyan: #2cf3fd;
        --color-teal: #00baa9;
        --color-blue: #008f82;
        --color-coral: #ff5c5c;
        --color-peach: #ff8c69;
        --color-etsy: #f1641e;
        --color-amazon: #397d9d;
        --color-mba: #397d9d;
        --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
        --font-mono: 'JetBrains Mono', monospace;
    }

    body {
        font-family: var(--font-sans);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    /* High-Contrast Text Selection (Crisp White on Vibrant Teal) */
    ::selection {
        background-color: #00baa9 !important;
        color: #041a1c !important;
    }
    ::-moz-selection {
        background-color: #00baa9 !important;
        color: #041a1c !important;
    }

    input::selection,
    textarea::selection,
    select::selection {
        background-color: #00baa9 !important;
        color: #041a1c !important;
    }
    input::-moz-selection,
    textarea::-moz-selection,
    select::-moz-selection {
        background-color: #00baa9 !important;
        color: #041a1c !important;
    }
}

/* Modern Cyan-Teal Electric Gradient Utilities */
.bg-gradient-mydesigns {
    background: linear-gradient(135deg, #00baa9 0%, #02cbb7 45%, #2cf3fd 100%);
}

.bg-gradient-mydesigns-subtle {
    background: linear-gradient(135deg, rgba(0, 186, 169, 0.15) 0%, rgba(2, 203, 183, 0.08) 50%, rgba(44, 243, 253, 0.05) 100%);
}

.text-gradient-mydesigns {
    background: linear-gradient(135deg, #00baa9 0%, #2cf3fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-gradient-mydesigns {
    border-image: linear-gradient(135deg, #00baa9, #2cf3fd) 1;
}

/* Coral Live Indicator Dot */
.indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background-color: #ff5c5c;
    display: inline-block;
    flex-shrink: 0;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(6, 16, 18, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(20, 53, 58, 0.6);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 186, 169, 0.7);
}

/* Glassmorphism & High-Tech Cards */
.glass-panel {
    background: rgba(12, 30, 33, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 53, 58, 0.6);
}

.glass-card {
    background: rgba(12, 30, 33, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 53, 58, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    background: rgba(15, 38, 42, 0.9);
    border-color: rgba(0, 186, 169, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5), 0 0 15px -3px rgba(0, 186, 169, 0.2);
}

/* Platform Badge Colors */
.badge-etsy {
    background-color: rgba(241, 100, 30, 0.12);
    color: #f1641e;
    border: 1px solid rgba(241, 100, 30, 0.3);
}
.badge-amazon {
    background-color: rgba(57, 125, 157, 0.12);
    color: #397d9d;
    border: 1px solid rgba(57, 125, 157, 0.3);
}

/* Status Badges */
.status-active {
    background-color: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
}
html.dark .status-active,
.dark .status-active {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-draft {
    background-color: rgba(148, 163, 184, 0.14);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-weight: 700;
}
html.dark .status-draft,
.dark .status-draft {
    background-color: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.status-expiring_soon {
    background-color: #fef08a;
    color: #c2410c;
    border: 1px solid #facc15;
    font-weight: 800;
    animation: subtle-pulse 2s infinite;
}
html.dark .status-expiring_soon,
.dark .status-expiring_soon {
    background-color: rgba(250, 204, 21, 0.22);
    color: #fb923c;
    border: 1px solid rgba(250, 204, 21, 0.6);
}
.status-expired {
    background-color: #ffe4e6;
    color: #9f1239;
    border: 1px solid #fecdd3;
    font-weight: 800;
}
html.dark .status-expired,
.dark .status-expired {
    background-color: rgba(225, 29, 72, 0.22);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.5);
}
.status-in_review {
    background-color: rgba(56, 154, 235, 0.15);
    color: #0369a1;
    border: 1px solid rgba(56, 154, 235, 0.35);
    font-weight: 700;
}
html.dark .status-in_review,
.dark .status-in_review {
    color: #38bdf8;
}
.status-rejected {
    background-color: rgba(225, 29, 72, 0.15);
    color: #be123c;
    border: 1px solid rgba(225, 29, 72, 0.3);
    font-weight: 700;
}
html.dark .status-rejected,
.dark .status-rejected {
    color: #fb7185;
}
.status-sold_out {
    background-color: rgba(107, 114, 128, 0.15);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.25);
    font-weight: 700;
}
html.dark .status-sold_out,
.dark .status-sold_out {
    color: #9ca3af;
}

/* Pulse animation */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.2s ease;
}
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Overlay */
.modal-overlay {
    background: rgba(6, 10, 19, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Tag Manager Chip */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: rgba(56, 154, 235, 0.12);
    border: 1px solid rgba(56, 154, 235, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #7dd3fc;
    font-weight: 500;
}

/* Primary Button Glow */
.btn-mydesigns-primary {
    background: linear-gradient(135deg, #00baa9 0%, #02cbb7 50%, #2cf3fd 100%);
    color: #041a1c;
    font-weight: 800;
    box-shadow: 0 4px 15px -2px rgba(0, 186, 169, 0.4);
    transition: all 0.2s ease;
}
.btn-mydesigns-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(44, 243, 253, 0.45);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #02cbb7 0%, #00baa9 100%);
    color: #041a1c;
}

/* ==========================================================================
   LIGHT THEME (MODE CLAIR) - Clean Modern Workspace Overrides
   ========================================================================== */
html.theme-light,
html.theme-light body,
html.theme-light #app-main-wrapper,
html.theme-light main {
    background-color: #f2f7f7 !important;
    color: #0f172a !important;
}

/* Scrollbar Light */
html.theme-light ::-webkit-scrollbar-track {
    background: #eef5f5;
}
html.theme-light ::-webkit-scrollbar-thumb {
    background: #ccdedd;
}
html.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #00baa9;
}

/* ==========================================================================
   SIDEBAR MENU - PERMANENT OBSIDIAN TEAL DARK (ALL MODES)
   ========================================================================== */
#main-sidebar,
#main-sidebar > div,
#main-sidebar nav,
#main-sidebar .custom-scrollbar,
html.theme-light #main-sidebar,
html.theme-light #main-sidebar > div,
html.theme-light #main-sidebar nav,
html.theme-light #main-sidebar .custom-scrollbar,
html:not(.dark) #main-sidebar,
html:not(.dark) #main-sidebar > div,
html:not(.dark) #main-sidebar nav,
html:not(.dark) #main-sidebar .custom-scrollbar {
    background-color: #061012 !important;
    border-color: #14353a !important;
    color: #8faab0 !important;
}

#main-sidebar {
    border-right: 1px solid #14353a !important;
    box-shadow: 4px 0 24px -6px rgba(0, 0, 0, 0.45) !important;
}

/* Sidebar Headings & Brand Titles */
#main-sidebar h1,
#main-sidebar h2,
#main-sidebar h3,
#main-sidebar h4,
#main-sidebar h5,
#main-sidebar h6,
#main-sidebar .text-white,
html.theme-light #main-sidebar h1,
html.theme-light #main-sidebar h4,
html.theme-light #main-sidebar .text-white {
    color: #ffffff !important;
}

/* Sidebar Labels, Subtitles, Badges & Text */
#main-sidebar .text-slate-200,
#main-sidebar .text-slate-300,
html.theme-light #main-sidebar .text-slate-200,
html.theme-light #main-sidebar .text-slate-300 {
    color: #cbd5e1 !important;
}

#main-sidebar .text-slate-400,
#main-sidebar .text-slate-500,
#main-sidebar .text-slate-600,
html.theme-light #main-sidebar .text-slate-400,
html.theme-light #main-sidebar .text-slate-500,
html.theme-light #main-sidebar .text-slate-600 {
    color: #8faab0 !important;
}

#main-sidebar .text-sky-400,
html.theme-light #main-sidebar .text-sky-400 {
    color: #00baa9 !important;
}

/* Navigation Buttons & Links in Sidebar */
#main-sidebar nav button:not([class*="bg-"]):not([class*="from-"]),
#main-sidebar nav a:not([class*="bg-"]):not([class*="from-"]),
html.theme-light #main-sidebar nav button:not([class*="bg-"]):not([class*="from-"]),
html.theme-light #main-sidebar nav a:not([class*="bg-"]):not([class*="from-"]) {
    color: #8faab0 !important;
    background-color: transparent !important;
}

#main-sidebar nav button:hover,
#main-sidebar nav a:hover,
html.theme-light #main-sidebar nav button:hover,
html.theme-light #main-sidebar nav a:hover {
    color: #ffffff !important;
    background-color: #0c1e21 !important;
}

#main-sidebar nav button:hover i,
#main-sidebar nav a:hover i,
html.theme-light #main-sidebar nav button:hover i,
html.theme-light #main-sidebar nav a:hover i {
    color: #00baa9 !important;
}

/* Sidebar Submenus */
#main-sidebar #submenu-listings,
#main-sidebar #submenu-tools,
#main-sidebar #submenu-settings,
html.theme-light #main-sidebar #submenu-listings,
html.theme-light #main-sidebar #submenu-tools,
html.theme-light #main-sidebar #submenu-settings {
    background-color: rgba(8, 23, 26, 0.95) !important;
    border-left: 2px solid #00baa9 !important;
}

#main-sidebar #submenu-listings button,
#main-sidebar #submenu-tools button,
#main-sidebar #submenu-settings button,
html.theme-light #main-sidebar #submenu-listings button,
html.theme-light #main-sidebar #submenu-tools button,
html.theme-light #main-sidebar #submenu-settings button {
    color: #8faab0 !important;
}

#main-sidebar #submenu-listings button:hover,
#main-sidebar #submenu-tools button:hover,
#main-sidebar #submenu-settings button:hover,
html.theme-light #main-sidebar #submenu-listings button:hover,
html.theme-light #main-sidebar #submenu-tools button:hover,
html.theme-light #main-sidebar #submenu-settings button:hover {
    color: #ffffff !important;
    background-color: #0c1e21 !important;
}

/* Workspace Container & Bottom User Area in Sidebar */
#main-sidebar .bg-\[\#121c32\],
#main-sidebar .bg-\[\#0c1e21\],
#main-sidebar .bg-\[\#f4f8f8\],
html.theme-light #main-sidebar .bg-\[\#121c32\],
html.theme-light #main-sidebar .bg-\[\#0c1e21\],
html.theme-light #main-sidebar .bg-\[\#f4f8f8\] {
    background-color: #0c1e21 !important;
    border-color: #14353a !important;
}

#main-sidebar .bg-\[\#090e1a\]\/95,
#main-sidebar .bg-\[\#061012\],
html.theme-light #main-sidebar .bg-\[\#090e1a\]\/95,
html.theme-light #main-sidebar .bg-\[\#061012\] {
    background-color: #061012 !important;
    border-color: #14353a !important;
}

#main-sidebar #sidebar-user-fullname,
html.theme-light #main-sidebar #sidebar-user-fullname {
    color: #ffffff !important;
}

/* Top App Header Light */
html.theme-light #app-top-header,
html.theme-light header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e2edec !important;
}

/* Panels, Cards & Dashboard Boxes Light */
html.theme-light #app-main-wrapper .glass-panel,
html.theme-light #app-main-wrapper .glass-card,
html.theme-light #app-main-wrapper .view-section > div,
html.theme-light #app-main-wrapper .view-section .grid > div,
html.theme-light #app-main-wrapper #view-dashboard .p-6,
html.theme-light #app-main-wrapper #view-dashboard .p-5,
html.theme-light #app-main-wrapper #view-dashboard .rounded-3xl,
html.theme-light #app-main-wrapper .card-box {
    background-color: #ffffff !important;
    border-color: #e2edec !important;
    color: #0f172a !important;
    box-shadow: 0 4px 18px -4px rgba(0, 186, 169, 0.04);
}

html.theme-light #app-main-wrapper .tag-chip {
    background-color: #e0fbf8 !important;
    color: #0f766e !important;
    border-color: #99f6e4 !important;
}

/* Headings & Text Light in Main Workspace (Excludes Sidebar) */
html.theme-light #app-main-wrapper h1,
html.theme-light #app-main-wrapper h2,
html.theme-light #app-main-wrapper h3,
html.theme-light #app-main-wrapper h4,
html.theme-light #app-main-wrapper h5,
html.theme-light #app-main-wrapper h6,
html.theme-light #app-main-wrapper .text-white {
    color: #0f172a !important;
}

html.theme-light #app-main-wrapper .text-slate-100,
html.theme-light #app-main-wrapper .text-slate-200,
html.theme-light #app-main-wrapper .text-slate-300 {
    color: #334155 !important;
}

html.theme-light #app-main-wrapper .text-slate-400 {
    color: #64748b !important;
}

html.theme-light #app-main-wrapper .text-slate-500 {
    color: #94a3b8 !important;
}

/* Inputs, Selects, Textareas Light */
html.theme-light #app-main-wrapper input,
html.theme-light #app-main-wrapper select,
html.theme-light #app-main-wrapper textarea,
html.theme-light .modal-overlay input,
html.theme-light .modal-overlay select,
html.theme-light .modal-overlay textarea {
    background-color: #ffffff !important;
    border: 1px solid #d5e5e4 !important;
    color: #0f172a !important;
}

html.theme-light #app-main-wrapper input:focus,
html.theme-light #app-main-wrapper select:focus,
html.theme-light #app-main-wrapper textarea:focus,
html.theme-light .modal-overlay input:focus,
html.theme-light .modal-overlay select:focus,
html.theme-light .modal-overlay textarea:focus {
    border-color: #00baa9 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(0, 186, 169, 0.2) !important;
}

html.theme-light input::placeholder,
html.theme-light textarea::placeholder {
    color: #94a3b8 !important;
}

/* Tables Light */
html.theme-light #app-main-wrapper table {
    background-color: #ffffff !important;
    color: #334155 !important;
}

html.theme-light #app-main-wrapper thead,
html.theme-light #app-main-wrapper thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light #app-main-wrapper tbody tr {
    background-color: #ffffff !important;
    border-color: #f1f5f9 !important;
}

html.theme-light #app-main-wrapper tbody tr:hover {
    background-color: #f8fafc !important;
}

/* 2026 SaaS High-Density Table Layout */
#listings-container table {
    width: 100% !important;
    table-layout: fixed !important;
}

#listings-container th,
#listings-container td {
    vertical-align: middle;
}

/* Dropdown Menus Light */
html.theme-light .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1) !important;
}

html.theme-light .dropdown-menu button,
html.theme-light .dropdown-menu a {
    color: #334155 !important;
}

html.theme-light .dropdown-menu button:hover,
html.theme-light .dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html.theme-light .dropdown-menu .border-slate-800,
html.theme-light .dropdown-menu .border-slate-700 {
    border-color: #e2e8f0 !important;
}

/* Modals Light */
html.theme-light .modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
}

html.theme-light #modal-listing > div,
html.theme-light #modal-import-export > div,
html.theme-light #modal-2fa-setup > div {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
}

html.theme-light #modal-listing form,
html.theme-light #modal-import-export form,
html.theme-light #modal-listing > div > div:first-child,
html.theme-light #modal-import-export > div > div:first-child {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

/* Control Pills & Platform Switchers Light in Main Wrapper */
html.theme-light #app-main-wrapper .bg-slate-800\/80,
html.theme-light #app-main-wrapper .bg-slate-800\/60,
html.theme-light #app-main-wrapper .bg-slate-800,
html.theme-light #app-main-wrapper .bg-slate-900\/90,
html.theme-light #app-main-wrapper .bg-slate-900\/80,
html.theme-light #app-main-wrapper .bg-slate-900\/60,
html.theme-light #app-main-wrapper .bg-slate-900,
html.theme-light #app-main-wrapper .bg-\[\#0a0e1a\],
html.theme-light #app-main-wrapper .bg-\[\#0f172a\] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.theme-light #app-main-wrapper button[id^="btn-"]:not(.btn-mydesigns-primary):not(.bg-indigo-600) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

html.theme-light #app-main-wrapper button[id^="btn-"]:hover:not(.btn-mydesigns-primary):not(.bg-indigo-600) {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* 2026 Studio Micro-Animations & Glow Utilities */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Studio Modern Input Polish */
#listings-form-section input:focus,
#listings-form-section select:focus,
#listings-form-section textarea:focus {
    box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.15) !important;
}

/* Dark mode subtle glow border on active cards */
.dark #listings-form-section .p-6,
.dark #listings-form-section .p-7,
.dark #listings-form-section .p-8 {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   True Flash ON / OFF Alert Animations for Table Rows (Expired = Red, Draft = Purple)
   ========================================================================== */
@keyframes flash-alert-red {
    0%, 100% {
        background-color: transparent !important;
        border-left-color: transparent !important;
    }
    50% {
        background-color: rgba(239, 68, 68, 0.38) !important;
        border-left-color: #ef4444 !important;
    }
}

tr.row-flash-red,
tr.row-flash-red > td,
tr.row-flash-red:hover,
tr.row-flash-red:hover > td,
html.theme-light tr.row-flash-red,
html.theme-light tr.row-flash-red > td,
html.theme-light tr.row-flash-red:hover,
html.theme-light tr.row-flash-red:hover > td {
    animation: flash-alert-red 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

tr.row-flash-red > td:first-child,
html.theme-light tr.row-flash-red > td:first-child {
    border-left: 6px solid #ef4444 !important;
}

@keyframes flash-alert-purple {
    0%, 100% {
        background-color: transparent !important;
        border-left-color: transparent !important;
    }
    50% {
        background-color: rgba(168, 85, 247, 0.35) !important;
        border-left-color: #9333ea !important;
    }
}

tr.row-flash-purple,
tr.row-flash-purple > td,
tr.row-flash-purple:hover,
tr.row-flash-purple:hover > td,
html.theme-light tr.row-flash-purple,
html.theme-light tr.row-flash-purple > td,
html.theme-light tr.row-flash-purple:hover,
html.theme-light tr.row-flash-purple:hover > td {
    animation: flash-alert-purple 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

tr.row-flash-purple > td:first-child,
html.theme-light tr.row-flash-purple > td:first-child {
    border-left: 6px solid #9333ea !important;
}

@keyframes flash-alert-orange {
    0%, 100% {
        background-color: transparent !important;
        border-left-color: transparent !important;
    }
    50% {
        background-color: rgba(245, 158, 11, 0.38) !important;
        border-left-color: #f59e0b !important;
    }
}

tr.row-flash-orange,
tr.row-flash-orange > td,
tr.row-flash-orange:hover,
tr.row-flash-orange:hover > td,
html.theme-light tr.row-flash-orange,
html.theme-light tr.row-flash-orange > td,
html.theme-light tr.row-flash-orange:hover,
html.theme-light tr.row-flash-orange:hover > td {
    animation: flash-alert-orange 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

tr.row-flash-orange > td:first-child,
html.theme-light tr.row-flash-orange > td:first-child {
    border-left: 6px solid #f59e0b !important;
}

/* Grid Card Flashes ON/OFF */
@keyframes flash-card-red {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.15);
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        border-color: #ef4444;
        background-color: rgba(239, 68, 68, 0.25);
        box-shadow: 0 0 25px 3px rgba(239, 68, 68, 0.40);
    }
}

.card-flash-red {
    animation: flash-card-red 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes flash-card-purple {
    0%, 100% {
        border-color: rgba(168, 85, 247, 0.15);
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        border-color: #9333ea;
        background-color: rgba(168, 85, 247, 0.25);
        box-shadow: 0 0 25px 3px rgba(168, 85, 247, 0.40);
    }
}

.card-flash-purple {
    animation: flash-card-purple 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes flash-card-orange {
    0%, 100% {
        border-color: rgba(245, 158, 11, 0.15);
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        border-color: #f59e0b;
        background-color: rgba(245, 158, 11, 0.25);
        box-shadow: 0 0 25px 3px rgba(245, 158, 11, 0.40);
    }
}

.card-flash-orange {
    animation: flash-card-orange 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* ==========================================================================
   PERMANENT DARK SIDEBAR MENU & GREEN GOOD BUTTONS SYSTEM
   ========================================================================== */

/* Left Sidebar is ALWAYS DARK (#061012) in all modes */
#main-sidebar,
#main-sidebar > div,
#main-sidebar nav,
#main-sidebar .custom-scrollbar {
    background-color: #061012 !important;
    border-color: #14353a !important;
    color: #8faab0 !important;
}

#main-sidebar .bg-white,
#main-sidebar .bg-slate-50,
#main-sidebar .bg-slate-100,
#main-sidebar .bg-slate-200,
#main-sidebar .bg-\[\#f4f8f8\],
#main-sidebar .bg-\[\#f2f7f7\] {
    background-color: #0c1e21 !important;
}

#main-sidebar .border-slate-200,
#main-sidebar .border-slate-100,
#main-sidebar .border-slate-300,
#main-sidebar .border-\[\#e2edec\] {
    border-color: #14353a !important;
}

#main-sidebar .text-slate-900,
#main-sidebar .text-slate-800,
#main-sidebar .text-slate-700 {
    color: #ffffff !important;
}

#main-sidebar .text-slate-600,
#main-sidebar .text-slate-500,
#main-sidebar .text-slate-400 {
    color: #8faab0 !important;
}

/* Green "Good" Button & Primary Button Rules */
.btn-mydesigns-primary,
.btn-primary,
button.btn-primary,
.bg-gradient-mydesigns,
.btn-good-green {
    background: linear-gradient(135deg, #00baa9 0%, #02cbb7 45%, #2cf3fd 100%) !important;
    color: #041a1c !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(0, 186, 169, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-mydesigns-primary:hover,
.btn-primary:hover,
button.btn-primary:hover,
.btn-good-green:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px 0 rgba(0, 186, 169, 0.5) !important;
}

.btn-mydesigns-primary:active,
.btn-primary:active,
button.btn-primary:active,
.btn-good-green:active {
    transform: translateY(0) !important;
    filter: brightness(0.95) !important;
}

/* Dark Mode Overrides */
html.dark, body.dark {
    background-color: #081315 !important;
    color: #f1f5f9 !important;
}

html.dark #app-top-header {
    background-color: rgba(12, 30, 33, 0.95) !important;
    border-color: #14353a !important;
}

html.dark #app-main-wrapper {
    background-color: #081315 !important;
}

html.dark .bg-\[\#0e1424\],
html.dark .bg-\[\#131d33\],
html.dark .bg-\[\#141d33\],
html.dark .bg-\[\#16223e\],
html.dark .bg-\[\#090d16\] {
    background-color: #0c1e21 !important;
}

html.dark .bg-\[\#090e1a\] {
    background-color: #061012 !important;
}

html.dark .border-slate-800,
html.dark .border-slate-800\/80,
html.dark .border-slate-800\/90,
html.dark .border-slate-750,
html.dark .border-slate-700,
html.dark .border-slate-700\/80,
html.dark .border-\[\#192338\],
html.dark .border-\[\#1e2a47\] {
    border-color: #14353a !important;
}

/* Light Mode Overrides */
html:not(.dark), html.theme-light, body:not(.dark) {
    background-color: #f2f7f7 !important;
    color: #0f172a !important;
}

html:not(.dark) #app-top-header, html.theme-light #app-top-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #e2edec !important;
}

html:not(.dark) #app-main-wrapper, html.theme-light #app-main-wrapper {
    background-color: #f2f7f7 !important;
}

/* Range input accent colors */
input[type="range"] {
    accent-color: #00baa9 !important;
}





