/* plugins/pipeline/assets/css/pipeline.css */

/* Kanban layout */
.kanban-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 250px);
}

.kanban-column {
    flex: 0 0 320px;
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.kanban-column-header {
    padding: 1rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Kanban column headers light gradients */
.kanban-header-new {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-bottom: 1px solid #bae6fd !important;
}
.kanban-header-qualified {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%) !important;
    border-bottom: 1px solid #ccfbf1 !important;
}
.kanban-header-proposal {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-bottom: 1px solid #fde68a !important;
}
.kanban-header-negotiation {
    background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%) !important;
    border-bottom: 1px solid #c7d2fe !important;
}
.kanban-header-won {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-bottom: 1px solid #bbf7d0 !important;
}
.kanban-header-lost {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%) !important;
    border-bottom: 1px solid #fecaca !important;
}

.kanban-cards-container {
    padding: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 150px;
}

.kanban-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -4px rgba(99, 102, 241, 0.1);
    border-color: #cbd5e1;
}

.kanban-card:active {
    cursor: grabbing;
}

/* Temperatures gradients */
.temp-badge-hot {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

.temp-badge-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}

.temp-badge-cold {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #075985 !important;
    border: 1px solid #7dd3fc !important;
}

/* Value alerts (custom styling on cards based on settings) */
.deal-alert-low {
    border-left: 3px solid #ef4444 !important;
}

.deal-alert-high {
    border-left: 3px solid #10b981 !important;
}

/* Timeline component */
.pipeline-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
}

.pipeline-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.pipeline-timeline-badge {
    position: absolute;
    left: -2.05rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

/* Metrics and Dashboard Widgets */
.dashboard-kpi-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.dashboard-kpi-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.weighted-kpi {
    background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%);
    border: 1px solid #c7d2fe;
}

/* Glassmorphism settings card */
.settings-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
}
