/* ============================================
   cho.css - Estilos específicos de Conductores
   Basado en Fluent + Material Design
   ============================================ */

/* Tarjetas de estadísticas (pequeñas mejoras) */
.small-box {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.small-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.small-box .icon {
    transition: transform 0.3s;
}
.small-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Botones de acción */
.btn-group .btn {
    border-radius: 20px !important;
    margin-right: 6px;
    padding: 8px 18px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Tabla */
.table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #408cbc;
    color: #2b2d42;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.table tbody tr {
    transition: background-color 0.15s;
}
.table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Dropdown de acciones */
.dropdown-toggle.btn-outline-secondary {
    border-color: #dee2e6;
    background: white;
}
.dropdown-toggle.btn-outline-secondary:hover {
    background: #e9ecef;
}
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: none;
    padding: 8px 0;
}
.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: background 0.1s;
}
.dropdown-item i {
    width: 20px;
    text-align: center;
}
.dropdown-item:hover {
    background-color: #f0f2f5;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header {
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 1.2rem 1.5rem;
}
.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}
.modal-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}
.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 16px 16px;
    background: #f8f9fa;
}
.modal-body legend {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

/* Campos de solo lectura */
input[readonly] {
    background-color: #f8f9fc;
    cursor: default;
}

/* Spinner de carga */
#carCho i {
    color: white;
}
.hide {
    display: none !important;
}

.estado-licencia.vigente .fecha {
    color: #28a745;
    font-weight: 600;
}
.estado-licencia.por-vencer .fecha {
    color: #ffc107;
    font-weight: 600;
}
.estado-licencia.vencida .fecha {
    color: #dc3545;
    font-weight: 600;
}
.estado-licencia small.dias {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}