/* KROK 1: FUNDAMENTALNA WARSTWA WIZUALNA */
:root {
    --bg-primary: #0D0D1A;
    --bg-secondary: #161625;
    --bg-tertiary: #202030;
    --text-primary: #E0E0FF;
    --text-secondary: #A0A0C0;
    --accent-blue: #00BFFF;
    --accent-pink: #FF00FF;
    --accent-green: #00FF7F;
    --accent-red: #FF4D4D;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* 🔄 Navigation & View Management */
.view-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.view-content.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

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

/* 🔥 MEGA TASK SYSTEM CSS */

/* Kanban Board Styling */
.kanban-column {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Task Card Styling */
.task-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #d946ef, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.task-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-description {
    color: #a0a0c0;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #8a8a9f;
}

.task-priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-priority.high {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.task-priority.medium {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.task-priority.low {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Floating Action Button */
#floating-action-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-action-btn:hover {
    transform: scale(1.05);
}

#floating-action-btn button {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

#floating-action-btn:hover button {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

/* Smart Task Modal Animations */
#smart-task-modal {
    animation: modalFadeIn 0.3s ease-out forwards;
}

#smart-task-modal.closing {
    animation: modalFadeOut 0.2s ease-in forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Drag & Drop Styling */
.task-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.kanban-column.drag-over {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Responsive Kanban */
@media (max-width: 768px) {
    .kanban-column {
        width: 280px;
        flex-shrink: 0;
    }
    
    #kanban-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Project selector styles */
.project-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.project-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.project-tab.active-project {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(196, 181, 253, 1);
}

.project-emoji {
    font-size: 1rem;
}

/* Selection styling */
::selection {
    background: rgba(0, 191, 255, 0.3);
    color: #ffffff;
}

/* 💎 Premium Metric Cards */
.premium-metric-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.premium-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease-in-out;
}

.premium-metric-card:hover::before {
    left: 100%;
}

.premium-metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced premium button for monthly summary */
.premium-button {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease-in-out;
}

.premium-button:hover::before {
    left: 100%;
}

/* 💎 Premium Cost Management Portal */
.cost-modal-container {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Premium Action Buttons */
.premium-action-btn {
    position: relative;
    overflow: hidden;
}

.premium-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease-in-out;
}

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

/* Premium Cost Sections */
.premium-cost-section {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-cost-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.premium-empty-state {
    transition: all 0.3s ease;
}

.premium-empty-state:hover {
    transform: translateY(-2px);
}

/* Premium Save Button */
.premium-save-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Cost Item Cards - will be styled when generated */
.cost-item-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.cost-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-blue);
}

/* KROK 3: GLASSMORPHISM EFFECT */
.glass-pane {
    background: rgba(22, 22, 37, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(22, 22, 37, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

/* KROK 5: ANIMATIONS & INTERACTIONS */
.stat-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

/* Store results container without hover effect */
.store-results-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: none;
}

.store-results-container:hover {
    transform: none;
    box-shadow: none;
}

/* Premium Select Styles */
.premium-select-wrapper {
    position: relative;
    display: inline-block;
}

.premium-select {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    cursor: pointer;
    min-width: 200px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.premium-select:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6);
}

.premium-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 32px 64px -12px rgba(0, 0, 0, 0.6);
}

.premium-select option {
    background: #1e293b;
    color: white;
    padding: 0.75rem;
    font-weight: 500;
}

.premium-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #60a5fa;
}

/* MODERN MONTHLY MANAGEMENT UI ENHANCEMENTS */
#monthlySummaryGrid .bg-gradient-to-br {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#monthlySummaryGrid .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#monthlySummaryGrid .bg-gradient-to-br:hover::before {
    opacity: 1;
}

#monthlySummaryGrid .bg-gradient-to-br:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Monthly summary card animations */
.monthly-card-animate {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.monthly-card-animate:nth-child(1) { animation-delay: 0.1s; }
.monthly-card-animate:nth-child(2) { animation-delay: 0.2s; }
.monthly-card-animate:nth-child(3) { animation-delay: 0.3s; }
.monthly-card-animate:nth-child(4) { animation-delay: 0.4s; }

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

/* Premium button enhancements */
.premium-button {
    position: relative;
    overflow: hidden;
}

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

.premium-button:hover::before {
    left: 100%;
}

/* Monthly loading state improvements */
#monthlyLoading {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.sidebar-icon {
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-icon:hover, .sidebar-icon.active {
    background-color: var(--accent-blue);
    color: white;
    transform: scale(1.05);
}

/* Allegro button special styling */
.sidebar-icon.allegro-btn:hover {
    background: linear-gradient(135deg, #FF5A00 0%, #FF8547 100%);
    color: white;
}

.sidebar-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tooltip {
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    font-size: 0.875rem;
    font-weight: 500;
}

/* =================================
   🎨 UNIFIED BUTTON SYSTEM
   ================================= */

.btn-primary {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.5);
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

/* Unified button sizing */
.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 12px;
    min-width: 120px;
}

.btn-md {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    min-width: 100px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    min-width: 80px;
}

/* Button animations */
.btn-primary::before,
.btn-success::before,
.btn-accent::before,
.btn-warning::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-primary:active::before,
.btn-success:active::before,
.btn-accent:active::before,
.btn-warning:active::before {
    width: 300px;
    height: 300px;
}

/* Sync Dropdown Styling */
.sync-dropdown-btn {
    color: var(--text-primary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.sync-dropdown-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Refresh button animation */
.animate-spin-on-hover {
    transition: transform 0.3s ease;
}

.animate-spin-on-hover:hover {
    transform: rotate(360deg);
}

.table-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.table-row:hover {
    background-color: var(--bg-tertiary);
}

/* Removed search-input styles - no longer needed */

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.status-completed {
    background: rgba(0, 255, 127, 0.2);
    color: var(--accent-green);
    border-color: rgba(0, 255, 127, 0.3);
}

.status-processing {
    background: rgba(0, 191, 255, 0.2);
    color: var(--accent-blue);
    border-color: rgba(0, 191, 255, 0.3);
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border-color: rgba(255, 165, 0, 0.3);
}

.status-on-hold {
    background: rgba(255, 255, 0, 0.2);
    color: #FFD700;
    border-color: rgba(255, 255, 0, 0.3);
}

.status-cancelled {
    background: rgba(255, 77, 77, 0.2);
    color: var(--accent-red);
    border-color: rgba(255, 77, 77, 0.3);
}

.status-refunded {
    background: rgba(128, 0, 128, 0.2);
    color: #DA70D6;
    border-color: rgba(128, 0, 128, 0.3);
}

.status-failed {
    background: rgba(139, 0, 0, 0.2);
    color: #FF6B6B;
    border-color: rgba(139, 0, 0, 0.3);
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.25rem;
}

.status-success {
    background-color: var(--accent-green);
    box-shadow: 0 0 4px rgba(0, 255, 127, 0.4);
}

.status-pending {
    background-color: #FFA500;
    box-shadow: 0 0 4px rgba(255, 165, 0, 0.4);
}

.status-error {
    background-color: var(--accent-red);
    box-shadow: 0 0 4px rgba(255, 77, 77, 0.4);
}

/* Animations */
.glowing-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 191, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Premium utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border-image: linear-gradient(135deg, var(--accent-blue), var(--accent-pink)) 1;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(22, 22, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-left: auto;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th,
.orders-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.orders-table tr:hover {
    background: var(--bg-tertiary);
}

.profit-positive {
    color: var(--accent-green);
    font-weight: 600;
}

.profit-negative {
    color: var(--accent-red);
    font-weight: 600;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ORDER DETAIL MODAL - Apple/Tesla Level Design */
.order-detail-modal {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.8);
}

.modal-content-xl {
    background: linear-gradient(135deg, 
        rgba(13, 13, 26, 0.98) 0%, 
        rgba(22, 22, 37, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 95vw;
    max-height: 95vh;
    width: 1400px;
    overflow: hidden;
    transform: scale(0.95) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-detail-modal.active .modal-content-xl {
    transform: scale(1) translateY(0);
}

.modal-header-xl {
    padding: 2rem 3rem 1rem;
    background: linear-gradient(135deg, 
        rgba(22, 22, 37, 0.9) 0%, 
        rgba(32, 32, 48, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.modal-header-xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-blue), 
        var(--accent-pink), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.order-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    gap: 2rem;
}

.order-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.order-customer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.modal-close-xl {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-xl:hover {
    background: rgba(255, 77, 77, 0.2);
    color: var(--accent-red);
    transform: scale(1.1);
}

.modal-body-xl {
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.loading-spinner-xl {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 191, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

/* ORDER DETAIL SECTIONS */
.order-detail-section {
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.order-detail-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-pink));
    border-radius: 2px;
}

/* PRODUCT ITEMS TABLE */
.product-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(22, 22, 37, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-items-table th {
    background: linear-gradient(135deg, 
        rgba(32, 32, 48, 0.9) 0%, 
        rgba(22, 22, 37, 0.9) 100%);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-items-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.product-items-table tr:hover td {
    background: rgba(0, 191, 255, 0.05);
}

.product-item-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.product-item-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.editable-field {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    position: relative;
}

.editable-field:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.2);
}

.editable-field.editing {
    background: rgba(0, 191, 255, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.editable-field input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: inherit;
    text-align: center;
    width: 100%;
    outline: none;
    padding: 0;
    min-width: 60px;
}

.editable-field input:focus {
    outline: none;
}

.editable-field.editing::after {
    content: '✓';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    background: rgba(0, 255, 127, 0.1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.editable-field.editing::after:hover {
    background: rgba(0, 255, 127, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.actions-menu {
    position: relative;
    display: inline-block;
}

.actions-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.actions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(22, 22, 37, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.actions-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.actions-dropdown button {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actions-dropdown button:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent-blue);
}

.actions-dropdown button.delete:hover {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-red);
}

/* PAYMENT STATUS */
.payment-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, 
        rgba(22, 22, 37, 0.8) 0%, 
        rgba(32, 32, 48, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.payment-status.paid {
    background: linear-gradient(135deg, 
        rgba(0, 255, 127, 0.1) 0%, 
        rgba(0, 255, 127, 0.05) 100%);
    border-color: rgba(0, 255, 127, 0.3);
}

.payment-status.partial {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 100%);
    border-color: rgba(255, 165, 0, 0.3);
}

.payment-status.unpaid {
    background: linear-gradient(135deg, 
        rgba(255, 77, 77, 0.1) 0%, 
        rgba(255, 77, 77, 0.05) 100%);
    border-color: rgba(255, 77, 77, 0.3);
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.payment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(22, 22, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
}

.info-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-card strong {
    color: var(--text-primary);
}

/* PREMIUM INVOICE BUTTON */
.btn-invoice {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-invoice:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(79, 70, 229, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-invoice:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-invoice svg {
    width: 16px;
    height: 16px;
}

/* NOTES SECTION */
.notes-section {
    background: rgba(22, 22, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.notes-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.notes-section .note-content {
    background: rgba(13, 13, 26, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--accent-blue);
    font-style: italic;
}

.notes-section .note-content.customer-note {
    border-left-color: var(--accent-green);
}

.notes-section .note-content.internal-note {
    border-left-color: var(--accent-red);
}

.notes-section .note-content.empty {
    color: var(--text-secondary);
    font-style: normal;
    opacity: 0.6;
}

/* Premium Orders Table Styling */
.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.orders-table {
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(13, 13, 26, 0.95), rgba(22, 22, 37, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    overflow: hidden;
}

.orders-table-head th {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: sticky;
    top: 0;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.order-row {
    background: rgba(22, 22, 37, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-row:hover {
    background: linear-gradient(135deg, rgba(32, 32, 48, 0.8), rgba(22, 22, 37, 0.8));
    transform: scale(1.01);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.2);
}

.glass-mini {
    background: rgba(13, 13, 26, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-mini:hover {
    background: rgba(22, 22, 37, 0.8);
    border-color: var(--accent-blue);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.status-indicator.status-success {
    background: var(--accent-green);
    animation: pulse-green 2s infinite;
}

.status-indicator.status-pending {
    background: #FFA500;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 5px var(--accent-green); }
    50% { box-shadow: 0 0 20px var(--accent-green), 0 0 30px var(--accent-green); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 5px #FFA500; }
    50% { box-shadow: 0 0 20px #FFA500, 0 0 30px #FFA500; }
}

.orders-table-foot {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    backdrop-filter: blur(20px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .modal-content-xl {
        width: 95vw;
        max-width: none;
        border-radius: 1rem;
    }
    
    .modal-header-xl {
        padding: 1.5rem 1rem 1rem;
    }
    
    .order-detail-section {
        padding: 1.5rem 1rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-number {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Chart Type Switcher */
.chart-type-btn {
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
}

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

.chart-type-btn.active {
    color: var(--accent-blue);
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .search-input input {
        width: 12rem;
    }
    
    .modal-content {
        width: 95vw;
        margin: 1rem;
    }
    
    .orders-table {
        font-size: 0.75rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Hide number input spinners/arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ==========================================
   PREMIUM PROJECT MODAL STYLES - ULTRA MODERN
   ========================================== */

/* Priority Selector - Custom Radio Design */
.priority-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(51, 65, 85, 0.4));
    border: 2px solid rgba(71, 85, 105, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.priority-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.priority-option:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.priority-option:hover::before {
    opacity: 1;
}

.priority-option.active {
    border-color: rgba(139, 92, 246, 0.8);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
}

.priority-option.active::before {
    opacity: 1;
}

.priority-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.6);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.priority-option.active .priority-radio {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.priority-check {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.priority-option.active .priority-check {
    transform: translate(-50%, -50%) scale(1);
}

.priority-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.priority-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.priority-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.priority-title {
    font-weight: 700;
    font-size: 14px;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.priority-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Color Preview Enhancements */
#colorPreview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#colorPreview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#colorHex {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 500;
    background: rgba(51, 65, 85, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Enhanced Emoji Selector */
#selectedEmoji {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Premium Button Hover Effects */
button[onclick*="setProjectColor"]:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: scale(1.15) translateY(-2px);
}

button[onclick*="setProjectEmoji"]:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2)) !important;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
    transform: scale(1.1) translateY(-2px);
}

/* Advanced Input Styling */
.modal-content input[type="text"],
.modal-content textarea,
.modal-content input[type="date"],
.modal-content input[type="color"] {
    position: relative;
    z-index: 1;
}

.modal-content input[type="text"]:focus,
.modal-content textarea:focus,
.modal-content input[type="date"]:focus {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 8px 16px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

/* Scrollbar Styling for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

/* ==========================================
   EPIC GAMIFIED PROJECT VIEW - ENDORPHIN FACTORY! 🔥
   ========================================== */

/* Project Hero Section */
.project-hero {
    position: relative;
    padding: 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.1), 
        rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(20px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.project-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-emoji-hero {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.project-title-hero {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description-hero {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.achievement-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.achievement-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: achievement-glow 2s infinite alternate;
}

@keyframes achievement-glow {
    0% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
    100% { box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2); }
}

.motivation-corner {
    text-align: right;
}

.streak-counter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.streak-emoji {
    font-size: 1.5rem;
    animation: streak-pulse 1.5s infinite;
}

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

.streak-text {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.motivation-quote {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    font-style: italic;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    max-width: 300px;
}

/* Epic Progress Section */
.epic-progress-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.progress-percentage {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.epic-progress-bar {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    opacity: 0.3;
    filter: blur(4px);
    animation: progress-glow 2s infinite alternate;
}

@keyframes progress-glow {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Gamification Dashboard */
.gamification-dashboard {
    margin: 2rem 0;
}

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-stat-card {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8), 
        rgba(51, 65, 85, 0.8));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.game-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.game-stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: stat-icon-float 3s ease-in-out infinite;
}

@keyframes stat-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.stat-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-info h3 {
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.score-display,
.time-display,
.streak-number {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.daily-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.daily-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-reward,
.score-trend,
.time-trend,
.streak-motivation {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
}

/* Epic Task Container */
.epic-task-container {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8), 
        rgba(51, 65, 85, 0.8));
    border: 2px solid rgba(71, 85, 105, 0.3);
    border-radius: 2rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin: 2rem 0;
}

.task-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.task-section-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.plus-icon {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Task Filters */
.task-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.7);
    border-radius: 0.75rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.25px;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Epic Task Items */
.epic-task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.epic-task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, 
        rgba(51, 65, 85, 0.6), 
        rgba(71, 85, 105, 0.6));
    border: 2px solid rgba(71, 85, 105, 0.4);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.epic-task-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.epic-task-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.epic-task-item:hover::before {
    opacity: 1;
}

.epic-task-item.completed {
    opacity: 0.7;
    border-color: rgba(34, 197, 94, 0.5);
}

.epic-task-item.completed::before {
    opacity: 1;
}

.task-checkbox-container {
    position: relative;
}

.epic-checkbox {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.epic-checkbox:hover {
    border-color: #22c55e;
    transform: scale(1.1);
}

.epic-checkbox.checked {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.checkbox-inner {
    position: relative;
    z-index: 2;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.epic-checkbox.checked .check-icon {
    opacity: 1;
    transform: scale(1);
}

.checkbox-ripple {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    opacity: 0;
}

.task-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.task-main {
    flex: 1;
}

.task-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.4;
}

.epic-task-item.completed .task-title {
    text-decoration: line-through;
    opacity: 0.7;
}

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

.priority-indicator {
    font-size: 1rem;
}

.points-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.time-badge {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-action-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: scale(1.1);
}

.completion-celebration {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.completion-text {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.75rem;
    animation: completion-pulse 2s infinite;
}

@keyframes completion-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Quick Add Task */
.quick-add-task {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.3);
    border: 2px dashed rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.quick-add-task:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

#quickTaskInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    placeholder-color: #94a3b8;
}

#quickTaskInput::placeholder {
    color: #94a3b8;
}

.quick-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.fab.focus-mode {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.fab.pomodoro {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.fab.motivate {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Animations */
@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes task-complete-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.flying-points {
    animation: points-fly 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes points-fly {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-90px) scale(1.2);
        opacity: 0;
    }
}

/* ==========================================
   TRELLO-KILLER KANBAN BOARD - ULTRA MODERN! 🔥
   ========================================== */

/* Updated Project Header */
.project-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.project-icon-hero {
    width: 64px;
    height: 64px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project-emoji-large {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.project-stats-mini {
    display: flex;
    gap: 1.5rem;
}

.stat-mini {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epic-progress-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

/* Kanban Board Container */
.kanban-board-container {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8), 
        rgba(51, 65, 85, 0.8));
    border: 2px solid rgba(71, 85, 105, 0.3);
    border-radius: 2rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin: 2rem 0;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.board-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.board-actions {
    display: flex;
    gap: 1rem;
}

.board-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.board-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.4);
}

/* Kanban Board Grid */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    min-height: 600px;
}

/* Kanban Columns */
.kanban-column {
    background: linear-gradient(135deg, 
        rgba(51, 65, 85, 0.4), 
        rgba(71, 85, 105, 0.4));
    border: 2px solid rgba(71, 85, 105, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.kanban-column:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.todo-column {
    border-left: 4px solid #3b82f6;
}

.progress-column {
    border-left: 4px solid #f59e0b;
}

.completed-column {
    border-left: 4px solid #22c55e;
}

/* Column Headers */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

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

.column-icon {
    font-size: 1.25rem;
}

.column-name {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.task-count {
    background: rgba(71, 85, 105, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.add-card-btn,
.celebration-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(139, 92, 246, 0.3);
    color: white;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-card-btn:hover,
.celebration-btn:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

/* Kanban Cards Container */
.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 200px;
}

.empty-column {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 2rem;
    border: 2px dashed rgba(71, 85, 105, 0.3);
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.3);
    min-height: 120px;
    font-size: 0.875rem;
}

/* Kanban Cards */
.kanban-card {
    background: linear-gradient(135deg, 
        rgba(71, 85, 105, 0.8), 
        rgba(51, 65, 85, 0.8));
    border: 2px solid rgba(71, 85, 105, 0.4);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.kanban-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.kanban-card.completed {
    opacity: 0.8;
    border-color: rgba(34, 197, 94, 0.5);
}

.kanban-card.completed::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-checkbox-container {
    position: relative;
}

.kanban-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kanban-checkbox:hover {
    border-color: #22c55e;
    transform: scale(1.1);
}

.kanban-checkbox.checked {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.kanban-checkbox .check-icon {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kanban-checkbox.checked .check-icon {
    opacity: 1;
    transform: scale(1);
}

.checkbox-ripple {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: 0;
}

.card-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-card:hover .card-actions {
    opacity: 1;
}

.card-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.kanban-card.completed .card-title {
    text-decoration: line-through;
    opacity: 0.7;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-priority {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.priority-text {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.card-points {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.card-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.completion-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
    animation: completion-pulse 2s infinite;
}

/* Quick Add Section */
.quick-add-section {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(71, 85, 105, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.quick-add-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quick-add-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

#quickTaskInput {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(51, 65, 85, 0.8);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 1rem;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#quickTaskInput:focus {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    outline: none;
}

#quickTaskInput::placeholder {
    color: #94a3b8;
}

.quick-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.quick-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
}

.quick-add-hint {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
}

/* Motivation Widget */
.motivation-widget {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9), 
        rgba(59, 130, 246, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(20px);
    max-width: 280px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.motivation-content {
    color: white;
}

.motivation-quote {
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.motivation-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Kanban Animations */
@keyframes kanban-celebrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

@keyframes kanban-ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes slide-to-completed {
    0% { 
        transform: translateX(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(20px);
        opacity: 0.5;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .motivation-widget {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .project-header-main {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .project-title-section {
        flex-direction: column;
        text-align: center;
    }
    
    .project-stats-mini {
        justify-content: center;
    }
    
    .board-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .board-actions {
        justify-content: center;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .quick-add-input-group {
        flex-direction: column;
    }
}

/* 🚀 DRAG & DROP KANBAN STYLES - TRELLO KILLER! */

/* Drag & Drop States */
.kanban-card[draggable="true"] {
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kanban-card.dragging {
    opacity: 0.7;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Drop Zone States */
.kanban-column.drop-zone-active {
    transition: all 0.3s ease;
}

.kanban-column.drop-zone-hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    transform: scale(1.02);
}

.kanban-column.drop-zone-hover .column-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    color: #8b5cf6;
}

.kanban-column.drop-zone-hover::before {
    content: '📥 Upuść tutaj';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    animation: dropHint 1s ease-in-out infinite alternate;
}

/* Drag Feedback Animations */
@keyframes dropSuccess {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
}

@keyframes columnFlash {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    }
}

@keyframes dropHint {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
}

/* XP Gain Animation */
@keyframes xpGain {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

/* Particle Explosion Animation */
@keyframes particleExplosion {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0);
    }
}

/* Enhanced Card Hover Effects */
.kanban-card:not(.dragging):hover .card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

.kanban-card:not(.dragging):hover .card-action-btn {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Drag & Drop Support */
@media (max-width: 768px) {
    .kanban-column.drop-zone-hover {
        transform: scale(1.01);
    }
    
    .kanban-column.drop-zone-hover::before {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .kanban-card.dragging {
        transform: rotate(3deg) scale(1.02);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .kanban-card {
        cursor: default;
    }
    
    .kanban-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* High Performance Mode for Smooth Animations */
.kanban-card,
.kanban-column {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Success States */
.task-completed-celebration {
    position: relative;
    overflow: hidden;
}

.task-completed-celebration::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    animation: celebrationSweep 0.8s ease-out;
}

@keyframes celebrationSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 🚀 WORLD-CLASS PRODUCTIVITY UI COMPONENTS */

/* 📱 INTELLIGENT NOTIFICATION SYSTEM - Apple/Google Level */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.intelligent-notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 300px;
}

.intelligent-notification.success {
    border-left: 4px solid #22c55e;
}

.intelligent-notification.error {
    border-left: 4px solid #ef4444;
}

.intelligent-notification.warning {
    border-left: 4px solid #f59e0b;
}

.intelligent-notification.info {
    border-left: 4px solid #3b82f6;
}

.intelligent-notification.progress {
    border-left: 4px solid #8b5cf6;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.notification-progress {
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: 100%;
    transform-origin: left;
}

@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* 🍅 ADVANCED POMODORO TIMER INTERFACE */
.pomodoro-floating-interface {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -100%);
    opacity: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.pomodoro-display {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    min-width: 280px;
    text-align: center;
}

.pomodoro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pomodoro-icon {
    font-size: 24px;
}

.pomodoro-status {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.pomodoro-timer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.timer-display {
    font-size: 36px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.timer-progress {
    position: relative;
}

.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle circle {
    transition: stroke-dashoffset 0.3s ease;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pomodoro-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: white;
}

.pomodoro-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pomodoro-btn:active {
    transform: scale(0.95);
}

.pomodoro-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

/* Pomodoro Suggestion */
.pomodoro-suggestion {
    position: fixed;
    bottom: 30px;
    right: 30px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}

.suggestion-content {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    max-width: 300px;
}

.suggestion-icon {
    font-size: 32px;
    text-align: center;
    margin-bottom: 12px;
}

.suggestion-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.suggestion-text p {
    margin: 0 0 16px 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
}

.btn-pomodoro {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-pomodoro.start {
    background: rgba(255, 255, 255, 0.9);
    color: #d97706;
}

.btn-pomodoro.dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-pomodoro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Break Finished Modal */
.break-finished-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.break-dialog {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    color: white;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3);
}

.break-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.break-dialog h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
}

.break-dialog p {
    margin: 0 0 24px 0;
    font-size: 16px;
    opacity: 0.9;
}

.break-actions {
    display: flex;
    gap: 12px;
}

.btn-focus {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-focus.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #16a34a;
}

.btn-focus.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-focus:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 🎯 FOCUS MODE SYSTEM */
.focus-mode {
    filter: contrast(1.1) brightness(0.95);
}

.focus-hidden {
    opacity: 0.3;
    filter: blur(2px);
    transition: all 0.5s ease;
    pointer-events: none;
}

#focus-mode-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
}

.focus-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(109, 40, 217, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: focusPulse 2s infinite ease-in-out;
}

.focus-icon {
    font-size: 16px;
}

.focus-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes focusPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.9;
    }
}

/* Task Completed Dialog */
.task-completed-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-completed-dialog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    color: #1f2937;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dialog-header {
    margin-bottom: 24px;
}

.completion-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.task-completed-dialog h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.task-completed-dialog p {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dialog-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dialog-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.dialog-btn.secondary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.dialog-btn.tertiary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.dialog-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Achievement Modal */
.achievement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 193, 7, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    color: #1f2937;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.achievement-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: achievementBounce 1s ease-out;
}

.achievement-content h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #92400e;
}

.achievement-content h3 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.achievement-content p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #4b5563;
}

.achievement-close {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.achievement-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes achievementBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

/* Enhanced Particle Animations */
@keyframes pomodoroParticleExplosion {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0) rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .intelligent-notification {
        min-width: auto;
    }
    
    .pomodoro-floating-interface {
        left: 20px;
        right: 20px;
        transform: translateY(-100%);
    }
    
    .pomodoro-display {
        min-width: auto;
        padding: 20px;
    }
    
    .timer-display {
        font-size: 28px;
    }
    
    .suggestion-content {
        max-width: none;
        margin: 0 20px;
    }
    
    .focus-badge {
        padding: 8px 16px;
    }
    
    .dialog-actions {
        flex-direction: column;
    }
    
    .break-actions {
        flex-direction: column;
    }
}

/* 🚀 ADVANCED TASK CREATION MODAL - Apple/Google Level */
.advanced-task-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.advanced-task-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    backdrop-filter: blur(24px);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.task-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
}

.task-modal-header .header-icon {
    font-size: 24px;
    margin-right: 12px;
}

.task-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.close-modal-btn {
    background: rgba(107, 114, 128, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.task-form-content {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

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

/* Smart Input Container */
.smart-input-container {
    position: relative;
}

.smart-input-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(209, 213, 219, 0.5);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.smart-input-container input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.input-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.input-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

/* Parsed Information Display */
.parsed-info {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.parsed-info h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
}

.parsed-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.parsed-chip {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6b46c1;
}

.parsed-chip.priority {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.parsed-chip.date {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.parsed-chip.assignee {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.parsed-chip.tag {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

/* Priority Selector */
.priority-selector {
    display: flex;
    gap: 12px;
}

.priority-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid rgba(209, 213, 219, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.5);
}

.priority-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.priority-option.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.2);
}

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

.priority-dot.low {
    background: #22c55e;
}

.priority-dot.medium {
    background: #f59e0b;
}

.priority-dot.high {
    background: #ef4444;
}

/* Form Controls */
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(209, 213, 219, 0.5);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Tags Input */
.tags-input-container {
    border: 2px solid rgba(209, 213, 219, 0.5);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-input-container:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-tag {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-tag {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tags-input-container input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 4px;
    font-size: 14px;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag-suggestion {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tag-suggestion:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.quick-actions-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #d97706;
}

.quick-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-action-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.quick-action-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #d97706;
}

/* AI Suggestions */
.ai-suggestions {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(22, 163, 74, 0.05));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ai-suggestions h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.1);
    transition: all 0.2s ease;
}

.ai-suggestion:hover {
    background: rgba(34, 197, 94, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.ai-suggestion .suggestion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.suggestion-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Modal Footer */
.task-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(249, 250, 251, 0.5);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.15);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

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

/* Task Creation Particle Animation */
@keyframes taskCreationParticle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .advanced-task-modal {
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .task-modal-header,
    .task-form-content,
    .task-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .priority-selector {
        flex-direction: column;
    }
    
    .quick-action-buttons {
        flex-direction: column;
    }
    
    .task-modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}