/* Kanban View Styles */

.atmp-kanban-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.atmp-kanban-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.atmp-kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.atmp-kanban-column {
    background: var(--hrmp-gray-50);
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.atmp-kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hrmp-gray-200);
    background: #fff;
    border-top: 3px solid var(--column-color, var(--hrmp-gray-300));
}

.atmp-kanban-column-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
}

.atmp-kanban-column-count {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--hrmp-gray-100);
    color: var(--hrmp-gray-600);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.atmp-kanban-cards {
    flex: 1;
    min-height: 280px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.atmp-kanban-cards.atmp-kanban-drop-zone {
    background: rgba(79, 70, 229, 0.05);
    border: 1px dashed rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.atmp-kanban-card {
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    padding: 12px;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.atmp-kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: var(--hrmp-primary);
}

.atmp-kanban-card:active {
    cursor: grabbing;
}

.atmp-card-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}

.atmp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.atmp-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.atmp-card-title {
    font-size: 14px;
    line-height: 1.45;
    color: var(--hrmp-gray-800);
    font-weight: 700;
    margin-bottom: 10px;
    word-break: break-word;
}

.atmp-card-progress {
    margin-bottom: 10px;
}

.atmp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.atmp-card-assignees {
    min-width: 0;
}

.atmp-card-date {
    font-size: 12px;
    color: var(--hrmp-gray-500);
    white-space: nowrap;
}

.atmp-overdue-text {
    color: #dc2626;
    font-weight: 700;
}

.atmp-kanban-empty {
    border: 1px dashed var(--hrmp-gray-300);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: var(--hrmp-gray-400);
    font-size: 12px;
    background: #fff;
}

.atmp-kanban-ghost {
    opacity: 0.35;
}

.atmp-kanban-chosen {
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.atmp-kanban-drag {
    transform: rotate(1.2deg);
}

@media (max-width: 900px) {
    .atmp-kanban-board {
        grid-template-columns: 1fr;
    }
}
