/* =====================================================
   SEGUIMIENTO-OC: ESTILOS MODAL ARRIENDOS
   ===================================================== */

/* Modal de Arriendo */
#modalArriendo .modal-header.bg-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: white;
}

#modalArriendo .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Tipo de Equipo - Botones grandes */
#grupoTipoEquipo .btn {
    padding: 15px 10px;
    font-size: 0.85rem;
    border-width: 2px;
}

#grupoTipoEquipo .btn i {
    font-size: 1.5rem;
}

#grupoTipoEquipo .btn-check:checked + .btn-outline-secondary {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

/* Cards del formulario */
#modalArriendo .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

#modalArriendo .card-header {
    border-bottom: none;
    font-weight: 600;
    font-size: 0.9rem;
}

#modalArriendo .card-header.bg-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

#modalArriendo .card-header.bg-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
}

/* Sección de horas (condicional) */
#seccionHoras {
    border: 2px dashed #3498db;
    background-color: #ebf5fb !important;
}

#seccionHoras h6 {
    margin-bottom: 15px;
}

/* Condición del equipo - Botones */
#modalArriendo input[name="condicionEntrega"] + .btn {
    flex: 1;
}

/* Zona de upload de fotos */
#modalArriendo .upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

#modalArriendo .upload-zone:hover {
    border-color: #f39c12;
    background: #fef9e7;
}

#modalArriendo .upload-zone.has-photos {
    border-color: #27ae60;
    background: #e8f8f0;
}

/* Preview de fotos */
#previewFotosArriendo .img-thumbnail {
    border: 2px solid #dee2e6;
}

#previewFotosArriendo .position-relative:hover .img-thumbnail {
    border-color: #f39c12;
}

/* Transiciones suaves para secciones */
#seccionHoras,
#seccionOperador,
#camposOperador,
#campoPatente,
#campoMarcaModelo,
#campoCombustible {
    transition: all 0.3s ease;
}

/* Responsive - Móvil */
@media (max-width: 576px) {
    #grupoTipoEquipo {
        flex-direction: column;
    }
    
    #grupoTipoEquipo .btn {
        border-radius: 8px !important;
        margin-bottom: 8px;
    }
    
    #modalArriendo .modal-body {
        padding: 15px;
    }
    
    #modalArriendo .card-body {
        padding: 15px;
    }
    
    #modalArriendo input[name="condicionEntrega"] + .btn {
        font-size: 0.75rem;
        padding: 8px 5px;
    }
}

/* Badge de arriendo en tabla de productos */
.badge-arriendo {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-servicio {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-bienes {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Indicador visual cuando se selecciona tipo */
#grupoTipoEquipo .btn-check:checked + .btn {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Form labels con asterisco */
.form-label .text-danger {
    font-weight: bold;
}

/* Input groups mejorados */
#modalArriendo .input-group-text {
    background: #f8f9fa;
    font-size: 0.85rem;
}

/* Switch de operador */
#seccionOperador .form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

#seccionOperador .form-switch .form-check-input:checked {
    background-color: #27ae60;
    border-color: #27ae60;
}
