:root {
    --bg-darker: #050510;
    --bg-dark: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.4);
    --panel-border: rgba(255, 255, 255, 0.08);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    
    --col-todo: #475569;
    --col-production: #0ea5e9;
    --col-completed: #10b981;
    --danger: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-blur: blur(16px);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-darker);
    /* Subtle mesh gradient background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.1), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 30%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glass Header */
.glass-header {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.logo i {
    font-size: 1.8rem;
    color: #818cf8;
}

/* Helpers */
.text-todo { color: var(--text-muted); }
.text-production { color: var(--col-production); }
.text-completed { color: var(--col-completed); }

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.25rem;
}
.btn-close:hover {
    color: white;
    transform: scale(1.1);
}

/* Board */
.board {
    display: flex;
    flex: 1;
    padding: 2rem;
    gap: 1.5rem;
    overflow-x: auto;
    align-items: flex-start;
}

.column {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    box-shadow: var(--shadow-sm);
}

.column-header {
    padding: 1.25rem;
    border-bottom: 2px solid var(--col-todo);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.column.highlight .column-header { border-color: var(--col-production); }
.column.success .column-header { border-color: var(--col-completed); }

.column-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-list {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* Task Card */
.task-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    user-select: none;
}
.task-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.sortable-ghost {
    opacity: 0.3;
    background: var(--primary);
    border: 1px dashed rgba(255,255,255,0.5);
}
.sortable-drag {
    cursor: grabbing !important;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Card Top Row (number + drag handle) */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.task-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    touch-action: none; /* prevents scroll conflict on touch */
}
.drag-handle:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}
.drag-handle:active {
    cursor: grabbing;
}

.task-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #fff;
    word-break: break-word;
}
.task-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem top 50%;
    background-size: .65rem auto;
}
.form-group select option {
    background: var(--bg-dark);
    color: white;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}
.toast::before {
    font-family: "Phosphor-Regular";
    font-size: 1.5rem;
}
.toast.success { border-left-color: var(--col-completed); }
.toast.success i { color: var(--col-completed); }
.toast.error { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* Responsivo */
@media (max-width: 768px) {
    .glass-header {
        padding: 1rem;
    }
    .board {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .column {
        width: 100%;
        min-width: unset;
        max-height: 60vh;
    }
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    #toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .login-card {
        width: 95%;
        padding: 2rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logout Button */
.btn-logout {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* ============================
   Login Screen - Premium Design
   ============================ */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-darker);
    background-image: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 40%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem 1rem;
    overflow-y: auto;
}

/* Floating particles effect via pseudo-elements */
.login-overlay::before,
.login-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatBlob 8s ease-in-out infinite;
}
.login-overlay::before {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.15);
    top: 10%;
    left: 15%;
}
.login-overlay::after {
    width: 250px;
    height: 250px;
    background: rgba(14, 165, 233, 0.12);
    bottom: 15%;
    right: 15%;
    animation-delay: -4s;
    animation-direction: reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.login-card {
    margin: auto;
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    animation: loginFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Subtle gradient border glow */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), transparent 40%, transparent 60%, rgba(14, 165, 233, 0.3));
    z-index: -1;
    opacity: 0.5;
}

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

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.login-logo i {
    font-size: 3.5rem;
    color: #818cf8;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}
.login-logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a5b4fc, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Login form overrides */
.login-card .form-group {
    margin-bottom: 1rem;
}
.login-card .form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 600;
}
.login-card .form-group input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.login-card .form-group input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

.login-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #7c3aed, var(--primary));
}
.login-btn:active {
    transform: translateY(0);
}
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    animation: shake 0.4s ease;
}
.login-error i {
    font-size: 1.1rem;
    color: var(--danger);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ============================
   Archive Drawer
   ============================ */

/* Archive Toggle Button */
.btn-archive-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.btn-archive-toggle:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.archive-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Overlay */
.archive-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.archive-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Drawer Panel */
.archive-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 55;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
.archive-drawer.active {
    transform: translateX(0);
}

.archive-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem;
}

.archive-drawer-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.archive-drawer-title i {
    font-size: 1.5rem;
    color: #fbbf24;
}
.archive-drawer-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.archive-drawer-subtitle {
    padding: 0 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Archived Task Card */
.archive-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    animation: archiveCardIn 0.3s ease;
}
.archive-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.archive-card .archive-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    word-break: break-word;
}
.archive-card .archive-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

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

.btn-restore {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-restore:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-archive-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-archive-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Empty State */
.archive-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.75rem;
    color: var(--text-muted);
    padding: 3rem 1rem;
}
.archive-empty.visible {
    display: flex;
}
.archive-empty i {
    font-size: 3rem;
    opacity: 0.3;
}
.archive-empty p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Quick Archive button on task cards */
.btn-quick-archive {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.2rem;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
    opacity: 0;
}
.task-card:hover .btn-quick-archive {
    opacity: 1;
}
.btn-quick-archive:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

/* Custom Checkbox on Task Card */
.card-selection-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.25;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show checkbox on hover of task-card */
.task-card:hover .custom-checkbox {
    opacity: 0.6;
}

.task-card .custom-checkbox:hover,
.task-card .custom-checkbox input:checked + .checkbox-checkmark {
    opacity: 1;
}

/* When bulk selection mode is active, make all checkboxes visible */
body.bulk-selection-active .custom-checkbox {
    opacity: 1 !important;
}

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

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked + .checkbox-checkmark:after {
    display: block;
}

.custom-checkbox .checkbox-checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Highlight selected task card */
.task-card.selected {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

/* Bulk Action Bar */
.bulk-action-bar {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    max-width: 90%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.bulk-action-bar.active {
    bottom: 2rem;
    opacity: 1;
    pointer-events: auto;
}

.bulk-action-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 2rem;
}

.bulk-selected-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
    white-space: nowrap;
}

.bulk-selected-count i {
    font-size: 1.25rem;
    color: var(--primary);
}

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

.bulk-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.bulk-action-group > span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
    font-weight: 500;
}

.btn-bulk-action {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-bulk-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-bulk-action i {
    font-size: 1rem;
}

.btn-bulk-archive {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.btn-bulk-archive:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.btn-bulk-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-bulk-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

.btn-bulk-cancel {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.btn-bulk-cancel:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments for bulk action bar */
@media (max-width: 768px) {
    .bulk-action-bar {
        width: calc(100% - 2rem);
        min-width: 0;
    }
    .bulk-action-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: stretch;
    }
    .bulk-selected-count {
        justify-content: center;
    }
    .bulk-actions-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .bulk-action-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    .bulk-action-group > span {
        text-align: center;
        margin-bottom: 0.2rem;
    }
    .divider {
        display: none;
    }
}

/* Select Column All Button */
.btn-select-column-all {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 0.3rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.column-header:hover .btn-select-column-all {
    opacity: 1;
}

.btn-select-column-all:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.btn-select-column-all.active {
    color: var(--primary);
    opacity: 1;
}
