/* =============================================
   MODAL DARK GLASS — Estilos globales
   Aplica a todos los #createEditModal / .modal-dark
   ============================================= */

.modal-dark .modal-content,
#createEditModal .modal-content {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.50);
    color: #fff;
}

.modal-dark .modal-header,
#createEditModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.modal-dark .modal-title,
#createEditModal .modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-dark .modal-footer,
#createEditModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Labels */
.modal-dark .form-label,
#createEditModal .form-label {
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.9rem;
    margin-left: 4px;
}

/* Inputs, selects y textareas */
.modal-dark .form-control,
.modal-dark .form-select,
#createEditModal .form-control,
#createEditModal .form-select {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transition: all 0.25s ease;
}

    .modal-dark .form-control::placeholder,
    #createEditModal .form-control::placeholder {
        color: rgba(255, 255, 255, 0.40);
    }

    .modal-dark .form-control:focus,
    .modal-dark .form-select:focus,
    #createEditModal .form-control:focus,
    #createEditModal .form-select:focus {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: #ffcc00;
        box-shadow: 0 0 0 0.15rem rgba(255, 204, 0, 0.20);
        color: #fff !important;
    }

    /* Select — opciones del dropdown del navegador */
    #createEditModal .form-select option {
        background: #1a1a1a;
        color: #fff;
    }

/* Switch / checkbox */
.modal-dark .form-check-input:checked,
#createEditModal .form-check-input:checked {
    background-color: #ffcc00;
    border-color: #ffcc00;
}

.modal-dark .form-check-label,
#createEditModal .form-check-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Botón guardar */
.modal-dark .btn-guardar,
#createEditModal .btn-guardar,
#createEditModal #btnGuardarEntidad {
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-weight: 600;
    color: #111;
    background: #ffcc00;
    transition: all 0.3s ease;
}

    #createEditModal #btnGuardarEntidad:hover {
        background: #ffd633;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(255, 204, 0, 0.30);
    }

/* Botón cancelar */
#createEditModal [data-bs-dismiss="modal"] {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
}

/* Input file */
#createEditModal input[type="file"].form-control {
    padding: 8px 12px;
}

/* Btn-close blanco ya está con btn-close-white, pero por si acaso */
#createEditModal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

/* Input de búsqueda tipo search-youtube */
#createEditModal [id$="_input"] {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* Sugerencias dropdown */
#createEditModal [id$="_sugerencias"] {
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

    #createEditModal [id$="_sugerencias"] .list-group-item {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.08);
    }

        #createEditModal [id$="_sugerencias"] .list-group-item:hover {
            background: rgba(255, 204, 0, 0.15);
            color: #ffcc00;
        }
