/* Glassmorphic Cyberpunk Theme Color Schemes */
:root {
    --bg-base-dark: #07090e;
    --glass-fill: rgba(16, 18, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    
    --neon-purple: #6366f1;
    --neon-cyan: #06b6d4;
    --neon-emerald: #10b981;
    --neon-amber: #f59e0b;
    --neon-danger: #ef4444;
    
    --glow-shadow: rgba(99, 102, 241, 0.35);
}

/* Alternative Synthwave Sunset Theme Attributes */
[data-theme="sunset"] {
    --bg-base-dark: #120917;
    --glass-fill: rgba(26, 12, 34, 0.7);
    --glass-border: rgba(236, 72, 153, 0.1);
    
    --neon-purple: #ec4899; /* Neon Hot Pink */
    --neon-cyan: #f97316;   /* Synthwave Orange */
    --neon-emerald: #10b981;
    --neon-amber: #eab308;
    
    --glow-shadow: rgba(236, 72, 153, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-base-dark);
    color: var(--text-pure);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 3rem;
    transition: background-color 0.4s ease;
}

/* Ambient Glowing Background Orbs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    transition: background 0.4s ease;
}
.orb-purple {
    top: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
}
.orb-cyan {
    bottom: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
}

/* Navigation Bar */
.glass-navbar {
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 99;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gear-spinner {
    font-size: 1.6rem;
    color: var(--neon-cyan);
    animation: spinGear 12s linear infinite;
    display: inline-block;
}

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

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-theme-toggle:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--glow-shadow);
    transform: translateY(-1px);
}

/* Base Main Grid Architecture */
.app-container {
    max-width: 1280px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 2rem;
}

/* Side Drawer (Left Panel Layout) */
.side-drawer {
    background: var(--glass-fill);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

.drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.member-badge-count {
    background: rgba(99, 102, 241, 0.15);
    color: var(--neon-purple);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.drawer-action-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-divider {
    height: 1px;
    background: var(--glass-border);
}

.interactive-list-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.members-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
}

/* System Export/Import Tools */
.system-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.btn-tool-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tool-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-tool-action.danger {
    grid-column: span 2;
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--neon-danger);
}

.btn-tool-action.danger:hover {
    background: var(--neon-danger);
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Clickable Interactive User Row Cards */
.clickable-user-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.clickable-user-card.is-filtering-active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--neon-purple);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.15);
}

.user-card-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.user-card-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-card-count-badge {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

/* Input Fields & Icon wrappers */
.field-icon-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.field-icon {
    position: absolute;
    left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
}

input, select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    border-radius: 12px;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

input:focus, select:focus {
    border-color: var(--neon-purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Date input styling custom overrides */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Neon buttons */
.btn-primary-neon {
    background: var(--neon-purple);
    color: white;
    font-weight: 700;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-shadow);
}

/* Workspace main layouts */
.main-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analytics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: var(--glass-fill);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

.kpi-symbol {
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.col-purple { color: var(--neon-purple); }
.col-cyan { color: var(--neon-cyan); }
.col-emerald { color: var(--neon-emerald); }
.col-amber { color: var(--neon-amber); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.progress-kpi-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
}

.progress-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visual-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.visual-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Workspace core boards and cards */
.workspace-card {
    background: var(--glass-fill);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

.card-title-row.header-space-between {
    justify-content: space-between;
}

.align-center-gap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title-icon {
    font-size: 1.1rem;
}

.card-title-row h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.mini-filter {
    width: 180px;
}

.mini-filter select {
    padding: 0.5rem 0.8rem 0.5rem 2.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.mini-filter .field-icon {
    left: 0.75rem;
    font-size: 0.85rem;
}

.workspace-sub-log {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Creation Forms Layout grids */
.task-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-split-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .form-row-split-triple {
        grid-template-columns: 1fr;
    }
}

/* Task Record Items */
.task-board-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.task-dynamic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Premium Card Dynamic Glowing Borders depending on Priority */
.task-record-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    animation: taskItemSlide 0.25s ease-out;
    transition: all 0.2s ease;
}

/* Glowing Border rules for Priorities */
.task-record-item.prio-high {
    border-left: 4px solid var(--neon-danger);
    box-shadow: inset 5px 0 10px rgba(239, 68, 68, 0.05);
}
.task-record-item.prio-medium {
    border-left: 4px solid var(--neon-amber);
    box-shadow: inset 5px 0 10px rgba(245, 158, 11, 0.05);
}
.task-record-item.prio-low {
    border-left: 4px solid var(--neon-cyan);
    box-shadow: inset 5px 0 10px rgba(6, 182, 212, 0.05);
}

.task-record-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.task-record-left-segment {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Custom Checkbox */
.custom-task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-task-checkbox span {
    font-size: 0.65rem;
    color: var(--bg-base-dark);
    display: none;
    font-weight: 900;
}

/* Done Check State */
.task-record-item.is-completed-state {
    opacity: 0.5;
    border-left-color: rgba(255,255,255,0.1) !important;
}

.task-record-item.is-completed-state .custom-task-checkbox {
    background: var(--neon-emerald);
    border-color: var(--neon-emerald);
}

.task-record-item.is-completed-state .custom-task-checkbox span {
    display: block;
}

.task-record-item.is-completed-state .task-record-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-title-and-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-record-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.task-metadata-tag-row {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-assignee-micro-badge {
    background: rgba(99, 102, 241, 0.12);
    color: var(--neon-purple);
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

/* Dynamic Live Due Countdown design */
.time-countdown-tracker {
    font-size: 0.72rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}
.time-countdown-tracker.active-time {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
}
.time-countdown-tracker.warning-time {
    background: rgba(245, 158, 11, 0.15);
    color: var(--neon-amber);
    animation: flashAlert 2s infinite;
}
.time-countdown-tracker.overdue-time {
    background: rgba(239, 68, 68, 0.15);
    color: var(--neon-danger);
}

@keyframes flashAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.task-record-right-segment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Custom Status Pills */
.status-pill-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.status-pill-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--neon-amber);
}
.status-pill-badge.completed {
    background: rgba(16, 185, 129, 0.12);
    color: var(--neon-emerald);
}

.btn-task-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-task-action.comp-trigger:hover {
    background: var(--neon-emerald);
    color: var(--bg-base-dark);
}

.btn-task-action.del-trigger:hover {
    background: var(--neon-danger);
    color: white;
}

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

/* Placeholders panels */
.empty-placeholder-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
}
.empty-placeholder-mini span { font-size: 1.5rem; opacity: 0.5; }
.empty-placeholder-mini p { font-size: 0.8rem; color: var(--text-muted); }

.empty-placeholder-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.5rem;
}
.empty-graphic { font-size: 1.8rem; opacity: 0.5; }
.empty-placeholder-large p { font-size: 0.85rem; color: var(--text-muted); }

/* Responsive layout controls */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-pure);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.visible {
    display: block;
    opacity: 1;
}

.hamburger-btn.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .side-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        height: 100vh;
        z-index: 999;
        border-radius: 0 20px 20px 0;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
    }
    .side-drawer.is-active {
        transform: translateX(0);
    }
}
/* Dropdown options ki visibility fix karne ke liye */
select {
    color-scheme: dark; /* Browser ko native dropdown dark mode me render karne ka signal deta hai */
}

/* Chrome, Firefox aur Edge ke liye background aur text color fix */
select option {
    background-color: #1a1b26 !important; /* Aapke theme ka dark color */
    color: #ffffff !important; /* Sahi se visible hone ke liye white text */
    padding: 10px;
}

/* Dropdown hover aur focus state styling */
select:focus {
    outline: none;
    border-color: #6366f1; /* Glowing border focus par */
}
/* Mobile view par hamburger menu button ko hide karne ke liye */
@media (max-width: 768px) {
    /* Agar aapke hamburger button ki class ya ID different hai to usko target karein */
    .menu-toggle, 
    #menu-toggle,
    .hamburger-btn,
    header .fa-bars,
    header svg,
    /* Is selector ko hum generic rakh rahe hain taake aapka icon lazmi hide ho jaye */
    header button:has(span), 
    header div[class*="menu"],
    header span[class*="menu"],
    header i[class*="fa-"] {
        display: none !important;
    }
}