* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { 
    background-color: #f8fafc;
    padding: 20px;
    color: #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 24px;
    color: #4f46e5;
}

.header h1 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 24px;
}

.controls {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

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

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

.btn-danger {
    background-color: #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.board-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    min-height: calc(100vh - 150px);
    padding-bottom: 20px;
}

.column {
    background-color: white;
    border-radius: 8px;
    min-width: 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
}

.column-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.column-title {
    font-weight: 600;
    color: #444;
}

.task-count {
    background-color: #e2e8f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    color: #64748b;
}

.task-list {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 100px;
    background-color: #f8fafc;
}

.task {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.2s;
}

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

.task:last-child {
    margin-bottom: 0;
}

.task:active {
    cursor: grabbing;
}

.task-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e293b;
}

.task-description {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.task-due-date i {
    font-size: 12px;
}

.due-date-urgent {
    color: #ef4444;
}

.due-date-warning {
    color: #f59e0b;
}

.due-date-normal {
    color: #10b981;
}

.task-assignees {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.assignee {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
}

.assignee-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.task-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
}

.task:hover .task-actions {
    display: block;
}

.delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}

.column-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
}

.add-task-btn {
    width: 100%;
    padding: 8px;
    background-color: transparent;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-task-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: #4f46e5;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #64748b;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #334155;
}

.required {
    color: #ef4444;
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.5);
}

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

select[multiple] {
    height: auto;
    min-height: 100px;
    padding: 8px;
}

select[multiple] option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}

select[multiple] option:hover {
    background-color: #e0e7ff;
}

.submit-btn {
    padding: 12px 16px;
    width: 100%;
    margin-top: 10px;
    font-weight: 500;
}

.priority-low {
    border-left: 4px solid #10b981;
}

.priority-medium {
    border-left: 4px solid #f59e0b;
}

.priority-high {
    border-left: 4px solid #ef4444;
}

.tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e2e8f0;
    color: #475569;
    margin-right: 4px;
}

.tag-design {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tag-bug {
    background-color: #fee2e2;
    color: #b91c1c;
}

.tag-feature {
    background-color: #dcfce7;
    color: #15803d;
}

.tag-research {
    background-color: #f0f9ff;
    color: #0c4a6e;
}

.tag-dev {
    background-color: #ecfccb;
    color: #4d7c0f;
}

.tag-meeting {
    background-color: #ede9fe;
    color: #5b21b6;
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-over {
    background-color: rgba(79, 70, 229, 0.1);
    border: 2px dashed #a5b4fc;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .board-container {
        flex-direction: column;
        align-items: center;
    }
    
    .column {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.column-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.column-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 14px;
    border-radius: 3px;
}

.column-actions button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.task {
    cursor: pointer;
    transition: transform 0.1s;
}

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

/* Add to existing button styles */
.btn-primary i {
    margin-right: 5px;
}

/* Loading spinner */
.fa-spinner {
    margin-right: 5px;
}

/* File input button styling */
#json-file-input {
    display: none;
}