/* ==============================================
   ESTILOS PARA EL GENERADOR DE HORARIOS
   ============================================== */

.container {
	max-width: 1600px;
	margin: 0 auto;
}

/* Header */
.header {
	background: white;
	padding: 30px;
	border-radius: 12px;
	text-align: center;
	margin-bottom: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header h1 {
	color: #2c3e50;
	font-size: 32px;
	margin-bottom: 10px;
}

.header p {
	color: #7f8c8d;
	font-size: 16px;
}

/* Form groups */
.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #2c3e50;
	font-size: 14px;
}

.form-group select,
.form-group input {
	padding: 10px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	background: white;
	transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tabla del horario */
.horario-table {
	background: white;
}

.horario-table th,
.horario-table td {
	border: 1px solid #dee2e6;
}

/* Scroll horizontal en móviles */
@media (max-width: 768px) {
	.horario-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.horario-table {
		font-size: 10px;
	}

	.horario-table td,
	.horario-table th {
		padding: 6px;
		min-width: 80px;
	}

	.clase-profesor,
	.clase-materia {
		font-size: 9px !important;
	}
}

/* Animaciones */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.horario-container {
	animation: fadeIn 0.5s ease-out;
}

/* Impresión */
@media print {
	body {
		background: white;
		padding: 0;
	}

	.hamburger-menu,
	.horario-controls,
	.header p,
	.estadisticas,
	#mensajesArea {
		display: none !important;
	}

	.header {
		box-shadow: none;
		border: none;
	}

	.horario-table {
		font-size: 8px;
	}

	.horario-table th,
	.horario-table td {
		padding: 4px;
	}

	.clase-info {
		padding: 2px;
	}

	@page {
		size: landscape;
		margin: 1cm;
	}
}

/* Estados de carga */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

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

/* Tooltips */
.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 200px;
	background-color: #2c3e50;
	color: white;
	text-align: center;
	border-radius: 6px;
	padding: 8px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	margin-left: -100px;
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 12px;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Badges para estadísticas */
.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.badge-success {
	background: #d4edda;
	color: #155724;
}

.badge-warning {
	background: #fff3cd;
	color: #856404;
}

.badge-danger {
	background: #f8d7da;
	color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	.container {
		padding: 0 15px;
	}
}

@media (max-width: 576px) {
	.header h1 {
		font-size: 24px;
	}

	.header p {
		font-size: 14px;
	}

	.btn {
		width: 100%;
		margin-bottom: 10px;
	}

	.controls-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Accesibilidad */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Focus visible para navegación por teclado */
button:focus-visible,
select:focus-visible,
input:focus-visible {
	outline: 3px solid #667eea;
	outline-offset: 2px;
}

/* Mejora de contraste */
.high-contrast .horario-table {
	border: 2px solid #000;
}

.high-contrast .horario-table th {
	background: #000;
	color: #fff;
}

.high-contrast .clase-info {
	border: 2px solid #000;
	background: #fff;
}
