/* ========================================
   DARK MODE THEME SYSTEM
   Perfect Dark Theme with Smooth Transitions
   ======================================== */

/* Root Variables for Light Mode (Architectural Luxury Ivory & Pure White) */
:root {
    /* Background Colors */
    --bg-primary: #F4F1E9;
    --bg-secondary: #EBE7DD;
    --bg-tertiary: #E2DCD0;
    --bg-hover: #D8D3C8;
    --bg-card: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #020817;
    --text-secondary: #334155;
    --text-tertiary: #64748B;
    --text-inverse: #FFFFFF;
    
    /* Border Colors */
    --border-primary: rgba(182, 138, 98, 0.3);
    --border-secondary: #D8D3C8;
    --border-hover: #b68a62;
    
    /* Signature Gold Accent Colors */
    --accent-gold: #b68a62;
    --accent-gold-light: #cbae75;
    --accent-gold-dark: #967b48;
    --accent-purple: #b68a62;
    --accent-indigo: #b68a62;
    --accent-blue: #b68a62;
    --accent-green: #2e7d32;
    --accent-yellow: #b68a62;
    --accent-red: #c62828;
    --accent-orange: #d84315;
    
    /* Shadow */
    --shadow-sm: 0 1px 3px 0 rgba(2, 8, 23, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(2, 8, 23, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(2, 8, 23, 0.12);
    --shadow-xl: 0 24px 36px -6px rgba(2, 8, 23, 0.16);
    
    /* Input */
    --input-bg: #FFFFFF;
    --input-border: rgba(182, 138, 98, 0.4);
    --input-focus: #b68a62;
    
    /* Sidebar */
    --sidebar-bg: #F4F1E9;
    --sidebar-border: rgba(182, 138, 98, 0.3);
    
    /* Code/Pre */
    --code-bg: #EBE7DD;
    --code-text: #020817;
}

/* Dark Mode Variables (Architectural Midnight Obsidian #020817 & Signature Gold #b68a62) */
[data-theme="dark"] {
    /* Background Colors */
    --bg-primary: #020817;
    --bg-secondary: #0a1020;
    --bg-tertiary: #111a2e;
    --bg-hover: #18233c;
    --bg-card: #0a1020;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-inverse: #020817;
    
    /* Border Colors */
    --border-primary: rgba(182, 138, 98, 0.25);
    --border-secondary: #18233c;
    --border-hover: #b68a62;
    
    /* Signature Gold Accent Colors */
    --accent-gold: #b68a62;
    --accent-gold-light: #cbae75;
    --accent-gold-dark: #967b48;
    --accent-purple: #b68a62;
    --accent-indigo: #b68a62;
    --accent-blue: #b68a62;
    
    /* Shadow */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 28px 48px -8px rgba(0, 0, 0, 0.8);
    
    /* Input */
    --input-bg: #0a1020;
    --input-border: rgba(182, 138, 98, 0.35);
    --input-focus: #b68a62;
    
    /* Sidebar */
    --sidebar-bg: #0a1020;
    --sidebar-border: rgba(182, 138, 98, 0.22);
    
    /* Code/Pre */
    --code-bg: #111a2e;
    --code-text: #F8FAFC;
}

/* Smooth Transitions for Theme Switch */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Disable transitions for specific elements */
.no-transition,
.no-transition * {
    transition: none !important;
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================
   GLOBAL ARCHITECTURAL LUXURY REBRAND OVERRIDES
   Transforms all blue buttons & elements into Signature Gold (#B69A62) & Obsidian (#11110F)
   ======================================== */

/* Primary Buttons & Action Buttons (Green, Blue, Indigo, Purple, Emerald) */
.bg-blue-600,
.bg-blue-500,
.bg-indigo-600,
.bg-indigo-500,
.bg-purple-600,
.bg-blue-700,
.bg-green-600,
.bg-green-500,
.bg-emerald-600,
.bg-emerald-500,
.btn-primary {
    background-color: #B69A62 !important;
    color: #11110F !important;
    font-weight: 600 !important;
    border: 1px solid #967B48 !important;
    box-shadow: 0 2px 8px rgba(182, 154, 98, 0.25) !important;
    transition: all 0.2s ease !important;
}

.bg-blue-600:hover,
.bg-blue-500:hover,
.bg-indigo-600:hover,
.bg-indigo-500:hover,
.bg-purple-600:hover,
.bg-blue-700:hover,
.bg-green-600:hover,
.bg-green-500:hover,
.bg-emerald-600:hover,
.bg-emerald-500:hover,
.btn-primary:hover {
    background-color: #CBAE75 !important;
    color: #11110F !important;
    box-shadow: 0 4px 12px rgba(182, 154, 98, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Workspace Badge Adaptive Styling */
.workspace-badge {
    background-color: #EBE7DD !important;
    color: #11110F !important;
    border: 1px solid rgba(182, 154, 98, 0.4) !important;
}

[data-theme="dark"] .workspace-badge {
    background-color: #1A1A1A !important;
    color: #B69A62 !important;
    border: 1px solid rgba(182, 154, 98, 0.3) !important;
}

/* Secondary / Dark Buttons */
.btn-secondary {
    background-color: #1A1A1A !important;
    color: #F4F1E9 !important;
    border: 1px solid rgba(182, 154, 98, 0.3) !important;
}

.btn-secondary:hover {
    background-color: #262624 !important;
    color: #B69A62 !important;
    border-color: #B69A62 !important;
}

/* Blue Text Overrides */
.text-blue-600,
.text-blue-500,
.text-indigo-600,
.text-indigo-500,
.text-purple-600 {
    color: #B69A62 !important;
}

.text-blue-600:hover,
.text-blue-500:hover,
.text-indigo-600:hover,
.text-purple-600:hover {
    color: #CBAE75 !important;
}

/* Blue Soft Badge Overrides */
.bg-blue-50,
.bg-blue-100,
.bg-indigo-50,
.bg-indigo-100 {
    background-color: rgba(182, 154, 98, 0.15) !important;
    color: #B69A62 !important;
    border: 1px solid rgba(182, 154, 98, 0.3) !important;
}

[data-theme="light"] .bg-blue-50,
[data-theme="light"] .bg-blue-100,
[data-theme="light"] .bg-indigo-50,
[data-theme="light"] .bg-indigo-100 {
    background-color: #EBE7DD !important;
    color: #11110F !important;
    border: 1px solid rgba(182, 154, 98, 0.4) !important;
}

/* Blue Border Overrides */
.border-blue-500,
.border-blue-600,
.border-indigo-500,
.border-indigo-600 {
    border-color: #B69A62 !important;
}

/* Light Theme Clean Card & Body Fixes */
[data-theme="light"] body {
    background-color: #F4F1E9 !important;
    color: #11110F !important;
}

[data-theme="light"] nav {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid rgba(182, 154, 98, 0.3) !important;
    box-shadow: 0 4px 12px rgba(17, 17, 15, 0.05) !important;
}

[data-theme="light"] nav a {
    color: #11110F !important;
}

[data-theme="light"] nav a:hover {
    color: #B69A62 !important;
}

[data-theme="light"] .brand-title {
    color: #11110F !important;
}

[data-theme="light"] .card,
[data-theme="light"] .bg-white,
[data-theme="light"] div[class*="bg-white"],
[data-theme="light"] section[class*="bg-white"] {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(182, 154, 98, 0.25) !important;
    box-shadow: 0 4px 12px -2px rgba(17, 17, 15, 0.06) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .text-gray-900,
[data-theme="light"] .text-gray-800 {
    color: #11110F !important;
}

[data-theme="light"] p,
[data-theme="light"] .text-gray-700,
[data-theme="light"] .text-gray-600 {
    color: #3A3A3A !important;
}

[data-theme="light"] .text-gray-500,
[data-theme="light"] .text-gray-400 {
    color: #666258 !important;
}

[data-theme="light"] footer,
[data-theme="light"] footer.taskora-footer {
    background-color: #EBE7DD !important;
    background: #EBE7DD !important;
    color: #11110F !important;
    border-top: 1px solid rgba(182, 154, 98, 0.3) !important;
}

[data-theme="light"] footer p,
[data-theme="light"] footer span,
[data-theme="light"] footer a {
    color: #11110F !important;
}

[data-theme="light"] footer a:hover {
    color: #B69A62 !important;
}

/* Dark Theme Fixes */
[data-theme="dark"] body {
    background-color: #020817 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] nav {
    background-color: #0a1020 !important;
    border-bottom: 1px solid rgba(182, 138, 98, 0.25) !important;
}

[data-theme="dark"] nav a {
    color: #D8D3C8 !important;
}

[data-theme="dark"] nav a:hover {
    color: #b68a62 !important;
}

[data-theme="dark"] .brand-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] footer,
[data-theme="dark"] footer.taskora-footer {
    background-color: #020817 !important;
    background: #020817 !important;
    color: #F8FAFC !important;
    border-top: 1px solid rgba(182, 138, 98, 0.22) !important;
}

[data-theme="dark"] .text-green-600,
[data-theme="dark"] .text-green-700,
[data-theme="dark"] .text-green-800 {
    color: #34d399 !important;
}

[data-theme="dark"] .text-red-600,
[data-theme="dark"] .text-red-700,
[data-theme="dark"] .text-red-800 {
    color: #f87171 !important;
}

[data-theme="dark"] .text-yellow-600,
[data-theme="dark"] .text-yellow-700,
[data-theme="dark"] .text-yellow-800 {
    color: #fbbf24 !important;
}

[data-theme="dark"] .text-purple-600,
[data-theme="dark"] .text-purple-700,
[data-theme="dark"] .text-purple-800 {
    color: #a78bfa !important;
}

/* Background Colors (Dark mode overrides only) */
[data-theme="dark"] .bg-gray-50 { background-color: var(--bg-secondary) !important; }
[data-theme="dark"] .bg-gray-100 { background-color: var(--bg-tertiary) !important; }
[data-theme="dark"] .bg-gray-200 { background-color: var(--bg-hover) !important; }

/* Light colored backgrounds (info boxes, alerts, etc.) */
[data-theme="dark"] .bg-blue-50,
[data-theme="dark"] .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .bg-yellow-50,
[data-theme="dark"] .bg-yellow-100 {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

[data-theme="dark"] .bg-red-50,
[data-theme="dark"] .bg-red-100,
[data-theme="dark"] .bg-pink-50,
[data-theme="dark"] .bg-pink-100 {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] .bg-green-50,
[data-theme="dark"] .bg-green-100 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

[data-theme="dark"] .bg-purple-50,
[data-theme="dark"] .bg-purple-100 {
    background-color: rgba(147, 51, 234, 0.1) !important;
}

[data-theme="dark"] .bg-indigo-50,
[data-theme="dark"] .bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* Borders */
.border-gray-200 { border-color: var(--border-primary) !important; }
.border-gray-300 { border-color: var(--border-secondary) !important; }

/* Hover States */
.hover\:bg-gray-50:hover { background-color: var(--bg-hover) !important; }
.hover\:bg-gray-100:hover { background-color: var(--bg-hover) !important; }
.hover\:border-gray-300:hover { border-color: var(--border-hover) !important; }

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--input-border) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus) !important;
    background-color: var(--input-bg) !important;
}

/* Select dropdowns */
select option {
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* Disabled inputs */
[data-theme="dark"] input:disabled,
[data-theme="dark"] textarea:disabled,
[data-theme="dark"] select:disabled {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-tertiary) !important;
    opacity: 0.6;
}

/* Placeholder text */
[data-theme="dark"] ::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* Radio buttons and checkboxes */
[data-theme="dark"] input[type="radio"],
[data-theme="dark"] input[type="checkbox"] {
    background-color: var(--input-bg);
    border-color: var(--input-border);
}

[data-theme="dark"] input[type="radio"]:checked,
[data-theme="dark"] input[type="checkbox"]:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Navigation */
nav {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg) !important;
    border-color: var(--sidebar-border) !important;
}

/* Code Blocks */
pre,
code {
    background-color: var(--code-bg) !important;
    color: var(--code-text) !important;
}

/* Tables */
table {
    background-color: var(--bg-card) !important;
}

thead {
    background-color: var(--bg-tertiary) !important;
}

tbody tr:hover {
    background-color: var(--bg-hover) !important;
}

/* Modals */
.modal-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

.dropdown-item:hover {
    background-color: var(--bg-hover) !important;
}

/* Shadows */
.shadow { box-shadow: var(--shadow-sm) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Badges and Pills */
[data-theme="dark"] .badge,
[data-theme="dark"] .pill,
[data-theme="dark"] span[class*="bg-blue"],
[data-theme="dark"] span[class*="bg-green"],
[data-theme="dark"] span[class*="bg-purple"],
[data-theme="dark"] span[class*="bg-indigo"],
[data-theme="dark"] span[class*="bg-red"],
[data-theme="dark"] span[class*="bg-yellow"] {
    filter: brightness(0.9);
}

/* Specific badge fixes */

[data-theme="dark"] .bg-red-600,
[data-theme="dark"] .bg-red-700 {
    background-color: #dc2626 !important;
}

[data-theme="dark"] .bg-purple-700 {
    background-color: #7c3aed !important;
}

/* ========================================
   HEADER - LIGHT MODE TEXT
   ======================================== */

/* Make header navigation text darker in light mode */
[data-theme="light"] nav a.text-gray-500,
[data-theme="light"] .text-gray-500 {
    color: #374151 !important;
}

[data-theme="light"] nav a.text-gray-500:hover {
    color: #111827 !important;
}

/* ========================================
   FOOTER - DARK MODE (SOLID + FIXED)
   ======================================== */

/* Footer background - FORCE SOLID */
[data-theme="dark"] footer {
    position: relative !important;
    background: #0D0D0D !important;
    background-color: #0D0D0D !important;
    background-image: none !important;
    opacity: 1 !important;
    border-color: rgba(182, 154, 98, 0.22) !important;
    z-index: 100 !important;
}

/* FORCE solid background layer */
[data-theme="dark"] footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0D0D0D !important;
    z-index: -1;
}

/* Footer inner container */
[data-theme="dark"] footer > div {
    background: transparent !important;
    background-image: none !important;
    position: relative;
    z-index: 2;
}

/* Footer text colors - DARK MODE */
[data-theme="dark"] footer .text-gray-600,
[data-theme="dark"] footer .text-gray-500 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] footer .text-gray-400 {
    color: #94a3b8 !important;
}

/* Footer text colors - LIGHT MODE (darker) */
[data-theme="light"] footer .text-gray-600,
[data-theme="light"] footer .text-gray-500 {
    color: #374151 !important;
}

[data-theme="light"] footer .text-gray-400 {
    color: #4b5563 !important;
}

/* Taskora brand text - keep gradient visible */
[data-theme="dark"] footer .bg-gradient-to-r {
    background: linear-gradient(to right, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Footer links - DARK MODE */
[data-theme="dark"] footer a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] footer a:hover {
    color: #3b82f6 !important;
}

/* Footer links - LIGHT MODE (darker) */
[data-theme="light"] footer a {
    color: #374151 !important;
}

[data-theme="light"] footer a:hover {
    color: #1f2937 !important;
}

/* Groups chat body - OVERRIDE inline styles */
[data-theme="dark"] #messages-container {
    background: var(--bg-secondary) !important;
    background-image: none !important;
}

[data-theme="dark"] .messages-container {
    background-color: var(--bg-secondary) !important;
}

/* Message bubbles in groups */
[data-theme="dark"] .message-item .bg-white {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .message-item .border-gray-200 {
    border-color: var(--border-primary) !important;
}

/* Groups sidebar */
[data-theme="dark"] #sidebar {
    background-color: var(--bg-card) !important;
}

/* ========================================
   KANBAN BOARD - DARK MODE (COMPLETE)
   ======================================== */

/* Override body gradient background - ONLY on project board page */
[data-theme="dark"] body:has(.board-container) {
    background: #0f172a !important;
}

[data-theme="dark"] body:has(.board-container)::before {
    background: #0f172a !important;
    background-image: none !important;
    animation: none !important;
}

/* Board container - FORCE SOLID DARK */
[data-theme="dark"] .board-container,
[data-theme="dark"] div.board-container {
    background: #1e293b !important;
    background-color: #1e293b !important;
    background-image: none !important;
    backdrop-filter: none !important;
    border-color: var(--border-primary) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* All white backgrounds in board area */
[data-theme="dark"] .board-container .bg-white,
[data-theme="dark"] .board-container div[class*="bg-white"] {
    background-color: #1e293b !important;
}

[data-theme="dark"] .board-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e293b !important;
    z-index: 0;
    border-radius: inherit;
}

[data-theme="dark"] .board-container > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .board-container::after {
    display: none !important;
}

/* Grid container in board */
[data-theme="dark"] .board-container .grid {
    background-color: transparent !important;
}

/* ========================================
   PROJECT DETAIL PAGE - DARK MODE
   ======================================== */

/* Project header - fix key badge visibility */
.bg-gradient-to-r.from-blue-600 .bg-white.bg-opacity-20 {
    color: white !important;
}

[data-theme="light"] .bg-gradient-to-r.from-blue-600 .bg-white.bg-opacity-20 {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #1e40af !important;
    font-weight: 800 !important;
}

/* ========================================
   PROJECT DETAIL BOARD - DARK MODE
   ======================================== */

/* Board wrapper with gradient */
[data-theme="dark"] .bg-gradient-to-br.from-gray-50 {
    background: linear-gradient(to bottom right, #1e293b, #0f172a) !important;
    border-color: var(--border-primary) !important;
}

/* Column headers */
[data-theme="dark"] .bg-white.rounded-xl.shadow-sm.border-2 {
    background-color: #334155 !important;
    border-color: #475569 !important;
}

/* Column header text */
[data-theme="dark"] .bg-gradient-to-br.from-gray-50 h3 {
    color: var(--text-primary) !important;
}

/* Issue count badge */
[data-theme="dark"] .bg-gray-200.text-gray-700 {
    background-color: #475569 !important;
    color: var(--text-primary) !important;
}

/* Board header - fix text visibility in light mode */
.board-header .filter-btn {
    color: white !important;
}

.board-header .px-4.py-2.bg-white {
    color: white !important;
}

/* In light mode, make text dark */
[data-theme="light"] .board-header .filter-btn,
[data-theme="light"] .board-header .text-white {
    color: #1f2937 !important;
}

[data-theme="light"] .board-header h1,
[data-theme="light"] .board-header p,
[data-theme="light"] .board-header span {
    color: #1f2937 !important;
}

[data-theme="light"] .board-header .px-4.py-2.bg-white {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1f2937 !important;
}

/* Board columns - DARK gradient */
[data-theme="dark"] .board-column {
    background: linear-gradient(to bottom, #2d3748, #1a202c) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .board-column::before {
    opacity: 1 !important;
}

/* All status columns - dark gradient */
[data-theme="dark"] .status-backlog {
    background: linear-gradient(to bottom, #2d3748, #1a202c) !important;
}

[data-theme="dark"] .status-in_progress {
    background: linear-gradient(to bottom, #2d3748, #1a202c) !important;
}

[data-theme="dark"] .status-review {
    background: linear-gradient(to bottom, #2d3748, #1a202c) !important;
}

[data-theme="dark"] .status-done {
    background: linear-gradient(to bottom, #2d3748, #1a202c) !important;
}

/* Issue cards container in kanban */
[data-theme="dark"] .board-column .space-y-3,
[data-theme="dark"] .board-column .space-y-4 {
    background-color: transparent !important;
}

/* Drag and drop areas in kanban */
[data-theme="dark"] .board-container [class*="drag"],
[data-theme="dark"] .board-container [class*="drop"] {
    background-color: transparent !important;
}

/* Workspace creation page */
[data-theme="dark"] input[placeholder*="isolated"],
[data-theme="dark"] input[placeholder*="workspace"],
[data-theme="dark"] input[placeholder*="instance"],
[data-theme="dark"] input[placeholder*="app instance"] {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--input-border) !important;
}

/* Workspace selection page - gradient backgrounds */
[data-theme="dark"] .bg-gradient-to-r.from-blue-50,
[data-theme="dark"] [class*="from-blue-50"],
[data-theme="dark"] [class*="to-indigo-50"] {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1)) !important;
}

[data-theme="dark"] .border-blue-200 {
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Project view pages */
[data-theme="dark"] .project-view,
[data-theme="dark"] .project-board,
[data-theme="dark"] .project-details {
    background-color: var(--bg-secondary) !important;
}

/* Container backgrounds */
[data-theme="dark"] .container,
[data-theme="dark"] [class*="container"] {
    background-color: transparent !important;
}

/* Flex containers */
[data-theme="dark"] .flex:not([class*="bg-"]):not([class*="shadow"]) {
    background-color: transparent;
}

/* Grid containers */
[data-theme="dark"] .grid:not([class*="bg-"]):not([class*="shadow"]) {
    background-color: transparent;
}

/* Scrollbar (Dark Mode) */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Theme Toggle Button Styles - Architectural Luxury */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 26px;
    background: #EBE7DD;
    border: 1px solid rgba(182, 138, 98, 0.4);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: inset 0 2px 4px rgba(2, 8, 23, 0.08), 0 2px 6px rgba(182, 138, 98, 0.15);
    z-index: 100;
    flex-shrink: 0;
    direction: ltr !important;
    unicode-bidi: isolate;
    user-select: none;
}

.theme-toggle:hover {
    border-color: #b68a62;
    box-shadow: 0 0 10px rgba(182, 138, 98, 0.35);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(182, 138, 98, 0.3);
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(2, 8, 23, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background: #020817;
    border-color: rgba(182, 138, 98, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(182, 138, 98, 0.2);
}

[data-theme="dark"] .theme-toggle-slider {
    left: 28px;
    background: #0a1020;
    border-color: #b68a62;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(182, 138, 98, 0.4);
}

.theme-toggle-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.25s ease !important;
}

.theme-toggle-icon.sun {
    color: #b68a62;
}

.theme-toggle-icon.moon {
    color: #cbae75;
}

/* ========================================
   AI ASSISTANT - COMPLETE DARK MODE
   ======================================== */

/* AI Chat Window */
[data-theme="dark"] .ai-chat-window,
[data-theme="dark"] #ai-chat-window {
    background-color: #2d3748 !important;
    border-color: var(--border-primary) !important;
}

/* AI Header */
[data-theme="dark"] .ai-chat-header {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
}

/* AI Messages Container - Clean dark background with subtle pattern */
[data-theme="dark"] .ai-messages,
[data-theme="dark"] #ai-messages {
    background-color: #1e293b !important;
    background: #1e293b !important;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
}

/* ==========================================================================
   AI ASSISTANT - ARCHITECTURAL LUXURY (Dark Mode)
   ========================================================================== */

[data-theme="dark"] .ai-chat-window {
    background: rgba(2, 8, 23, 0.96) !important;
    border-color: rgba(182, 138, 98, 0.35) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(182, 138, 98, 0.12) !important;
}

[data-theme="dark"] .ai-chat-header {
    background: rgba(7, 13, 24, 0.95) !important;
    color: #F8FAFC !important;
    border-bottom: 1px solid rgba(182, 138, 98, 0.25) !important;
}

[data-theme="dark"] .ai-messages {
    background: #020817 !important;
}

[data-theme="dark"] .ai-message-content {
    background-color: transparent !important;
    color: #F8FAFC !important;
    border: none !important;
    box-shadow: none !important;
}

/* AI Welcome Message - Architectural Gold Luxury */
[data-theme="dark"] .ai-welcome-message .ai-message-bubble {
    background: rgba(10, 16, 32, 0.95) !important;
    color: #F8FAFC !important;
    border: 1.5px solid rgba(182, 138, 98, 0.4) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(182, 138, 98, 0.15) !important;
}

/* User Messages - Gold Gradient */
[data-theme="dark"] .ai-message.user .ai-message-bubble {
    background: linear-gradient(135deg, #b68a62 0%, #8c6439 100%) !important;
    color: #ffffff !important;
    border: 1px solid #cbae75 !important;
    box-shadow: 0 4px 14px rgba(182, 138, 98, 0.35) !important;
}

/* Assistant Messages - Midnight Glass */
[data-theme="dark"] .ai-message.assistant .ai-message-bubble {
    background-color: #0a1020 !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(182, 138, 98, 0.3) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

/* AI Suggestions Container */
[data-theme="dark"] .ai-suggestions,
[data-theme="dark"] #ai-suggestions {
    background: rgba(7, 13, 24, 0.95) !important;
    border-top: 1px solid rgba(182, 138, 98, 0.25) !important;
}

[data-theme="dark"] .ai-suggestions-title {
    color: #b68a62 !important;
}

/* AI Suggestion Buttons */
[data-theme="dark"] .ai-suggestion-btn,
[data-theme="dark"] .ai-suggestions button {
    background-color: #0a1020 !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(182, 138, 98, 0.25) !important;
}

[data-theme="dark"] .ai-suggestion-btn:hover,
[data-theme="dark"] .ai-suggestions button:hover {
    background-color: rgba(182, 138, 98, 0.18) !important;
    border-color: #b68a62 !important;
    color: #cbae75 !important;
}

/* AI Input Container */
[data-theme="dark"] .ai-input-container {
    background-color: rgba(7, 13, 24, 0.95) !important;
    border-top: 1px solid rgba(182, 138, 98, 0.25) !important;
}

/* AI Input Field */
[data-theme="dark"] .ai-input,
[data-theme="dark"] #ai-input,
[data-theme="dark"] .ai-input-container input,
[data-theme="dark"] .ai-input-container textarea {
    background-color: #020817 !important;
    color: #F8FAFC !important;
    border: 1.5px solid rgba(182, 138, 98, 0.35) !important;
}

[data-theme="dark"] .ai-input:focus,
[data-theme="dark"] #ai-input:focus {
    border-color: #b68a62 !important;
    box-shadow: 0 0 0 3px rgba(182, 138, 98, 0.25) !important;
}

[data-theme="dark"] .ai-input::placeholder,
[data-theme="dark"] #ai-input::placeholder,
[data-theme="dark"] .ai-input-container input::placeholder,
[data-theme="dark"] .ai-input-container textarea::placeholder {
    color: #64748b !important;
}

/* AI Send Button */
[data-theme="dark"] .ai-send-btn,
[data-theme="dark"] #ai-send-btn {
    background: linear-gradient(135deg, #b68a62 0%, #8c6439 100%) !important;
    color: #ffffff !important;
    border: 1px solid #cbae75 !important;
    box-shadow: 0 4px 14px rgba(182, 138, 98, 0.4) !important;
}

[data-theme="dark"] .ai-send-btn:hover:not(:disabled),
[data-theme="dark"] #ai-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #cbae75 0%, #967b48 100%) !important;
    transform: scale(1.05) !important;
}

/* AI Footer */
[data-theme="dark"] .ai-chat-footer {
    background: #020817 !important;
    border-top: 1px solid rgba(182, 138, 98, 0.2) !important;
}

[data-theme="dark"] .ai-footer-text {
    color: #94a3b8 !important;
}

[data-theme="dark"] .ai-footer-link {
    color: #b68a62 !important;
}

[data-theme="dark"] .ai-footer-link:hover {
    color: #cbae75 !important;
}

[data-theme="dark"] .ai-footer-link strong {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* AI Header Buttons */
[data-theme="dark"] .ai-header-btn {
    color: white !important;
}

[data-theme="dark"] .ai-header-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* AI Avatar */
[data-theme="dark"] .ai-avatar,
[data-theme="dark"] .ai-avatar-small {
    background-color: #7c3aed !important;
    color: white !important;
}

/* AI Typing Indicator */
[data-theme="dark"] .ai-typing-indicator span {
    background-color: var(--text-tertiary) !important;
}

/* ========================================
   MODALS - DARK MODE
   ======================================== */

/* Cancel buttons in modals */
[data-theme="dark"] .bg-gray-300.text-gray-700 {
    background-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bg-gray-300.text-gray-700:hover {
    background-color: #64748b !important;
}

/* ========================================
   TEAM LEADER CHANGE - DARK MODE
   ======================================== */

/* Ineligible members section */
[data-theme="dark"] .bg-orange-50 {
    background-color: rgba(251, 146, 60, 0.1) !important;
}

[data-theme="dark"] .text-orange-800 {
    color: #fb923c !important;
}

[data-theme="dark"] .border-orange-200 {
    border-color: rgba(251, 146, 60, 0.3) !important;
}

/* Member cards in ineligible section */
[data-theme="dark"] .bg-orange-50.opacity-75 {
    background-color: rgba(251, 146, 60, 0.08) !important;
    opacity: 1 !important;
}

/* ========================================
   ISSUE DETAIL PAGE - DARK MODE
   ======================================== */

/* Team name in assignee section */
[data-theme="dark"] .text-blue-900 {
    color: #93c5fd !important;
}

/* Assignee name - make lighter */
[data-theme="dark"] .bg-gray-50 .text-gray-900,
[data-theme="dark"] .bg-blue-50 .text-gray-900 {
    color: #e5e7eb !important;
}

/* Project/App name in breadcrumb and headers */
[data-theme="dark"] .text-gray-900.font-medium {
    color: #d1d5db !important;
}

/* Breadcrumb text - make lighter */
[data-theme="dark"] nav .text-gray-900,
[data-theme="dark"] .text-gray-900 {
    color: #d1d5db !important;
}

/* Issue key badge (APP-1) */
[data-theme="dark"] .bg-gray-700,
[data-theme="dark"] .bg-gray-800 {
    background-color: #475569 !important;
}

[data-theme="dark"] .text-gray-300 {
    color: #e5e7eb !important;
}

/* Animation for theme switch */
@keyframes themeSwitch {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.theme-switching .theme-toggle-slider {
    animation: themeSwitch 0.6s ease;
}

/* ========================================
   GLOBAL LUXURY ALERT SYSTEM
   ======================================== */
.luxury-alert-error {
    background: linear-gradient(135deg, rgba(88, 28, 44, 0.45) 0%, rgba(50, 10, 20, 0.55) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #FECDD3;
    box-shadow: 0 4px 20px -4px rgba(225, 29, 72, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.luxury-alert-error .alert-icon-box {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #FB7185;
}

html[data-theme="light"] .luxury-alert-error,
[data-theme="light"] .luxury-alert-error {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important;
    border: 1px solid #FDA4AF !important;
    color: #9F1239 !important;
    box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .luxury-alert-error .alert-icon-box,
[data-theme="light"] .luxury-alert-error .alert-icon-box {
    background: #FFE4E6 !important;
    border: 1px solid #FDA4AF !important;
    color: #E11D48 !important;
}

html[data-theme="light"] .luxury-alert-error p,
[data-theme="light"] .luxury-alert-error p {
    color: #9F1239 !important;
    font-weight: 600 !important;
}

.luxury-alert-warning {
    background: linear-gradient(135deg, rgba(70, 45, 15, 0.45) 0%, rgba(40, 25, 8, 0.55) 100%);
    border: 1px solid rgba(182, 138, 98, 0.4);
    color: #FDE68A;
    box-shadow: 0 4px 20px -4px rgba(182, 138, 98, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.luxury-alert-warning .alert-icon-box {
    background: rgba(182, 138, 98, 0.15);
    border: 1px solid rgba(182, 138, 98, 0.35);
    color: #cbae75;
}

html[data-theme="light"] .luxury-alert-warning,
[data-theme="light"] .luxury-alert-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
    border: 1px solid #FDE68A !important;
    color: #854D0E !important;
    box-shadow: 0 4px 14px -2px rgba(182, 138, 98, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .luxury-alert-warning .alert-icon-box,
[data-theme="light"] .luxury-alert-warning .alert-icon-box {
    background: #FEF3C7 !important;
    border: 1px solid #FCD34D !important;
    color: #D97706 !important;
}

html[data-theme="light"] .luxury-alert-warning p,
[data-theme="light"] .luxury-alert-warning p {
    color: #78350F !important;
}

/* Input Error State - Vibrant Red Glow for Dark Mode */
.luxury-input-error {
    border: 1.5px solid #F43F5E !important;
    background-color: rgba(244, 63, 94, 0.12) !important;
    box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.28), 0 2px 4px rgba(0, 0, 0, 0.4) inset !important;
    color: #F8FAFC !important;
}

.luxury-input-error:hover {
    border-color: #FB7185 !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4) inset !important;
}

.luxury-input-error:focus {
    border-color: #FB7185 !important;
    background-color: rgba(244, 63, 94, 0.16) !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.4), 0 2px 4px rgba(0, 0, 0, 0.4) inset !important;
}

/* Light Mode Input Error State */
html[data-theme="light"] .luxury-input-error,
[data-theme="light"] .luxury-input-error {
    border: 1.5px solid #E11D48 !important;
    background-color: #FFF1F2 !important;
    box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    color: #020817 !important;
}

html[data-theme="light"] .luxury-input-error:hover,
html[data-theme="light"] .luxury-input-error:focus,
[data-theme="light"] .luxury-input-error:hover,
[data-theme="light"] .luxury-input-error:focus {
    border-color: #BE123C !important;
    background-color: #FFF1F2 !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.28) !important;
}

/* ========================================================
   FLOATING LUXURY TOAST NOTIFICATIONS (Dark & Light Mode)
   ======================================================== */
.taskora-toast {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Architectural Luxury Obsidian & Gold Toast System */
/* Architectural Luxury Obsidian & Gold Toast System (Ultra-Sleek Pill) */
.taskora-toast {
    background: rgba(2, 8, 23, 0.94) !important;
    border: 1px solid rgba(182, 138, 98, 0.35) !important;
    color: #F8FAFC !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(182, 138, 98, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.luxury-toast-success {
    border-color: rgba(182, 138, 98, 0.45) !important;
}

.luxury-toast-error,
.luxury-toast-danger {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.luxury-toast-warning {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.luxury-toast-info {
    border-color: rgba(182, 138, 98, 0.35) !important;
}

html[data-theme="light"] .taskora-toast,
[data-theme="light"] .taskora-toast {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(182, 138, 98, 0.4) !important;
    border-radius: 9999px !important;
    color: #020817 !important;
    box-shadow: 0 10px 30px -5px rgba(2, 8, 23, 0.12), 0 0 12px rgba(182, 138, 98, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html[data-theme="light"] .taskora-toast span,
[data-theme="light"] .taskora-toast span {
    color: #020817 !important;
}

html[data-theme="light"] .toast-close-btn,
[data-theme="light"] .toast-close-btn {
    background: rgba(2, 8, 23, 0.05) !important;
    color: #64748B !important;
}

html[data-theme="light"] .toast-close-btn:hover,
[data-theme="light"] .toast-close-btn:hover {
    background: rgba(2, 8, 23, 0.1) !important;
    color: #020817 !important;
}

html[data-theme="light"] .luxury-toast-error,
html[data-theme="light"] .luxury-toast-danger,
[data-theme="light"] .luxury-toast-error,
[data-theme="light"] .luxury-toast-danger {
    background: #FFFFFF !important;
    border: 1px solid #FDA4AF !important;
    color: #9F1239 !important;
    box-shadow: 0 10px 25px -3px rgba(244, 63, 94, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .luxury-toast-error .toast-icon-box,
html[data-theme="light"] .luxury-toast-danger .toast-icon-box,
[data-theme="light"] .luxury-toast-error .toast-icon-box,
[data-theme="light"] .luxury-toast-danger .toast-icon-box {
    background: #FFF1F2 !important;
    border: 1px solid #FDA4AF !important;
    color: #E11D48 !important;
}
html[data-theme="light"] .luxury-toast-error .toast-close-btn,
html[data-theme="light"] .luxury-toast-danger .toast-close-btn,
[data-theme="light"] .luxury-toast-error .toast-close-btn,
[data-theme="light"] .luxury-toast-danger .toast-close-btn {
    color: #E11D48 !important;
}
html[data-theme="light"] .luxury-toast-error .toast-close-btn:hover,
html[data-theme="light"] .luxury-toast-danger .toast-close-btn:hover,
[data-theme="light"] .luxury-toast-error .toast-close-btn:hover,
[data-theme="light"] .luxury-toast-danger .toast-close-btn:hover {
    background: #FFE4E6 !important;
    color: #881337 !important;
}

/* Warning & Info Toast */
.luxury-toast-warning,
.luxury-toast-info {
    background: linear-gradient(135deg, rgba(50, 32, 10, 0.95) 0%, rgba(25, 15, 5, 0.98) 100%);
    border: 1px solid rgba(182, 138, 98, 0.45);
    color: #FDE68A;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.8), 0 0 16px rgba(182, 138, 98, 0.2);
}
.luxury-toast-warning .toast-icon-box,
.luxury-toast-info .toast-icon-box {
    background: rgba(182, 138, 98, 0.18);
    border: 1px solid rgba(182, 138, 98, 0.35);
    color: #cbae75;
}
.luxury-toast-warning .toast-close-btn,
.luxury-toast-info .toast-close-btn {
    color: #FCD34D;
}
.luxury-toast-warning .toast-close-btn:hover,
.luxury-toast-info .toast-close-btn:hover {
    background: rgba(182, 138, 98, 0.2);
    color: #FFFFFF;
}

html[data-theme="light"] .luxury-toast-warning,
html[data-theme="light"] .luxury-toast-info,
[data-theme="light"] .luxury-toast-warning,
[data-theme="light"] .luxury-toast-info {
    background: #FFFFFF !important;
    border: 1px solid #FDE68A !important;
    color: #854D0E !important;
    box-shadow: 0 10px 25px -3px rgba(182, 138, 98, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .luxury-toast-warning .toast-icon-box,
html[data-theme="light"] .luxury-toast-info .toast-icon-box,
[data-theme="light"] .luxury-toast-warning .toast-icon-box,
[data-theme="light"] .luxury-toast-info .toast-icon-box {
    background: #FFFBEB !important;
    border: 1px solid #FDE68A !important;
    color: #D97706 !important;
}
html[data-theme="light"] .luxury-toast-warning .toast-close-btn,
html[data-theme="light"] .luxury-toast-info .toast-close-btn,
[data-theme="light"] .luxury-toast-warning .toast-close-btn,
[data-theme="light"] .luxury-toast-info .toast-close-btn {
    color: #D97706 !important;
}
html[data-theme="light"] .luxury-toast-warning .toast-close-btn:hover,
html[data-theme="light"] .luxury-toast-info .toast-close-btn:hover,
[data-theme="light"] .luxury-toast-warning .toast-close-btn:hover,
[data-theme="light"] .luxury-toast-info .toast-close-btn:hover {
    background: #FEF3C7 !important;
    color: #78350F !important;
}


/* ==========================================================================
   Apple Cupertino & macOS Glassmorphism Design System (Taskora UI)
   ========================================================================== */
:root {
    --apple-glass-bg-light: rgba(255, 255, 255, 0.76);
    --apple-glass-border-light: rgba(255, 255, 255, 0.85);
    --apple-glass-shadow-light: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
    
    --apple-glass-bg-dark: rgba(13, 20, 37, 0.72);
    --apple-glass-border-dark: rgba(255, 255, 255, 0.09);
    --apple-glass-shadow-dark: 0 16px 36px -6px rgba(0, 0, 0, 0.5), 0 0 18px rgba(182, 138, 98, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Apple Squircle Continuous Radius & Surface */
.apple-card {
    border-radius: 24px;
    background: var(--apple-glass-bg-light);
    border: 1px solid var(--apple-glass-border-light);
    box-shadow: var(--apple-glass-shadow-light);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .apple-card {
    background: var(--apple-glass-bg-dark);
    border: 1px solid var(--apple-glass-border-dark);
    box-shadow: var(--apple-glass-shadow-dark);
}

.apple-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .apple-card:hover {
    box-shadow: 0 22px 48px -6px rgba(0, 0, 0, 0.65), 0 0 24px rgba(182, 138, 98, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Apple Status Pills */
.status-backlog {
}
[data-theme="dark"] .status-backlog {
}

.status-in_progress {
}
[data-theme="dark"] .status-in_progress {
}

.status-review {
}
[data-theme="dark"] .status-review {
}

.status-done {
}
[data-theme="dark"] .status-done {
}

/* Smooth Apple Navigation Active Indicator */
.nav-link {
    border-radius: 12px;
}

.nav-link:hover {
    background: rgba(182, 138, 98, 0.08);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Smooth Transition */
@media (max-width: 768px) {
    main {
    }
}
