* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #4a5568;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h1 i {
    color: #667eea;
}

.controls {
    display: flex;
    gap: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #fc8181;
    color: white;
}

.btn-danger:hover {
    background: #f56565;
}

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.column {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    min-width: 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.column-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
}

.column-actions {
    display: flex;
    gap: 10px;
}

.column-actions button {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.task-list {
    padding: 15px;
    flex-grow: 1;
    min-height: 400px;
    transition: background-color 0.2s;
}

.task-list.drag-over {
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
}

.task {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #667eea;
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.task.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.task-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.task-meta {
    display: flex;
    gap: 10px;
}

.task-priority {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-high {
    background: #fed7d7;
    color: #c53030;
}

.priority-medium {
    background: #feebcb;
    color: #dd6b20;
}

.priority-low {
    background: #c6f6d5;
    color: #276749;
}

.task-due {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-due.overdue {
    color: #e53e3e;
    font-weight: 600;
}

.task-labels {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.label {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.label-design {
    background: #bee3f8;
    color: #2c5282;
}

.label-development {
    background: #c6f6d5;
    color: #276749;
}

.label-bug {
    background: #fed7d7;
    color: #c53030;
}

.label-feature {
    background: #faf089;
    color: #744210;
}

.add-task {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.add-task:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.add-task i {
    color: #a0aec0;
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.empty-column {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
    font-style: italic;
}

@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        align-items: center;
    }
    
    .column {
        width: 100%;
        max-width: 400px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .controls {
        justify-content: center;
    }
}