@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - premium light theme */
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-hover: #4338ca;
    /* ... rest of variables ... */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --sidebar-w: 300px;
    --workspace-orb-size: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    outline: none;
}

[data-custom-cursor] * {
    cursor: none !important;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.premium-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Page Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Navigation & Sidebar Overhaul - GOD LEVEL */
.workspace-sidebar {
    display: none !important;
}

.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
}

/* Premium Buttons - Rectangular & Vibrant */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.nav-item-premium {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(79, 70, 229, 0.05);
    /* Consistent subtle color base */
    border: 1px solid rgba(79, 70, 229, 0.1);
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

.nav-item-premium i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    /* Consistent icon color */
}

.nav-item-premium:hover {
    background: white;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.1);
    transform: translateY(-2.5px);
    border-color: var(--primary);
}

.nav-item-premium.active {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    border: none;
}

.nav-item-premium.active i {
    color: white;
}

/* Premium User Rank Badge */
.rank-badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2px;
}

.rank-text {
    font-size: 9px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Premium Project Buttons */
.nav-project-card {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--project-color, var(--primary));
    border-radius: 0 4px 4px 0;
    transition: height 0.3s;
}

.nav-project-card:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.nav-project-card:hover::before {
    height: 85%;
}

.nav-project-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.project-icon-orb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--project-color-bg, rgba(79, 70, 229, 0.1));
    color: var(--project-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-project-card .delete-proj-btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-project-card:hover .delete-proj-btn {
    opacity: 0.6;
}

.nav-project-card .delete-proj-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    opacity: 1;
}

/* Modal UI Overhaul - Glassmorphism */
.modal-overlay.glass-premium {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.glass-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 600px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 0%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-label-premium {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.premium-input-box {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.premium-input-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.modal-info-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    margin-top: 10px;
}

.w-orb i {
    width: 18px;
    height: 18px;
}

#workspaceMenu {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.workspace-item {
    display: none !important;
}

.workspace-header {
    display: none;
}

.workspace-header h2 {
    font-size: 14px;
    font-weight: 700;
}

/* Kanban Styles */
.kanban-board {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.column-header .count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.column-tasks {
    flex: 1;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Timeline / Gantt Styles */
.timeline-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow-x: auto;
    display: flex;
    flex-direction: column;
}

.timeline-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    min-width: 1500px;
}

.date-col {
    width: 60px;
    padding: 12px 0;
    text-align: center;
    border-right: 1px solid #edf2f7;
    flex-shrink: 0;
}

.date-col span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.date-col .day-num {
    font-size: 14px;
    color: var(--text-main);
    margin-top: 4px;
}

.date-col.today {
    background: rgba(79, 70, 229, 0.05);
}

.date-col.today .day-num {
    color: var(--primary);
    font-weight: 700;
}

.timeline-body {
    min-width: 1500px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-row {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
}

.task-bar {
    position: absolute;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.task-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
}

.modal {
    width: 90%;
    max-width: 500px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#taskInput {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: var(--bg-main);
}

#taskInput:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.modal-hints {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.btn-cancel {
    padding: 10px 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-cancel:hover {
    color: var(--text-main);
}

/* Chat / Details Panel Styles */
.details-panel {
    width: 400px;
    display: none;
    flex-direction: column;
    background: white;
    border-left: 1px solid var(--border);
    z-index: 5;
}

.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.chat-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.close-panel {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fcfcfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.message.me {
    align-self: flex-end;
}

.msg-content {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
}

.me .msg-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.other .msg-content {
    background: white;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.other .msg-time {
    align-self: flex-start;
}

.chat-input-area {
    padding: 24px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* Dashboard Stats Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.chart-container {
    padding: 24px;
    margin-top: 20px;
    height: 300px;
}

/* File Upload & Task Section Styles */
.task-sections {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-file-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s;
}

.add-file-btn:hover {
    background: var(--primary-light);
    transform: rotate(90deg);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-item:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.file-size {
    font-size: 11px;
    color: var(--text-muted);
}

.download-btn {
    color: var(--text-muted);
    transition: color 0.2s;
}

.download-btn:hover {
    color: var(--primary);
}

/* Next Level Micro-interactions */
.workspace-item,
.nav-item,
.view-btn,
.btn-primary,
.premium-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-card:active {
    transform: scale(0.98);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Status Colors for Kanban Cards */
.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
    background: var(--primary);
}

#col-progress .task-card::before {
    background: #f59e0b;
}

#col-done .task-card::before {
    background: #10b981;
}

.card-content {
    padding: 16px;
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tiny-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
}

.empty-state {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: var(--radius-lg);
}


/* Color Picker */
.color-picker {
    margin-top: 16px;
}

.color-picker label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.colors {
    display: flex;
    gap: 10px;
}

.color-opt {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--border);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-opt.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Premium UI Glows & Adjustments */
.workspace-item.active {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
    background: var(--primary) !important;
}

.btn-primary {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.nav-item.active {
    background: #eef2ff !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.sidebar-nav {
    padding-top: 20px;
}

.workspace-sidebar {
    background: #0f172a;
    padding: 24px 0;
}

.workspace-item {
    border-radius: 14px;
    margin-bottom: 4px;
}

/* PIN Security Overlay */
.pin-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
}

.pin-card {
    width: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.lock-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.pin-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pin-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.pin-dot {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-dot::after {
    content: '';
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.2s;
}

.pin-dot.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
    transform: scale(1.1);
}

.dot-inner {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: success-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pin-dot.active::after {
    width: 8px;
    height: 8px;
}

.pin-keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.key {
    height: 54px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.key::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.key:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.key:hover::before {
    opacity: 1;
}

.key i,
.key span {
    position: relative;
    z-index: 1;
}

.key:active {
    transform: scale(0.9);
}

.key.fn {
    background: #f1f5f9;
    color: #94a3b8;
    border: none;
}

.key.fn:hover {
    background: #e2e8f0;
    color: #475569;
}

.pin-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Global Chat Shell (Discord Style) */
.global-chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-banner {
    padding: 16px 24px;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.team-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-msg {
    display: flex;
    gap: 12px;
}

.t-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.t-content {
    flex: 1;
}

.t-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.t-user {
    font-weight: 700;
    font-size: 14px;
}

.t-email {
    font-size: 11px;
    color: var(--text-muted);
}

.t-time {
    font-size: 10px;
    color: var(--text-muted);
}

.t-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Command Palette Overlay */
.command-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    padding-top: 15vh;
}

.command-box {
    width: 600px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    height: fit-content;
    max-height: 60vh;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
}

.command-search {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.command-search input {
    flex: 1;
    font-size: 18px;
    background: transparent;
}

.command-search kbd {
    background: var(--bg-main);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid var(--border);
}

.command-results {
    padding: 8px;
    overflow-y: auto;
}

.cmd-group {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cmd-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cmd-item:hover {
    background: var(--primary);
    color: white;
}

.cmd-item i {
    width: 18px;
    height: 18px;
}

.cmd-item span {
    font-size: 14px;
    font-weight: 500;
}

.shake {
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Success Popup */
.success-popup {
    width: 340px;
    padding: 32px;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-popup h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.success-popup p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.redirect-loader {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.loader-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    animation: loading-fill 2s forwards;
}

@keyframes loading-fill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.redirect-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-ghost:hover {
    background: #fef2f2;
    border-color: #fee2e2;
}

/* Toast */
.premium-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

/* God Level Settings UI */
.settings-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fcfcfd;
    overflow: hidden;
    /* Prevent container overflow */
}

.settings-body {
    padding: 32px 24px;
    padding-bottom: 120px;
    /* Extra padding for bottom buttons */
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    /* Enable scrolling */
    flex: 1;
    /* Take remaining space */
}

.h-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-title i {
    color: var(--primary);
    width: 20px;
}

.profile-card-premium {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}

.avatar-wrapper {
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 22px;
}

.large-avatar-premium {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 3px solid white;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: 3px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: #4338ca;
}

.avatar-edit-btn i {
    width: 14px;
    height: 14px;
}

.p-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group-premium {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group-premium label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-premium {
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.input-premium.disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-style: dashed;
}

.settings-footer-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.btn-save-glow {
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.5);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-save-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.6);
}

.btn-logout-minimal {
    padding: 14px;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout-minimal:hover {
    background: #fef2f2;
    transform: translateY(-1px);
}

/* Security Management God Level Styles */
.security-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.btn-security-vibrant {
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-security-vibrant i {
    width: 20px;
    height: 20px;
}

.btn-password {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.btn-pin {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-security-vibrant:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.btn-security-vibrant:active {
    transform: translateY(0) scale(0.98);
}

/* GOD LEVEL UX - CURSOR & SHAKE FIX */
[data-custom-cursor],
[data-custom-cursor] * {
    cursor: none !important;
}

.custom-cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    background: rgba(255, 255, 255, 0.1);
    mix-blend-mode: difference;
    left: -100px;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000000;
    transform: translate(-50%, -50%);
    left: -100px;
}

.custom-cursor.hover {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.star-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 1000001;
}

.page-transitioning .main-content {
    opacity: 0;
    transform: scale(0.97);
    transition: none;
}

.main-content {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

.btn-ai-sort {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: none;
    margin-right: 15px;
}

/* =========================================
   GOD LEVEL ACTION CENTER - HEADER HUB
   ========================================= */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 4px;
}

.btn-ai-sort {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    border: none;
    transition: all 0.3s;
    margin: 0 !important;
    white-space: nowrap;
}

.btn-ai-sort:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
}

.view-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin: 0 !important;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary#addTaskBtn {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary#addTaskBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

/* =========================================
   TUTORIAL & HELP SYSTEM - GOD LEVEL
   ========================================= */

.btn-help-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-help-circle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-help-circle i {
    width: 20px;
    height: 20px;
}

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-menu {
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.tutorial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tutorial-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.tutorial-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.close-tutorial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.close-tutorial:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: rotate(90deg);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.tutorial-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
}

.tutorial-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}

.tutorial-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tutorial-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.tutorial-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-tour-start {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tour-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.4);
}

/* Tutorial Step Card */
.tutorial-step-overlay {
    backdrop-filter: blur(20px) saturate(180%);
}

.tutorial-step-card {
    width: 90%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

.step-icon i {
    width: 40px;
    height: 40px;
}

.tutorial-step-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.step-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 32px;
}

.step-content strong {
    color: var(--primary);
    font-weight: 700;
}

.step-content code,
.step-content kbd {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btn-step {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-step:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-step-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-step-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* ================================
   QUICK CAPTURE WIDGET STYLES
   ================================ */
.quick-capture-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF6B00, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 0, .4), 0 4px 12px rgba(255, 215, 0, .2);
    z-index: 999;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: fabPulse 2s ease-in-out infinite
}

.quick-capture-fab:hover {
    transform: scale(1.1)rotate(90deg);
    box-shadow: 0 12px 32px rgba(255, 107, 0, .6), 0 6px 16px rgba(255, 215, 0, .3)
}

.quick-capture-fab i {
    width: 28px;
    height: 28px;
    color: #fff
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(255, 107, 0, .4)
    }

    50% {
        box-shadow: 0 12px 36px rgba(255, 107, 0, .6)
    }
}

.quick-capture-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .3s ease
}

.quick-capture-modal.active {
    display: flex;
    opacity: 1
}

.quick-capture-content {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    transform: scale(.9);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1)
}

.quick-capture-modal.active .quick-capture-content {
    transform: scale(1)
}

.quick-capture-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border)
}

.quick-capture-header h3 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B00, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.btn-close-capture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-main);
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.btn-close-capture:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg)
}

.quick-capture-body {
    padding: 24px
}

.input-group-quick {
    position: relative;
    margin-bottom: 20px
}

.input-group-quick input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all .2s
}

.input-group-quick input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, .1)
}

.btn-voice-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.btn-voice-input:hover {
    background: var(--bg-main);
    color: #FF6B00
}

.btn-voice-input i {
    width: 20px;
    height: 20px
}

.quick-options {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap
}

.quick-option {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-main);
    border: 2px solid var(--border);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s
}

.quick-option i {
    width: 16px;
    height: 16px
}

.quick-option:hover {
    border-color: #FF6B00;
    background: rgba(255, 107, 0, .1)
}

.quick-option.active {
    background: linear-gradient(135deg, #FF6B00, #FFD700);
    border-color: #FF6B00;
    color: #fff
}

.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end
}

.btn-quick-cancel,
.btn-quick-create {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s
}

.btn-quick-cancel {
    background: var(--bg-main);
    color: var(--text-main)
}

.btn-quick-cancel:hover {
    background: #e2e8f0
}

.btn-quick-create {
    background: linear-gradient(135deg, #FF6B00, #FFD700);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, .3)
}

.btn-quick-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, .4)
}

.btn-quick-create i {
    width: 16px;
    height: 16px
}

.quick-capture-toast {
    position: fixed;
    bottom: 100px;
    right: 32px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1001;
    opacity: 1;
    transition: opacity .3s
}

.quick-capture-toast i {
    width: 20px;
    height: 20px
}

.quick-capture-toast.success {
    color: #10b981
}

.quick-capture-toast.error {
    color: #ef4444
}

@media (max-width:768px) {
    .quick-capture-fab {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px
    }

    .quick-capture-fab i {
        width: 24px;
        height: 24px
    }

    .quick-capture-content {
        width: 95%
    }

    .quick-options {
        flex-direction: column
    }

    .quick-option {
        width: 100%;
        justify-content: center
    }
}

/* Advanced Analytics Dashboard */
.analytics-dashboard {
    padding: 24px
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px
}

.analytics-header h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.analytics-period {
    display: flex;
    gap: 8px
}

.period-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s
}

.period-btn:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, .1)
}

.period-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary)
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform .2s
}

.stat-card:hover {
    transform: translateY(-4px)
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.stat-icon i {
    width: 28px;
    height: 28px;
    color: white
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px
}

.stat-content p {
    font-size: 14px;
    color: var(--text-muted)
}

.analytics-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px
}

.chart-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px
}

.chart-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px
}

.heatmap-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px
}

.heatmap-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 4px
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    transition: transform .2s;
    cursor: pointer
}

.heatmap-cell:hover {
    transform: scale(1.2);
    z-index: 10
}

.team-performance {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px
}

.team-performance h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px
}

.team-member-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all .2s
}

.team-member-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow)
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0
}

.member-info {
    flex: 1
}

.member-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px
}

.member-info p {
    font-size: 13px;
    color: var(--text-muted)
}

.member-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width .5s ease
}

.member-progress span {
    font-size: 14px;
    font-weight: 700;
    min-width: 40px;
    text-align: right
}

@media (max-width:1024px) {
    .analytics-charts {
        grid-template-columns: 1fr
    }

    .heatmap-grid {
        grid-template-columns: repeat(15, 1fr)
    }
}

/* Sidebar Footer Premium (Image 1 Polish) */
.sidebar-footer-premium {
    margin-top: auto;
    padding-top: 24px;
}

.user-profile-card {
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    /* Increased for glass look */
}

.profile-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.1), transparent 70%);
    pointer-events: none;
}

.avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.user-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-glitch {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-rank {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.logout-btn-premium {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.logout-btn-premium:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* 3D Project Sphere Styles */
#projectSphereContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    /* Above main but below modals */
    pointer-events: none;
    /* Let clicks pass through unless toggled */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
}

#projectSphereContainer.active {
    pointer-events: all;
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark background for sphere */
}

/* Fix for main content when sphere is active */
.sphere-active .main-content {
    filter: blur(15px) grayscale(0.2);
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.8s ease;
}

/* Sphere Controls UI */
#sphereControls {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
    z-index: 1000;
    pointer-events: all;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sphere-info h3 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

/* =========================================
   PREMIUM TASK CARD STYLING
   ========================================= */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 2px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.task-item:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(-1deg) scale(1.02);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 20px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-light);
}

/* Priority Indicators */
.task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #cbd5e1;
    /* Default/Low */
    transition: background 0.3s;
}

.task-item.priority-high::before {
    background: #ef4444;
}

.task-item.priority-medium::before {
    background: #f59e0b;
}

.task-item.priority-low::before {
    background: #10b981;
}

/* Custom Checkbox */
.task-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.task-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.task-checkbox label {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.task-checkbox input:checked+label {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(0.9);
}

.task-checkbox input:checked+label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 800;
}

/* Task Content Info */
.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.3s;
}

.task-item:hover .task-title {
    color: var(--primary);
    text-shadow:
        2px 2px 0px rgba(79, 70, 229, 0.1),
        4px 4px 10px rgba(79, 70, 229, 0.2);
    transform: translateZ(20px);
}

.task-title.completed {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-meta i {
    width: 14px;
    height: 14px;
}

.task-project {
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Action Buttons */
.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.action-btn.delete:hover {
    color: #ef4444;
    background: #fef2f2;
}

.action-btn i {
    width: 18px;
    height: 18px;
}

/* 3D Visuals Overhaul - God Level */
.task-title-row {
    flex-wrap: wrap;
    /* Ensure multi-line task names still work */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    perspective: 1200px;
}

.difficulty-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.difficulty-tag::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: brightness(0.5);
    transform: translateZ(-5px);
}

.difficulty-tag.low {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 5px 0 #047857, 0 10px 20px rgba(16, 185, 129, 0.4);
}

.difficulty-tag.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 5px 0 #b45309, 0 10px 20px rgba(245, 158, 11, 0.4);
}

.difficulty-tag.high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 5px 0 #b91c1c, 0 10px 20px rgba(239, 68, 68, 0.4);
}

.task-item:hover .difficulty-tag {
    transform: translateZ(40px) rotateX(10deg) rotateY(10deg);
}

.action-btn-mini {
    transition: all 0.2s;
}

.action-btn-mini:hover {
    transform: scale(1.1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin-loader {
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Custom Scrollbar for Sidebar */
.nav-scroll-area::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.nav-scroll-area::-webkit-scrollbar-thumb {
    background: transparent;
    /* Hidden by default */
    border-radius: 20px;
    background-clip: content-box;
}

/* Only show on hover */
.nav-scroll-area:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

/* For Dark mode / glass effect integration */
.glass .nav-scroll-area:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Also merge the Main Content scrollbar to be premium */
.main-content::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}