/* Professional Light Mode Kanban Board */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

    .logo i {
        font-size: 1.75rem;
    }

.project-selector .form-select {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    min-width: 200px;
}

    .project-selector .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.btn-header {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

    .btn-header:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-icon:hover {
        background: var(--background);
        border-color: var(--text-muted);
    }

.avatar-group {
    display: flex;
    align-items: center;
    gap: -0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--surface);
    margin-left: -8px;
    transition: all 0.2s;
}

    .avatar:first-child {
        margin-left: 0;
    }

    .avatar:hover {
        transform: translateY(-2px) scale(1.05);
        z-index: 10;
    }

/* Board Container */
.board-container {
    height: calc(100vh - 80px);
    padding: 1.5rem;
}

.board-scroll {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.board {
    display: flex;
    gap: 1.5rem;
    min-height: 100%;
    padding-bottom: 1rem;
}

/* Kanban Column */
.kanban-column {
    background: var(--surface);
    border-radius: 0.75rem;
    min-width: 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.column-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
    border-radius: 0.75rem 0.75rem 0 0;
}

.column-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.backlog-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.progress-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.review-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.done-icon {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.column-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.task-count {
    background: var(--background);
    color: var(--text-secondary);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.column-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Task Card */
.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
}

    .task-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .task-card:active {
        cursor: grabbing;
    }

.task-completed {
    opacity: 0.7;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.task-label {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.label-feature {
    background: #eff6ff;
    color: #2563eb;
}

.label-bug {
    background: #fef2f2;
    color: #dc2626;
}

.label-improvement {
    background: #f0fdf4;
    color: #16a34a;
}

.btn-icon-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-icon-small:hover {
        background: var(--background);
        color: var(--text-secondary);
    }

.task-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.task-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--background);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.task-meta {
    display: flex;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

    .meta-item i {
        font-size: 0.875rem;
    }

.task-assignee {
    display: flex;
    gap: -0.25rem;
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    border: 2px solid var(--surface);
    margin-left: -6px;
}

    .avatar-small:first-child {
        margin-left: 0;
    }

.add-task-btn {
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 0.625rem;
    padding: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

    .add-task-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(99, 102, 241, 0.05);
    }

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem 1rem 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .modal-title i {
        color: var(--primary);
    }

.btn-close {
    opacity: 0.5;
}

    .btn-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text-primary);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
    }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.color-picker {
    display: flex;
    gap: 0.75rem;
}

    .color-picker input[type="radio"] {
        display: none;
    }

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.color-picker input[type="radio"]:checked + .color-option {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.priority-options {
    display: flex;
    gap: 0.75rem;
}

.priority-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .priority-btn:hover {
        border-color: var(--text-muted);
    }

    .priority-btn.active {
        border-color: var(--primary);
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
    }

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        background: var(--background);
    }

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: var(--surface);
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background: var(--background);
    }

    .dropdown-item i {
        font-size: 1rem;
        color: var(--text-secondary);
    }

/* Drag and Drop */
.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.drag-over {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed var(--primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

/* Responsive */
@media (max-width: 768px) {
    .board-container {
        padding: 1rem;
    }

    .kanban-column {
        min-width: 300px;
        max-width: 300px;
    }

    .header .d-flex {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .project-selector .form-select {
        min-width: 150px;
    }
}
