/* CSS Reset & Variable Definitions */
:root {
    --bg-primary: #080a12;
    --bg-secondary: #0f1221;
    --bg-tertiary: #171b2e;
    --bg-elevated: #1c2038;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-purple: #a78bfa;
    --accent-purple-deep: #7c3aed;
    --accent-blue: #60a5fa;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --accent-red: #f87171;
    --accent-pink: #f472b6;
    --accent-cyan: #22d3ee;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-active: rgba(167, 139, 250, 0.35);
    --glass-bg: rgba(15, 18, 33, 0.75);
    --glass-blur: blur(20px);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.15), 0 0 80px rgba(124, 58, 237, 0.08);
    --shadow-glow-blue: 0 0 40px rgba(96, 165, 250, 0.12), 0 0 80px rgba(96, 165, 250, 0.06);
    
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* User Authentication Screen styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse 80% 60% at 15% 25%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 85% 75%, rgba(96, 165, 250, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 70%),
        var(--bg-primary);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 200px,
        rgba(255, 255, 255, 0.005) 200px,
        rgba(255, 255, 255, 0.005) 201px
    );
    pointer-events: none;
}

.auth-card {
    background: rgba(15, 18, 33, 0.65);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-purple-deep), var(--accent-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 8px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.auth-logo::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(96, 165, 250, 0.3));
    z-index: -1;
    filter: blur(8px);
}

.auth-logo svg {
    width: 28px;
    height: 28px;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: -8px;
    line-height: 1.5;
}

.auth-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    margin-top: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.auth-toggle-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#toggle-auth-mode {
    color: var(--accent-purple);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    padding-bottom: 1px;
    transition: var(--transition-fast);
}

#toggle-auth-mode:hover {
    color: var(--accent-blue);
    border-bottom-color: rgba(96, 165, 250, 0.4);
}

.auth-error-msg {
    color: var(--accent-red);
    font-size: 0.85rem;
    background-color: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
}

/* User profile widget in sidebar */
.profile-widget {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.04), rgba(96, 165, 250, 0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    transition: all var(--transition-fast);
}

.profile-widget:hover {
    border-color: var(--border-hover);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.07), rgba(96, 165, 250, 0.07));
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple-deep), var(--accent-blue));
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.profile-details {
    display: flex;
    flex-direction: column;
}

#profile-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.logout-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.logout-link:hover {
    color: var(--accent-red);
    border-bottom-color: rgba(248, 113, 113, 0.3);
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    position: relative;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.2), transparent 30%, transparent 70%, rgba(96, 165, 250, 0.2));
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-purple-deep), var(--accent-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(96, 165, 250, 0.4));
    z-index: -1;
    filter: blur(6px);
    opacity: 0.6;
}

.brand-logo svg {
    width: 20px;
    height: 20px;
}

.brand h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Progress Widget */
.stats-panel {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.04), rgba(96, 165, 250, 0.03));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.stats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
    pointer-events: none;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stats-panel h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#completion-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-purple);
    font-family: var(--font-display);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    min-height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    min-height: 8px;
    background: linear-gradient(90deg, var(--accent-purple-deep), var(--accent-purple), var(--accent-blue));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-stats-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quick-stats-compact strong {
    color: var(--text-primary);
}

.stat-divider {
    color: rgba(255, 255, 255, 0.08);
}

/* Categories List */
.categories-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#add-category-btn, #add-project-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

#add-category-btn:hover, #add-project-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#add-category-btn svg, #add-project-btn svg {
    width: 16px;
    height: 16px;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.category-item:hover, .category-item.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.category-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 12px;
    color: var(--text-muted);
}

/* Main Workspace Content styling */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

/* Header Area styling */
.header {
    height: 76px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-shrink: 0;
}

.mobile-brand {
    display: none;
}

.mobile-board-tabs {
    display: none;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

#search-input {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px 10px 42px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background-color: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.view-toggle button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.view-toggle button:hover {
    color: var(--text-primary);
}

.view-toggle button.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.view-toggle svg {
    width: 14px;
    height: 14px;
}

/* Button UI styling */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple-deep), var(--accent-blue));
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background-size: 200% auto;
    background-image: linear-gradient(135deg, var(--accent-purple-deep) 0%, var(--accent-blue) 50%, var(--accent-purple-deep) 100%);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Filters & Summary Info */
.filters-summary {
    padding: 24px 32px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

#view-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#view-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-team-header {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 16px;
}

.team-avatars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    margin-left: -10px;
    cursor: default;
    transition: transform var(--transition-fast);
}

.avatar-circle:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--accent-purple);
}

/* Kanban Board Layout styling */
.board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 16px 32px 32px;
    flex: 1;
    overflow-y: auto;
}

.board-column {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

.board-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.board-column[data-status="todo"]::before {
    background: linear-gradient(90deg, var(--accent-blue), rgba(96, 165, 250, 0.2));
}

.board-column[data-status="inprogress"]::before {
    background: linear-gradient(90deg, var(--accent-yellow), rgba(251, 191, 36, 0.2));
}

.board-column[data-status="completed"]::before {
    background: linear-gradient(90deg, var(--accent-green), rgba(52, 211, 153, 0.2));
}

.column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.column-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.column-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0.3;
}

.dot-todo { background-color: var(--accent-blue); }
.dot-todo::after { background-color: var(--accent-blue); }
.dot-inprogress { background-color: var(--accent-yellow); }
.dot-inprogress::after { background-color: var(--accent-yellow); }
.dot-completed { background-color: var(--accent-green); }
.dot-completed::after { background-color: var(--accent-green); }

.column-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.task-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.column-cards {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 150px;
}

/* Task Card styling */
.task-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: grab;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.task-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.03), rgba(96, 165, 250, 0.02));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.task-card:hover::before {
    opacity: 1;
}

.task-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--shadow-glow-purple);
    transform: translateY(-3px);
}

.task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(2deg) scale(1.02);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.task-card-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.2px;
}

.task-priority-badge {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.badge-high { background-color: var(--accent-red); box-shadow: 0 0 10px var(--accent-red), 0 0 20px rgba(248, 113, 113, 0.2); }
.badge-medium { background-color: var(--accent-yellow); box-shadow: 0 0 10px var(--accent-yellow), 0 0 20px rgba(251, 191, 36, 0.2); }
.badge-low { background-color: var(--accent-green); box-shadow: 0 0 10px var(--accent-green), 0 0 20px rgba(52, 211, 153, 0.2); }

.task-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.task-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
    margin-top: 4px;
}

.task-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.task-card-date svg {
    width: 12px;
    height: 12px;
}

.task-card-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-icon.accept-invite:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

.btn-icon.reject-invite:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.btn-icon.delete:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

/* List View Layout styling */
.list-container {
    padding: 16px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-headers {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 100px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 100px;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    transition: var(--transition-fast);
}

.list-item:hover {
    border-color: var(--border-hover);
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.col-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.col-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.col-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Custom Checkbox (list view) */
.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkbox-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-visual svg {
    width: 12px;
    height: 12px;
    color: white;
    stroke-width: 3.5;
    opacity: 0;
    transform: scale(0.6);
    transition: var(--transition-fast);
}

.custom-checkbox input:checked + .checkbox-visual {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-color: transparent;
}

.custom-checkbox input:checked + .checkbox-visual svg {
    opacity: 1;
    transform: scale(1);
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 7, 11, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow-purple), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), transparent);
}

.modal-overlay.hidden .modal-card {
    transform: translateY(24px) scale(0.96);
}

.modal-card.mini {
    max-width: 400px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.close-modal-btn svg {
    width: 18px;
    height: 18px;
}

/* Forms styling */
form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"], input[type="password"], select, textarea, input[type="date"] {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus, input[type="date"]:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1), 0 0 20px rgba(167, 139, 250, 0.06);
    background-color: var(--bg-elevated);
}

/* Category Color Picker styling */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.color-swatch-container {
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
}

.color-swatch-container input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.swatch {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.color-swatch-container input:checked + .swatch {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* Password fields absolute positioning toggler */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group input {
    width: 100%;
    padding-right: 44px;
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-fast);
}

.toggle-password-btn:hover {
    color: var(--text-primary);
}

.toggle-password-btn svg {
    width: 18px;
    height: 18px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness Rules */
.mobile-only-btn {
    display: none !important;
}

@media (max-width: 900px) {
    .mobile-only-btn {
        display: flex !important;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    /* Sidebar Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 280px;
        z-index: 1100;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar .brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .sidebar .close-sidebar {
        display: flex !important;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
    }

    .mobile-board-tabs {
        display: flex;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 8px 16px;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-board-tabs.hidden {
        display: none !important;
    }

    .board-tab {
        flex: 1;
        background: transparent;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: var(--transition-fast);
    }

    .board-tab:hover {
        color: var(--text-primary);
    }

    .board-tab.active {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
        box-shadow: var(--shadow-sm);
    }

    .board-tab .tab-count {
        background: rgba(255, 255, 255, 0.08);
        padding: 2px 6px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .board-tab.active .tab-count {
        background: var(--accent-purple);
        color: white;
    }

    .header {
        padding: 12px 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-bar {
        order: 3;
        flex: 1 0 100%;
        max-width: 100%;
        margin-top: 4px;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 8px;
    }

    .view-toggle button {
        padding: 6px 10px;
        gap: 4px;
    }

    .view-toggle button span {
        display: none;
    }

    #new-task-btn span {
        display: none;
    }

    #new-task-btn {
        padding: 8px 10px;
        gap: 0;
    }

    #new-task-btn svg {
        width: 18px;
        height: 18px;
    }

    .filters-summary {
        padding: 16px 16px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #view-title {
        font-size: 1.5rem;
    }

    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 8px 28px 8px 10px;
    }

    /* Project team header stacking */
    .project-team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .team-actions {
        flex-wrap: wrap;
    }

    /* Board horizontal snapping lanes */
    .board-container {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        overflow-x: auto;
        gap: 16px;
        padding: 8px 16px 24px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }

    .board-column {
        scroll-snap-align: start;
        min-width: 280px;
        max-height: 80vh;
    }

    /* Stackable List view */
    .list-headers {
        display: none;
    }

    .list-container {
        padding: 8px 16px 24px;
    }

    .list-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .col-category, .col-date, .col-priority {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
    }

    .col-actions {
        justify-content: flex-start;
        margin-top: 8px;
        border-top: 1px solid var(--border-color);
        padding-top: 8px;
        width: 100%;
    }

    /* Modals scaling */
    .modal-card {
        max-width: 92%;
        margin: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Notification dropdown responsive */
    .notification-dropdown {
        width: 320px;
        right: -60px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
        gap: 18px;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .auth-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .auth-logo svg {
        width: 24px;
        height: 24px;
    }

    .header {
        padding: 10px 12px;
        gap: 8px;
    }

    .header-actions {
        gap: 6px;
    }

    .view-toggle {
        padding: 3px;
    }

    .view-toggle button {
        padding: 5px 8px;
    }

    .filters-summary {
        padding: 12px 12px 8px;
    }

    #view-title {
        font-size: 1.3rem;
    }

    .filter-controls {
        flex-direction: column;
        gap: 8px;
    }

    .filter-select {
        width: 100%;
    }

    .board-container {
        padding: 8px 12px 20px;
        gap: 12px;
    }

    .board-column {
        min-width: 260px;
    }

    .list-container {
        padding: 8px 12px 20px;
    }

    .column-cards {
        padding: 12px;
        gap: 10px;
    }

    .task-card {
        padding: 14px;
    }

    .mobile-board-tabs {
        padding: 6px 12px;
        gap: 6px;
    }

    .board-tab {
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .modal-card {
        max-width: 96%;
        margin: 10px;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px 18px;
    }

    form {
        padding: 18px;
    }

    /* Notification dropdown full width on small screens */
    .notification-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
    }

    /* Team management on small screens */
    .team-member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .team-member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Very small phones (SE, etc) */
@media (max-width: 360px) {
    .auth-card {
        padding: 24px 18px;
        gap: 14px;
    }

    .auth-card h2 {
        font-size: 1.35rem;
    }

    #auth-subtitle {
        font-size: 0.82rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand h2 {
        font-size: 1.1rem;
    }

    .stats-panel {
        padding: 12px 14px;
    }

    .board-column {
        min-width: 240px;
    }
}

/* ═══════════════════════════════════════════════════
   NOTIFICATION BELL & DROPDOWN
   ═══════════════════════════════════════════════════ */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

#notification-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

#notification-btn svg {
    width: 20px;
    height: 20px;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notif-pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes notif-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 360px;
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-header h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notif-list {
    list-style: none;
    max-height: 340px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notif-details strong {
    color: var(--text-primary);
}

.notif-actions {
    display: flex;
    gap: 8px;
}

.notif-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.notif-btn.accept {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.notif-btn.accept:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.notif-btn.reject {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.notif-btn.reject:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.notif-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.notif-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════
   MANAGE TEAM MODAL & LIST
   ═══════════════════════════════════════════════════ */

.manage-team-list-container {
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
}

.manage-team-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.team-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.team-member-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-member-avatar.admin-avatar {
    background: linear-gradient(135deg, var(--accent-yellow), #f97316);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.team-member-avatar.pending-avatar {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px dashed var(--text-muted);
}

.team-member-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-member-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.team-member-role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.team-member-role.admin {
    color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.1);
}

.team-member-role.pending-role {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.team-member-role.owner-role {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.team-member-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.manage-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.manage-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.manage-btn.promote:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.08);
}

.manage-btn.remove:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

/* Team header manage/invite buttons */
.team-actions .btn-secondary {
    font-size: 0.82rem;
    padding: 6px 14px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════
   PREMIUM UI ENHANCEMENTS — Phase 2
   ═══════════════════════════════════════════════════ */

/* Entrance Animations */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.task-card {
    animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.task-card:nth-child(2) { animation-delay: 0.05s; }
.task-card:nth-child(3) { animation-delay: 0.10s; }
.task-card:nth-child(4) { animation-delay: 0.15s; }
.task-card:nth-child(5) { animation-delay: 0.20s; }

.auth-card {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.board-column {
    animation: fadeInSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.board-column:nth-child(2) { animation-delay: 0.08s; }
.board-column:nth-child(3) { animation-delay: 0.16s; }

/* Sidebar premium hover effects */
.sidebar .category-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.sidebar .category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-normal);
}

.sidebar .category-item.active::before {
    height: 60%;
}

.sidebar .category-item:hover::before {
    height: 40%;
}

.sidebar .category-item.active {
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.08), transparent);
    border-color: rgba(167, 139, 250, 0.15);
}

/* Header search bar premium glow */
#search-input:focus {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12), 0 0 30px rgba(167, 139, 250, 0.08);
}

/* Notification bell hover glow */
#notification-btn:hover {
    box-shadow: var(--shadow-glow-purple);
}

/* Card footer refinement */
.task-card-footer {
    position: relative;
    z-index: 1;
}

/* List item premium hover */
.list-item {
    position: relative;
}

.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
    border-radius: 0 4px 4px 0;
    transition: height var(--transition-normal);
}

.list-item:hover::before {
    height: 50%;
}

/* Select dropdowns premium feel */
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select:focus {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* View toggle premium feel */
.view-toggle {
    background: var(--bg-tertiary);
}

.view-toggle button.active {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(96, 165, 250, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

/* Color swatch premium hover */
.color-swatch-container:hover .swatch {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ambient background noise texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 120% 60% at 10% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 90% 100%, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container, .app-container {
    position: relative;
    z-index: 1;
}

/* Scrollbar premium refinement */
::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.25);
}

/* Admin Dashboard Styles */
.admin-container {
    padding: 32px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1;
}

