/* ===== ESTILOS GENERALES ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

.main-content {
    margin-left: 200px;
    min-height: 100vh;
    width: calc(100vw - 200px);
    overflow-x: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease;
    box-sizing: border-box;
}

.main-content.sidebar-hidden {
    margin-left: 0px;
    width: calc(100vw - 15px);
}

/* Desktop (1025px+) - comportamiento como PC */
@media (min-width: 1025px) {
    .main-content {
        margin-left: 200px;
        width: calc(100vw - 200px);
    }
    
    .main-content.sidebar-hidden {
        margin-left: 0;
        width: 100vw;
    }
}

/* Responsive Design - Large Tablets (comportamiento como PC) */
@media (max-width: 1024px) and (min-width: 901px) {
    .main-content {
        margin-left: 200px !important;
        width: calc(100vw - 200px) !important;
        transition: all 0.3s ease;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .main-content.sidebar-hidden {
        margin-left: 0 !important;
        width: 100vw !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .view-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .kanban-board {
        gap: 15px;
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    .kanban-column {
        /* Ancho calculado para 5 columnas exactas en tablets considerando sidebar */
        width: calc((100vw - 320px) / 5) !important;
        min-width: calc((100vw - 320px) / 5) !important;
        max-width: calc((100vw - 320px) / 5) !important;
        flex: 0 0 auto !important;
    }
    
    .kanban-card {
        padding: 12px;
        font-size: 0.85rem;
        min-height: 220px;
        height: auto;
        margin-bottom: 20px;
    }
    
    .card-actions .btn {
        padding: 5px 9px;
        font-size: 0.75rem;
    }
}

/* Small Tablets - comportamiento móvil */
@media (max-width: 900px) and (min-width: 769px) {
    .main-content {
        margin-left: 0 !important;
        width: 100vw !important;
        transition: all 0.3s ease;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .kanban-board {
        gap: 15px;
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    .kanban-column {
        min-width: 45% !important;
        max-width: 45% !important;
        flex: 0 0 45% !important;
    }
}

@media (max-width: 600px) {
    .main-content {
        margin-left: 0;
        width: 100vw;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Kanban Board Responsive */
    .kanban-board {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .kanban-column {
        min-width: 100%;
        max-height: 400px;
    }
    
    /* Configuration Responsive */
    .config-container {
        padding: 16px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        min-width: 120px;
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .config-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar .container-fluid {
        padding: 0 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .kanban-board {
        padding: 10px;
    }
    
    .kanban-column {
        max-height: 350px;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .config-container {
        padding: 12px;
    }
    
    .tab-content {
        padding: 16px;
    }
}

.view-content {
    padding: 0;
    min-height: calc(100vh - 56px);
    max-width: 100%;
    overflow-x: hidden;
}

#kanbanView {
    display: block;
    max-width: 100%;
    overflow-x: hidden;
}

/* Configuration styles moved to config.css */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* ===== KANBAN BOARD ===== */
.kanban-board {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: calc(100vh - 80px);
    width: 100%;
    /* Mostrar solo 5 columnas a la vez */
    max-width: 100%;
    /* Estilos para la barra de scroll */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

/* Estilos para la barra de scroll en WebKit */
.kanban-board::-webkit-scrollbar {
    height: 12px;
}

.kanban-board::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 6px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 6px;
    border: 2px solid #f7fafc;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Ajustes para cuando el sidebar está oculto */
.main-content.sidebar-hidden .kanban-column {
    /* Ancho calculado para 5 columnas cuando no hay sidebar */
    width: calc((100vw - 120px) / 5);
    min-width: calc((100vw - 120px) / 5);
    max-width: calc((100vw - 120px) / 5);
}

.kanban-column {
    flex: 0 0 auto;
    /* Ancho para mostrar exactamente 5 columnas */
    /* 200px sidebar + 40px padding kanban-board + 80px gaps (4x20px) = 320px */
    width: calc((100vw - 320px) / 5);
    min-width: calc((100vw - 320px) / 5);
    max-width: calc((100vw - 320px) / 5);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 10px 15px;
    border-bottom: 2px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.column-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-header .badge {
    font-size: 0.8em;
}

.cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Scroll más delgado para las columnas */
.cards-container::-webkit-scrollbar {
    width: 6px;
}

.cards-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Reducir tamaño de números de teléfono/WhatsApp en tarjetas */
.kanban-card .small.text-success {
    font-size: 0.73rem !important;
}

/* Estilos del Dashboard movidos a dashboard.css */

/* Header dinámico */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#header-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#header-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .brand-content {
        display: none;
    }
    
    .navbar-brand {
        gap: 0.5rem;
    }
}

/* ===== TARJETAS KANBAN ===== */
.kanban-card {
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 12px 12px 12px;
    margin-bottom: 12px;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: auto;
}

.card-id-badge {
    position: absolute;
    top: -7px;
    left: -7px;
    background-color: #6c757d;
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.card-badge-row {
    position: absolute;
    top: -7px;
    left: -7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.card-badge-row .card-id-badge {
    position: static;
    left: auto;
    top: auto;
}

.kanban-card:hover .card-id-badge {
    opacity: 1;
}

.kanban-card .dropdown.show {
    z-index: 99998 !important;
    position: relative !important;
}

.kanban-card:hover:not(:has(.dropdown.show)) {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    z-index: 1;
    position: relative;
}

.kanban-card:has(.dropdown.show) {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: none;
    z-index: 100 !important;
    position: relative !important;
}

.kanban-card:has(.dropdown.show) .card-actions {
    z-index: 101 !important;
    position: relative !important;
}

.kanban-card:has(.dropdown.show) .card-actions .dropdown {
    z-index: 102 !important;
    position: static !important;
}

.kanban-card.sortable-ghost {
    opacity: 0.5;
    background: #f8f9fa;
}

.card-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.75rem;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.83em;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.4;
}

.text-muted.small {
    font-size: 0.73em;
    color: #6c757d;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.card-status {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 9.6px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-active { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-error { background: #f8d7da; color: #721c24; }

/* Estados específicos para C1 - Sincronizados con badges */
.status-pending_review { background: #ffc107; color: #212529; }
.status-reviewed { background: #28a745; color: white; }
.status-approved { background: #28a745; color: white; }
.status-ready_to_process { background: #007bff; color: white; }

/* Estados específicos para C2 - Sincronizados con badges */
.status-pending_ocr { background: #ffc107; color: #212529; }
.status-ocr_completed { background: #28a745; color: white; }
.status-ready_for_c3 { background: #28a745; color: white; }

/* Estados específicos para C3 - Sincronizados con badges */
.status-waiting_json { background: #6c757d; color: white; }
.status-pending_landing { background: #ffc107; color: #212529; }
.status-landing_created { background: #28a745; color: white; }
.status-client_contacted { background: #17a2b8; color: white; }
.status-ready_for_c4 { background: #007bff; color: white; }
.status-por_contactar { background: #ffc107; color: #212529; }
.status-contactado { background: #28a745; color: white; }

.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.card-actions .btn {
    padding: 4px 8px;
    font-size: 0.75em;
    line-height: 1.2;
}

/* Estilos para badges outline - similar a btn-outline */
.kanban-card .badge.badge-outline-info {
    color: #0dcaf0 !important;
    border: 1px solid #0dcaf0 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-info:hover {
    color: white !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

.kanban-card .badge.badge-outline-success {
    color: #198754 !important;
    border: 1px solid #198754 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-success:hover {
    color: white !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.kanban-card .badge.badge-outline-primary {
    color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-primary:hover {
    color: white !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.kanban-card .badge.badge-outline-warning {
    color: #ffc107 !important;
    border: 1px solid #ffc107 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-warning:hover {
    color: #212529 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

/* Utility class for margin-end spacing */
.me-1 {
    margin-inline-end: 0.20rem !important;
}

/* Cache refresh: 2025-01-09 16:05 - Updated kanban column headers layout with right-aligned counters */

.kanban-card .badge.badge-outline-secondary {
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-secondary:hover {
    color: white !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.kanban-card .badge.badge-outline-success {
    color: #198754 !important;
    border: 1px solid #198754 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-success:hover {
    color: white !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.kanban-card .badge.badge-outline-info {
    color: #0dcaf0 !important;
    border: 1px solid #0dcaf0 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-info:hover {
    color: white !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

.kanban-card .badge.badge-outline-danger {
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    background: transparent !important;
    transition: all 0.15s ease-in-out;
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important;
    padding: 0.18rem 0.4rem !important;
    border-radius: 0.25rem !important;
}

.kanban-card .badge.badge-outline-danger:hover {
    color: white !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Botones de acción junto a badges - tamaño pequeño */
.card-actions .btn-sm {
    padding: 2px 6px;
    font-size: 0.65em;
    line-height: 1;
    border-radius: 0.25rem;
    margin-left: 4px;
}

.card-actions .dropdown-toggle {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 2px 6px;
    font-size: 0.8em;
}

.card-actions .dropdown-toggle:hover:not(.show) {
    color: #495057;
    background-color: #f8f9fa;
}

.card-actions .dropdown-toggle.show {
    color: #495057;
    background-color: #f8f9fa;
}

.card-actions .dropdown-menu {
    font-size: 0.85em;
    min-width: 120px;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 99999 !important;
    position: absolute !important;
    transform: none !important;
}



.card-actions .dropdown-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.8em;
}

.card-actions .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ===== MODALES PERSONALIZADOS ===== */
#addCardModal .modal-dialog,
#editCardModal .modal-dialog {
    max-width: 650px; /* 25% más ancho que el modal-lg estándar (540px) */
    width: 90%;
}

/* Modal de edición sin scroll */
#editCardModal .modal-content {
    /* Removido max-height y overflow-y para eliminar scroll */
}

#editCardModal .modal-body {
    /* Removido max-height y overflow-y para eliminar scroll */
    padding: 1.5rem;
}

/* Modal de agregar tarjeta mantiene scroll si es necesario */
#addCardModal .modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

#addCardModal .modal-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Ajustar inputs para el nuevo tamaño */
#addCardModal .form-control,
#editCardModal .form-control,
#addCardModal .form-select,
#editCardModal .form-select {
    width: 100%;
    margin-bottom: 1rem;
}

#addCardModal .form-label,
#editCardModal .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-actions .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== COLORES DE COLUMNAS ===== */
.column-c1 .column-header { background: #34495e; color: white; } /* Prospecto - Gris azulado oscuro */
.column-c2 .column-header { background: #e67e22; color: white; } /* Contactado - Naranja suave */
.column-c3 .column-header { background: #95a5a6; color: white; } /* No Respondieron - Gris resultado negativo */
.column-c4 .column-header { background: #27ae60; color: white; } /* Vendido - Verde éxito */
.column-c5 .column-header { background: #9b59b6; color: white; } /* Propuesta Enviada - Morado proceso */
.column-c6 .column-header { background: #f39c12; color: white; } /* Negociación - Amarillo crítico */
.column-c7 .column-header { background: #1e8449; color: white; } /* Cerrado Perdido - Gris resultado negativo */
.column-c8 .column-header { background: #95a5a6; color: white; } /* Cerrado Ganado - Verde intenso resultado positivo */

/* ===== BOTONES ===== */
.add-card-btn {
    width: 100%;
    border: 2px dashed #dee2e6;
    background: transparent;
    color: #6c757d;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-card-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0,123,255,0.05);
}

/* ===== NAVBAR ===== */
.navbar {
    background: #2c3e50 !important;
}

/* ===== BARRA DE ESTADÍSTICAS ===== */
.stats-bar {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.85em;
    color: #6c757d;
}

/* ===== ESTADOS DE CARGA Y ERROR ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px;
}

/* ===== MODALES ===== */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.image-preview {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin: 5px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 600;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.sidebar-tabs {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #6c757d;
    transition: all 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.sidebar-tab:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.sidebar-tab.active {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.sidebar-tab i {
    width: 16px;
    text-align: center;
}

.sidebar-tab-content {
    flex: 1;
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.config-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.config-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.config-item {
    margin-bottom: 15px;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item .form-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 8px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    transition: margin-left 0.3s ease;
}

/* Review Status Dropdown Styles */
.review-status-select,
.c1-process-select,
.c2-process-select,
.c3-process-select,
.c4-process-select,
.c5-process-select {
    font-size: 10px !important;
    padding: 0 4px !important;
    height: 18px !important;
    min-height: 26px !important;
    line-height: 1 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    max-width: 140px !important;
    font-weight: 500 !important;
}

.review-status-select:hover,
.c1-process-select:hover,
.c2-process-select:hover,
.c3-process-select:hover,
.c4-process-select:hover,
.c5-process-select:hover {
    border-color: #007bff !important;
    background-color: #e3f2fd !important;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1) !important;
}

.review-status-select:focus,
.c1-process-select:focus,
.c2-process-select:focus,
.c3-process-select:focus,
.c4-process-select:focus,
.c5-process-select:focus {
    outline: none !important;
    border-color: #007bff !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25) !important;
}

.review-status-select option,
.c1-process-select option,
.c2-process-select option,
.c3-process-select option,
.c4-process-select option,
.c5-process-select option {
    padding: 0.25rem !important;
    font-size: 9px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .kanban-board {
        padding: 10px;
        gap: 10px;
    }
    

    
    .kanban-card {
        padding: 10px;
        margin-bottom: 8px;
        font-size: 0.8rem;
        min-height: 120px;
        height: auto;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .card-meta {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    
    .card-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .card-actions .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        flex: 1;
        min-width: 60px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-bar .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .review-status-select,
    .c1-process-select,
    .c2-process-select,
    .c3-process-select,
    .c4-process-select,
    .c5-process-select {
        max-width: 120px !important;
        font-size: 0.7rem !important;
    }
}

/* ===== ESTILOS PERSONALIZADOS PARA ETIQUETAS DE ESTADO ===== */
.kanban-card .badge {
    font-weight: normal !important;
    font-size: calc(0.75rem - 1px) !important; /* Reducir 1px del tamaño base */
}

/* API configuration styles moved to config.css */

/* ===== ESTILOS MEJORADOS PARA NOMBRES DE ARCHIVOS DE IMÁGENES EN C2 ===== */
.c2-image-container {
    position: relative;
    overflow: hidden;
}



.c2-click-hint {
    font-size: 0.6rem !important;
    color: #718096 !important;
    font-style: italic !important;
    margin-top: 2px !important;
    padding: 1px 4px !important;
    background-color: rgba(237, 242, 247, 0.8) !important;
    border-radius: 3px !important;
    text-align: center !important;
    transition: opacity 0.2s ease !important;
}

.c2-image-container:hover .c2-click-hint {
    opacity: 0.7 !important;
}

/* Estilos específicos para las clases de Tailwind usadas en modal-tabs.js */
.text-xs {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.text-gray-700 {
    color: #4a5568 !important;
}

.text-gray-500 {
    color: #718096 !important;
}

.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Mejoras para el contenedor de imágenes */
.bg-white.rounded-lg.p-3.shadow-sm {
    transition: all 0.2s ease !important;
    border: 1px solid #e2e8f0 !important;
}

.bg-white.rounded-lg.p-3.shadow-sm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e0 !important;
}

/* ===== ESTILOS PARA NOTIFICACIONES TOAST ===== */
.toast-notification {
    z-index: 100001 !important;
    max-width: 400px !important;
    min-width: 300px !important;
    pointer-events: auto !important;
    opacity: 0.95 !important;
    visibility: visible !important;
    backdrop-filter: blur(10px) !important;
}

.toast-notification.show {
    transform: translateX(0) !important;
}

.toast-notification.hide {
    transform: translateX(100%) !important;
}

/* Scrollbar personalizado para modal de edición */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* ===== ESTILOS PARA TARJETAS KANBAN ===== */

.card-title.mb-2 {
    margin-top: -11px;
}

/* ===== ESTILOS PARA INDICADORES SLA ===== */

.sla-indicator {
    position: absolute;
    top: -13px;
    right: -8px;
    z-index: 10;
}

.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 9.6px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: pulse-subtle 2s infinite;
}

.sla-badge i {
    font-size: 8px;
}

.sla-time {
    margin-left: 4px;
    font-weight: 500;
    opacity: 0.9;
}

/* Estados SLA */
.sla-on-time {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.sla-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
    animation: pulse-warning 1.5s infinite;
}

.sla-overdue {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    animation: pulse-danger 1s infinite;
}

/* Animaciones */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse-warning {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.02);
    }
}

@keyframes pulse-danger {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% { 
        opacity: 0.95; 
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    }
}

/* Responsive para indicadores SLA */
@media (max-width: 768px) {
    .sla-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .sla-badge i {
        font-size: 7px;
    }
}

/* ===== Pestaña Trial (C5) ===== */
#trial-content .trial-schedule-input {
    height: 26px;
    line-height: 1;
}

#trial-content .trial-send-btn {
    height: 26px;
}