/**
 * Components CSS: Kanban, Chat, Timeline, Split View & Modals
 */

/* 1. KPI Cards */
.card-kpi {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* 2. Kanban Board (Drag & Drop) */
.kanban-board {
    min-height: 600px;
    padding-bottom: 1.5rem;
}

.kanban-column {
    min-width: 320px;
    max-width: 320px;
    background-color: #eaedf2;
    border: 1px solid #d8dee6;
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    padding: 0.75rem !important;
}

[data-bs-theme="dark"] .kanban-column {
    background-color: #171b21;
    border: 1px solid #2d333b;
}

.kanban-column-header {
    border-radius: 0.6rem;
    transition: background-color 0.2s ease;
}

.kanban-cards-wrapper {
    min-height: 200px;
}

.kanban-card {
    cursor: grab;
    background-color: #ffffff;
    border: 1px solid #d0d7e2;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

[data-bs-theme="dark"] .kanban-card {
    background-color: #21262d;
    border-color: #30363d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    border-color: #94a3b8;
}

[data-bs-theme="dark"] .kanban-card:hover {
    border-color: #8b949e;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.kanban-card.dragging {
    opacity: 0.45;
    cursor: grabbing;
}

/* Card com Prazo Vencido (Destaque Vermelho) */
.kanban-card-overdue {
    background-color: #fff5f5 !important;
    border: 1.5px solid #ef4444 !important;
    border-left: 5px solid #dc2626 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12) !important;
}

[data-bs-theme="dark"] .kanban-card-overdue {
    background-color: #2a1215 !important;
    border: 1.5px solid #f87171 !important;
    border-left: 5px solid #ef4444 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
}

.kanban-column.drag-over {
    background-color: #dbeafe !important;
    border: 2px dashed #0d6efd !important;
}

/* 3. Timeline & Chat Feed */
.timeline-chat-feed {
    scroll-behavior: smooth;
}

.timeline-event-card {
    font-size: 0.85rem;
}

.chat-bubble {
    word-break: break-word;
    border-radius: 12px;
}

/* 4. Dropzone */
.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

/* 5. Custom Toast Alerts */
.toast-container {
    z-index: 1090;
}
