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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --error-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    /* Dark mode colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --backdrop-blur: blur(20px);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 15px 50px rgba(31, 38, 135, 0.5);
    --body-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Light mode colors */
body.light-mode {
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-bg-light: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);
    --backdrop-blur: blur(20px);
    --shadow-light: 0 8px 32px rgba(255, 255, 255, 0.5);
    --shadow-heavy: 0 15px 50px rgba(255, 255, 255, 0.7);
    --body-bg: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffeaa7 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    display: flex;
    min-height: 100vh;
    backdrop-filter: var(--backdrop-blur);
}

.column-btn:hover {
    background: var(--glass-bg-light);
    transform: scale(1.1);
}

.tasks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task {
    background: var(--glass-bg-light);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.task::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}

.task[data-priority="high"]::before {
    background: var(--error-gradient);
}

.task[data-priority="medium"]::before {
    background: var(--warning-gradient);
}

.task[data-priority="low"]::before {
    background: var(--success-gradient);
}

.task:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: var(--glass-bg);
}

.task.dragging {
    opacity: 0.8;
    cursor: grabbing;
    transform: rotate(5deg) scale(1.05);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    margin-right: 12px;
}

.task-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.task:hover .task-actions {
    opacity: 1;
}

.task-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: var(--backdrop-blur);
}

.task-btn.complete-btn {
    background: var(--success-gradient);
    color: white;
}

.task-btn.remove-btn {
    background: var(--error-gradient);
    color: white;
}

.task-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.task-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag.design {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #a78bfa;
}

.tag.development {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2), rgba(56, 249, 215, 0.2));
    color: #34d399;
}

.tag.testing {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.2), rgba(254, 225, 64, 0.2));
    color: #fbbf24;
}

.tag.bug {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.2), rgba(254, 207, 239, 0.2));
    color: #f87171;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-priority {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.priority-high {
    background: var(--error-gradient);
}

.priority-medium {
    background: var(--warning-gradient);
}

.priority-low {
    background: var(--success-gradient);
}

.task-assignee {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.task-assignee:hover {
    transform: scale(1.1);
}

.add-task-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 16px;
    backdrop-filter: var(--backdrop-blur);
}

.add-task-btn:hover {
    border-color: var(--accent-gradient);
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.column.drag-over {
    background: var(--glass-bg-light);
    border-color: var(--accent-gradient);
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: var(--backdrop-blur);
}

.close-btn:hover {
    background: var(--glass-bg-light);
    color: var(--text-primary);
    transform: scale(1.1);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gradient);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
    background: var(--glass-bg-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-gradient);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 24px;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-heavy);
    z-index: 2000;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #43e97b;
}

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

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .nexus-board {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .task-actions {
        opacity: 1;
    }
}


.sidebar {
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-right: 1px solid var(--glass-border);
    padding: 32px 24px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-section {
    margin-bottom: 40px;
}

.nav-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

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

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: var(--glass-bg-light);
    transform: translateX(8px);
    box-shadow: var(--shadow-light);
}

.nav-item.active {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.theme-toggle:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
}

.theme-toggle-btn {
    width: 48px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-toggle-btn::after {
    transform: translateX(24px);
}

.main-content {
    flex: 1;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.btn {
    padding: 14px 28px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
}

.nexus-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
}

.column {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 24px;
    padding: 24px;
    min-height: 600px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.column[data-column="backlog"]::before {
    background: var(--secondary-gradient);
}

.column[data-column="todo"]::before {
    background: var(--warning-gradient);
}

.column[data-column="in-progress"]::before {
    background: var(--accent-gradient);
}

.column[data-column="done"]::before {
    background: var(--success-gradient);
}

.column:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.column-count {
    background: var(--glass-bg-light);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.column-btn {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: var(--backdrop-blur);
}


/* Footer Styles */
        .footer {
            background: var(--glass-bg);
            backdrop-filter: var(--backdrop-blur);
            border-top: 1px solid var(--glass-border);
            padding: 20px 0;
            text-align: center;
            margin-top: auto;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        }

        .footer-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .footer-heart {
            color: #ff6b6b;
            font-size: 16px;
            animation: heartbeat 2s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 50%, 100% { transform: scale(1); }
            25%, 75% { transform: scale(1.1); }
        }

        .footer-name {
            color: var(--text-primary);
            font-weight: 600;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }