/* ==========================================================================
   THE CRM & ERP - UI/UX PRO MAX PREMIUM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;850&display=swap');

:root {
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --transition-speed: 0.35s;
    --transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Light Theme Defaults (Glassmorphic Indigo) */
    --bg-primary: #f1f5f9;
    --bg-mesh: radial-gradient(circle at 0% 0%, rgba(241, 245, 249, 0.6) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(224, 231, 255, 0.6) 100%);
    --card-bg: rgba(255, 255, 255, 0.76);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.01), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    --card-hover-shadow: 0 25px 60px -12px rgba(79, 70, 229, 0.12), 0 8px 30px -8px rgba(79, 70, 229, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    --card-hover-border: rgba(79, 70, 229, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --sidebar-bg: rgba(255, 255, 255, 0.8);
    --sidebar-border: rgba(255, 255, 255, 0.5);
    --primary: 79, 70, 229; /* Indigo 600 */
    --primary-glow: rgba(79, 70, 229, 0.2);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --blur-val: 24px;
    --accent: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* ==========================================================================
   DYNAMIC COLOR THEMES
   ========================================================================== */

/* Dark Velvet Theme */
[data-theme="dark"] {
    --bg-primary: #070a13;
    --bg-mesh: radial-gradient(circle at 0% 0%, rgba(10, 14, 26, 0.85) 0%, #070a13 60%, rgba(20, 13, 43, 0.85) 100%);
    --card-bg: rgba(15, 23, 42, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    --card-hover-shadow: 0 30px 70px -12px rgba(99, 102, 241, 0.22), 0 8px 35px -8px rgba(99, 102, 241, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(99, 102, 241, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --sidebar-bg: rgba(15, 23, 42, 0.78);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --primary: 99, 102, 241; /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.35);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --blur-val: 28px;
    --accent: #6366f1;
}

/* Midnight Cyberpunk Theme */
[data-theme="cyberpunk"] {
    --bg-primary: #02040a;
    --bg-mesh: radial-gradient(circle at 0% 0%, rgba(13, 10, 24, 0.95) 0%, #02040a 60%, rgba(28, 6, 38, 0.9) 100%);
    --card-bg: rgba(7, 9, 15, 0.85);
    --card-border: rgba(0, 242, 254, 0.2);
    --card-shadow: 0 10px 45px -10px rgba(0, 242, 254, 0.08), inset 0 1px 0 0 rgba(0, 242, 254, 0.1);
    --card-hover-shadow: 0 25px 65px -10px rgba(254, 1, 154, 0.25), 0 5px 30px -5px rgba(0, 242, 254, 0.25), inset 0 1px 0 0 rgba(254, 1, 154, 0.2);
    --card-hover-border: rgba(254, 1, 154, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #4b5563;
    --sidebar-bg: rgba(4, 5, 8, 0.9);
    --sidebar-border: rgba(0, 242, 254, 0.15);
    --primary: 0, 242, 254; /* Cyan */
    --primary-glow: rgba(0, 242, 254, 0.4);
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --blur-val: 32px;
    --accent: #00f2fe;
}

/* Aurora Emerald Theme */
[data-theme="emerald"] {
    --bg-primary: #030807;
    --bg-mesh: radial-gradient(circle at 0% 0%, rgba(8, 28, 20, 0.9) 0%, #030807 50%, rgba(4, 18, 30, 0.8) 100%);
    --card-bg: rgba(10, 18, 16, 0.8);
    --card-border: rgba(16, 185, 129, 0.12);
    --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(16, 185, 129, 0.05);
    --card-hover-shadow: 0 30px 70px -12px rgba(16, 185, 129, 0.22), 0 8px 35px -8px rgba(16, 185, 129, 0.12), inset 0 1px 0 0 rgba(16, 185, 129, 0.1);
    --card-hover-border: rgba(16, 185, 129, 0.45);
    --text-primary: #f0fdf4;
    --text-secondary: #a7f3d0;
    --text-muted: #4b534d;
    --sidebar-bg: rgba(6, 14, 12, 0.85);
    --sidebar-border: rgba(16, 185, 129, 0.08);
    --primary: 16, 185, 129; /* Emerald 500 */
    --primary-glow: rgba(16, 185, 129, 0.35);
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --blur-val: 26px;
    --accent: #10b981;
}

/* Royal Violet Theme */
[data-theme="violet"] {
    --bg-primary: #05040a;
    --bg-mesh: radial-gradient(circle at 0% 0%, rgba(18, 12, 33, 0.9) 0%, #05040a 60%, rgba(32, 8, 28, 0.85) 100%);
    --card-bg: rgba(16, 12, 26, 0.8);
    --card-border: rgba(139, 92, 246, 0.12);
    --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(139, 92, 246, 0.05);
    --card-hover-shadow: 0 30px 70px -12px rgba(139, 92, 246, 0.22), 0 8px 35px -8px rgba(139, 92, 246, 0.12), inset 0 1px 0 0 rgba(139, 92, 246, 0.1);
    --card-hover-border: rgba(139, 92, 246, 0.45);
    --text-primary: #f5f3ff;
    --text-secondary: #ddd6fe;
    --text-muted: #574e69;
    --sidebar-bg: rgba(12, 9, 20, 0.85);
    --sidebar-border: rgba(139, 92, 246, 0.08);
    --primary: 139, 92, 246; /* Violet 500 */
    --primary-glow: rgba(139, 92, 246, 0.35);
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --blur-val: 28px;
    --accent: #8b5cf6;
}

/* ==========================================================================
   LUCIDE ICONS DEFINITE VISIBILITY RULE
   ========================================================================== */
i[data-lucide], svg.lucide {
    width: 1.25rem !important;
    height: 1.25rem !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease !important;
}

/* ==========================================================================
   BODY STYLE & LAYOUT INTEGRATION
   ========================================================================== */

body {
    font-family: var(--font-sans);
    background: var(--bg-mesh);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Glassmorphism ambient floating blobs */
.ambient-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 750px;
    height: 750px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.3;
    mix-blend-mode: screen;
    animation: rotateBlob 25s infinite linear;
}

[data-theme="light"] .glow-blob {
    opacity: 0.16;
    mix-blend-mode: multiply;
}

.blob-primary {
    top: -200px;
    left: -150px;
    background: rgb(var(--primary));
    animation-duration: 35s;
}

.blob-secondary {
    bottom: -200px;
    right: -150px;
    background: #f43f5e; /* Vibrant Rose */
    animation-duration: 28s;
    animation-delay: -7s;
}

.blob-tertiary {
    top: 35%;
    left: 45%;
    width: 500px;
    height: 500px;
    background: #00f2fe; /* Cyberpunk Cyan */
    animation-duration: 45s;
    animation-delay: -12s;
}

@keyframes rotateBlob {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(120px, 80px) rotate(120deg) scale(1.2); }
    66% { transform: translate(-80px, 140px) rotate(240deg) scale(0.85); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Override standard Tailwind classes for dynamic color consistency */
.bg-white, .bg-slate-50, .bg-slate-50\/50, .bg-slate-100 {
    background-color: var(--card-bg) !important;
    backdrop-filter: blur(var(--blur-val)) !important;
    -webkit-backdrop-filter: blur(var(--blur-val)) !important;
}

.border-slate-100, .border-slate-200, .border-slate-200\/80, .border-slate-200\/50 {
    border-color: var(--card-border) !important;
}

.text-slate-900, .text-slate-950, .text-slate-800 {
    color: var(--text-primary) !important;
}

.text-slate-500, .text-slate-600, .text-slate-700 {
    color: var(--text-secondary) !important;
}

.text-slate-400 {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   ORGANIC SLIDE-UP TAB TRANSITIONS & STAGGERED ENTRANCE
   ========================================================================== */

.panel-region {
    animation: tabFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes tabFadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(1.5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Stagger animations for child containers */
.panel-region > div, .stagger-in {
    opacity: 0;
    animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panel-region > div:nth-child(1) { animation-delay: 0.05s; }
.panel-region > div:nth-child(2) { animation-delay: 0.12s; }
.panel-region > div:nth-child(3) { animation-delay: 0.2s; }
.panel-region > div:nth-child(4) { animation-delay: 0.28s; }

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

/* ==========================================================================
   GLASSMORPHIC CARDS WITH DYNAMIC GLOWS & REFLECTIONS
   ========================================================================== */

.glass-card-premium {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition-spring);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Glossy diagonal reflection overlay */
.glass-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0) 55%
    );
    pointer-events: none;
    transform: rotate(-15deg);
    transition: transform 0.6s ease-in-out;
}

.glass-card-premium:hover::before {
    transform: translate(15%, 15%) rotate(-15deg);
}

/* Elegant top accent bar for Premium Cards */
.glass-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.glass-card-premium:hover::after {
    opacity: 1;
}

.glass-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--card-hover-border);
}

/* Glowing metrics card left borders */
.metric-card-income, .metric-card-expense, .metric-card-pending, .metric-card-overdue {
    border-left: 5px solid transparent !important;
}

.metric-card-income { border-left-color: var(--success) !important; }
.metric-card-expense { border-left-color: var(--danger) !important; }
.metric-card-pending { border-left-color: rgb(var(--primary)) !important; }
.metric-card-overdue { border-left-color: var(--warning) !important; }

/* Hover glowing accents for specific metrics */
.metric-card-income:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 20px 45px -12px rgba(16, 185, 129, 0.18) !important;
}

.metric-card-expense:hover {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 20px 45px -12px rgba(239, 68, 68, 0.18) !important;
}

/* ==========================================================================
   SIDEBAR NAVIGATION UPGRADES
   ========================================================================== */

#sidebar-nav {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-right: 1px solid var(--sidebar-border);
    transition: background-color var(--transition-speed), border var(--transition-speed);
}

.menu-item {
    transition: var(--transition);
    position: relative;
}

.menu-item a {
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Hover states with Lucide Icon shift and card slide */
.menu-item:hover {
    transform: translateX(6px);
}

.menu-item a:hover {
    background: linear-gradient(135deg, rgba(var(--primary), 0.06) 0%, rgba(var(--primary), 0.01) 100%) !important;
    color: rgb(var(--primary)) !important;
}

.menu-item:hover i[data-lucide] {
    transform: scale(1.18) rotate(4deg);
    color: rgb(var(--primary)) !important;
}

/* Active sidebar indicators with dynamic color glows */
.menu-item.active {
    transform: translateX(7px) scale(1.015);
}

.menu-item.active a {
    background: linear-gradient(135deg, rgba(var(--primary), 0.1) 0%, rgba(var(--primary), 0.02) 100%) !important;
    border-color: rgba(var(--primary), 0.18) !important;
    color: rgb(var(--primary)) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 18px -3px var(--primary-glow);
}

.menu-item.active i[data-lucide] {
    color: rgb(var(--primary)) !important;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 99px;
    box-shadow: 0 0 10px rgb(var(--primary));
    animation: barGrow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes barGrow {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   SLIDING FLOATING APPEARANCE CUSTOMIZER PANEL
   ========================================================================== */

.customizer-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-left: 1px solid var(--card-border);
    box-shadow: -15px 0 45px -15px rgba(0, 0, 0, 0.3);
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.customizer-drawer.open {
    right: 0;
}

.theme-card-option {
    border: 2px solid var(--card-border);
    border-radius: 1rem;
    padding: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

.theme-card-option:hover {
    border-color: rgb(var(--primary));
    transform: translateY(-2px);
}

.theme-card-option.active {
    border-color: rgb(var(--primary));
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

.theme-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.floating-customizer-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px -5px var(--primary-glow), 0 5px 12px -3px var(--primary-glow);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-spring);
}

.floating-customizer-trigger:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 18px 35px -5px var(--primary-glow);
}

.floating-customizer-trigger i {
    font-size: 1.35rem;
    animation: gearSpin 6s infinite linear;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   PREMIUM CUSTOM BUTTONS, INPUTS, AND ACCENTS
   ========================================================================== */

.btn-premium-indigo {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px var(--primary-glow);
    border: none;
    transition: var(--transition-spring);
}

.btn-premium-indigo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px -4px var(--primary-glow);
}

.btn-premium-indigo:active {
    transform: translateY(1px) scale(0.98);
}

/* Selectable Sub-tab Buttons */
.sales-tab-btn, .project-tab-btn, .kb-filter-btn {
    transition: var(--transition);
    border-radius: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--card-border) !important;
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
}

.sales-tab-btn:hover, .project-tab-btn:hover, .kb-filter-btn:hover {
    background: rgba(var(--primary), 0.05) !important;
    border-color: rgba(var(--primary), 0.2) !important;
}

.sales-tab-btn.active, .project-tab-btn.active, .kb-filter-btn.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px var(--primary-glow) !important;
    border-color: transparent !important;
}

/* Form Input Styling */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    transition: var(--transition);
    border-radius: 0.75rem !important;
}

input:focus, textarea:focus, select:focus {
    background: var(--card-bg) !important;
    border-color: rgb(var(--primary)) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.2) !important;
    outline: none !important;
}

/* Modern Minimalist Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--primary), 0.18);
    border-radius: 999px;
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary), 0.35);
}

/* ==========================================================================
   TOAST NOTIFICATIONS OVERHAUL
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-left: 5px solid rgb(var(--primary));
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow), 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 330px;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: springSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.toast.toast-danger {
    border-left-color: var(--danger);
}

@keyframes springSlideIn {
    from {
        transform: translateY(2rem) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   VIBRANT BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-pending {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* WYSIWYG EDITOR OVERRIDES */
.wysiwyg-content {
    outline: none;
    line-height: 1.7;
}

.wysiwyg-content p {
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
}

.wysiwyg-content h1, 
.wysiwyg-content h2, 
.wysiwyg-content h3 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   KANBAN & DIRECTORIES GLOWING GRID ACCENTS
   ========================================================================== */

.kanban-column-header {
    border-top: 3px solid rgb(var(--primary));
    background: rgba(var(--primary), 0.02);
    border-radius: 0.75rem;
}

.kanban-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    border-radius: 1rem !important;
    transition: var(--transition-spring);
}

.kanban-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px -10px rgba(var(--primary), 0.12) !important;
    border-color: rgba(var(--primary), 0.3) !important;
}

/* ==========================================================================
   UI/UX IMPROVEMENTS & RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Hide scrollbars but keep native scroll function active */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
}

/* Ensure sidebar stays 100% full height of content */
#sidebar-nav {
    min-height: 100vh !important;
}

/* Premium Project List Cards Layout */
.project-list-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.project-list-card:hover {
    transform: translateY(-3px) scale(1.015);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(var(--primary), 0.35);
    box-shadow: var(--card-hover-shadow);
}

[data-theme="dark"] .project-list-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(var(--primary), 0.55);
}

.project-list-card.active {
    background: linear-gradient(135deg, rgba(var(--primary), 0.08) 0%, rgba(var(--primary), 0.02) 100%) !important;
    border-color: rgba(var(--primary), 0.45) !important;
    box-shadow: 0 8px 25px -6px var(--primary-glow) !important;
}

.project-list-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4.5px;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgb(var(--primary));
}

/* Responsive Table stacks on Mobile Screens (< 768px) */
@media (max-width: 768px) {
    .overflow-x-auto table:not(.no-responsive) {
        display: block !important;
    }
    
    .overflow-x-auto table:not(.no-responsive) thead {
        display: none !important; /* Hide header rows */
    }
    
    .overflow-x-auto table:not(.no-responsive) tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .overflow-x-auto table:not(.no-responsive) tr {
        display: block !important;
        margin-bottom: 1.25rem !important;
        border: 1px solid var(--card-border) !important;
        border-radius: 1.25rem !important;
        padding: 1.25rem !important;
        background: var(--card-bg) !important;
        box-shadow: var(--card-shadow) !important;
    }
    
    .overflow-x-auto table:not(.no-responsive) td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.65rem 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
        text-align: right !important;
        font-size: 0.825rem !important;
    }
    
    [data-theme="dark"] .overflow-x-auto table:not(.no-responsive) td {
        border-bottom-color: rgba(255, 255, 255, 0.03) !important;
    }
    
    .overflow-x-auto table:not(.no-responsive) td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    
    .overflow-x-auto table:not(.no-responsive) td:first-child {
        padding-top: 0 !important;
    }
    
    /* Dynamically map headers using data-label if possible, or support clean wrapping */
    .overflow-x-auto table:not(.no-responsive) td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.725rem;
        text-transform: uppercase;
        margin-right: 1.25rem;
        flex-shrink: 0;
    }
}
