/* === LABEL ESTILIZADO === */
label.nuevo-lab {
	font-weight: 600;
	color: #374151;
	display: block;
}

label.nuevo-lab-check {
	font-weight: 600;
	color: #374151;
}

/* === INPUT Y SELECT PERSONALIZADOS OSCUROS === */
input.form-dark, select.form-control {
	width: 100%;
	padding: 0.55rem 0.9rem;
	font-size: 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #1e293b;
	transition: border-color 0.2s ease;
}

/* === SELECT2 AJUSTE ANCHO === */
.select2-container {
	width: 100% !important;
}

/* === FOCUS ESTILIZADO PARA INPUT Y SELECT === */
input.form-dark:focus, select.form-control:focus {
	border-color: #00cfff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.2);
}

/* === CHECKBOX Y RADIO PERSONALIZADO === */
.form-check-modern .custom-control-input:checked ~ .custom-control-label::before
	{
	background-color: #00cfff;
	border-color: #00cfff;
}

.form-check-modern .custom-control-label {
	font-weight: 500;
	color: #374151;
}

.form-check-modern .custom-control-input ~ .custom-control-label::before
	{
	background-color: #fff;
	border: 1px solid #6b7280;
	box-shadow: none;
}

/* === MEDIA QUERY RESPONSIVO === */
@media ( max-width : 768px) {
	.form-group {
		margin-bottom: 0.8rem;
	}
	.form-control {
		font-size: 1rem;
		padding: 0.5rem 1rem;
	}
	label, label.nuevo-lab {
		font-size: 0.9rem;
		margin-bottom: 0.1rem;
	}
	label.nuevo-lab-check {
		font-size: 0.9rem;
		margin-bottom: 0.1rem;
	}
	.custom-control.custom-checkbox {
		flex-direction: row;
		align-items: center;
	}
	.custom-control-label {
		font-size: 0.9rem;
	}
	.custom-control-input {
		width: 1rem;
		height: 1rem;
	}
}
/* CONTENEDOR */
.custom-switch {
	padding-left: 2.6rem;
}

/* FONDO */
.custom-switch .custom-control-label::before {
	left: -0.2rem;
	width: 2.4rem;
	height: 1.3rem;
	background-color: #d1d5db;
	border-radius: 999px;
}

/* CÍRCULO (centrado perfecto) */
.custom-switch .custom-control-label::after {
	top: 0.3rem;
	width: 1.1rem;
	height: 1.1rem;
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

/* ACTIVO */
.custom-switch .custom-control-input:checked ~ .custom-control-label::after
	{
	transform: translateX(1.1rem);
}

/* HOVER */
.custom-switch .custom-control-label:hover::before {
	border-color: #00cfff;
}

/* FOCUS */
.custom-switch .custom-control-input:focus ~ .custom-control-label::before
	{
	box-shadow: 0 0 0 0.2rem rgba(0, 207, 255, 0.25);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before
	{
	background-color: #00cfff;
	border-color: #00cfff;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.85);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.loading-content {
	text-align: center;
	padding: 25px 40px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}