/* Custom styles for College Kanban Board */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Kanban columns */
.kanban-column {
    min-height: 200px;
    min-width: 280px;
    max-width: 340px;
    flex: 1 0 280px;
}

.kanban-column .card-list {
    min-height: 80px;
    transition: background-color 0.2s;
}

/* Card styles */
.kanban-card {
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0.5rem;
    position: relative;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.kanban-card:active {
    cursor: grabbing;
}

/* SortableJS ghost */
.sortable-ghost {
    opacity: 0.4;
}
.sortable-drag {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: rotate(2deg);
}
.sortable-chosen {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Overdue badge */
.overdue-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar */
.sidebar {
    transition: width 0.3s ease;
}
.sidebar-item {
    transition: background-color 0.15s, color 0.15s;
}
.sidebar-item:hover {
    background-color: rgba(99, 102, 241, 0.08);
}
.sidebar-item.active {
    background-color: rgba(99, 102, 241, 0.12);
    color: #4F46E5;
    font-weight: 600;
}

/* Modal overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Progress bar */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Color picker swatch */
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.color-swatch:hover, .color-swatch.selected {
    border-color: #4F46E5;
    transform: scale(1.1);
}

/* Subtask checkbox animation */
.subtask-check {
    transition: all 0.2s;
}
.subtask-check.checked {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .kanban-column {
        min-width: 250px;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #E5E7EB;
    border-top-color: #4F46E5;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in */
.fade-in {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb */
.breadcrumb a {
    color: #6366F1;
    transition: color 0.15s;
}
.breadcrumb a:hover {
    color: #4338CA;
    text-decoration: underline;
}
