/* ============================================
 * ESTILOS MEJORADOS PARA KANBAN CRM
 * Diseños modernos y atractivos para tarjetas
 * ============================================ */

/* Estilos para las tarjetas Kanban - Diseño Moderno */
.kanban-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Estilos para el cuadro de estado - Diseño Mejorado */
.estado-cuadro {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Colores vibrantes para diferentes estados */
.estado-1 { 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.estado-2 { 
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.estado-3 { 
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    color: #212529 !important;
}

.estado-4 { 
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.estado-5 { 
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.estado-6 { 
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

/* Estilos para el contenido de las tarjetas */
.kanban-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.kanban-card p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

/* Efecto de borde superior colorido según estado */
.kanban-card.estado-1::before { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.kanban-card.estado-2::before { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.kanban-card.estado-3::before { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.kanban-card.estado-4::before { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.kanban-card.estado-5::before { background: linear-gradient(135deg, #6c757d 0%, #545b62 100%); }
.kanban-card.estado-6::before { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }

/* Estilos para las columnas del kanban */
.kanban-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 600px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kanban-column h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Estilos para el modal de detalles - Diseño Mejorado */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
    padding: 20px;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
    background: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
    background: white;
    border-radius: 0 0 16px 16px;
}

/* Estilos para los botones de acción en el modal */
.btn-cambiar-estado {
    border-radius: 20px;
    font-weight: 600;
    padding: 8px 16px;
    margin: 4px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cambiar-estado:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efectos de animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kanban-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .kanban-card {
        padding: 12px;
    }
    
    .estado-cuadro {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .kanban-card h5 {
        font-size: 14px;
    }
    
    .kanban-card p {
        font-size: 13px;
    }
}
