:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --background: #f8fafc;
    --column-bg: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    margin: 0;
    min-height: 100vh;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.column {
    background: var(--column-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.column:hover {
    transform: translateY(-2px);
}

.column h2 {
    margin: 0 0 1.5rem 0;
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tasks {
    min-height: 150px;
    padding: 0.5rem;
    background: rgba(241, 245, 249, 0.4);
    border-radius: 0.75rem;
    transition: background 0.2s ease;
}

.task {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0.75rem;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform-origin: top center;
    animation: taskAppear 0.3s ease forwards;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

/* .task.new-task {
    animation: taskAppear 0.3s ease forwards;
} */


.task.new-task {
    opacity: 0;
    transform: translateY(20px);
}

.task.new-task:not(.moving) {
    opacity: 1;
    transform: translateY(0);
}

.task.moving {
    z-index: 10;
    transform: scale(1.05);
}

.task.removing {
    opacity: 0;
    transform: translateX(-100%);
}

.task:not(.new-task) {
    animation: none;
}

@keyframes taskAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.add-task {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.delete-btn {
    background: none;
    color: #94a3b8;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg) scale(1.1);
}

/* Column color indicators */
.column[data-status="todo"] h2::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #94a3b8;
    border-radius: 50%;
}

.column[data-status="inprogress"] h2::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
}

.column[data-status="done"] h2::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}