/* Custom styles for CRM System */

/* Kanban Board Styles */
.kanban-board {
    padding-bottom: 20px;
}

.kanban-column {
    flex-shrink: 0;
}

.kanban-stage {
    min-height: 400px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.lead-card {
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lead-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Sortable styles */
.sortable-ghost {
    opacity: 0.4;
    background: #c8ebfb;
}

.sortable-chosen {
    background: #c8ebfb;
}

.sortable-drag {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Overview cards hover effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Badge customization */
.badge {
    font-size: 0.75em;
}

/* Form styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert customization */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Activity log styles */
.activity-item {
    border-left: 3px solid #0d6efd;
    padding-left: 15px;
    margin-bottom: 15px;
}

.activity-item.manual {
    border-left-color: #198754;
}

.activity-item.stage_change {
    border-left-color: #fd7e14;
}

.activity-item.field_update {
    border-left-color: #6f42c1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    
    .kanban-column {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .kanban-column .card {
        min-width: 100%;
        margin-right: 0;
    }
}

/* Loading indicator */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    font-weight: bold;
}

/* Card header customization */
.card-header {
    background-color: rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
}