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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.add-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.board {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    min-height: calc(100vh - 80px);
}

.column {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.column-header h2 {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.task-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
}

.tasks.drag-over {
    background: rgba(79, 70, 229, 0.2);
    border-radius: 8px;
}

.task-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
    border-left: 4px solid #4f46e5;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-card.priority-high {
    border-left-color: #ef4444;
}

.task-card.priority-medium {
    border-left-color: #eab308;
}

.task-card.priority-low {
    border-left-color: #22c55e;
}

.task-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.task-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.task-id {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

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

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e1e2e;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

#taskForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#taskForm input,
#taskForm textarea,
#taskForm select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

#taskForm textarea {
    min-height: 80px;
    resize: vertical;
}

#taskForm input:focus,
#taskForm textarea:focus,
#taskForm select:focus {
    outline: none;
    border-color: #4f46e5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4f46e5;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .board {
        flex-direction: column;
    }
    
    .column {
        max-width: 100%;
    }
}
