/* Estilos principales y generales */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f4f4;
	font-size: 16px;
	line-height: 1.5;
}

/* Mejoras para dispositivos táctiles */
button {
	min-height: 44px;
	min-width: 44px;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Scroll suave para todos los elementos */
* {
	-webkit-overflow-scrolling: touch;
}

/* Prevenir zoom en focus en iOS */
input, select, textarea {
	font-size: 16px;
}

/* Tipografía mejorada para móvil */
h1 {
	font-size: 1.8em;
	line-height: 1.2;
	margin: 20px 0;
}

h2 {
	font-size: 1.5em;
	line-height: 1.3;
	margin: 18px 0 15px 0;
}

h3 {
	font-size: 1.3em;
	line-height: 1.3;
	margin: 15px 0 12px 0;
}

h4 {
	font-size: 1.2em;
	margin: 12px 0 10px 0;
}

p {
	line-height: 1.6;
	margin: 10px 0;
}

/* Contenedor de contenido principal */
.main-content {
	margin-left: 220px;
	padding: 30px;
	padding-bottom: 80px; /* Espacio para el footer */
	transition: margin-left 0.3s;
	min-height: calc(100vh - 80px);
}

/* Loading inicial */
.initial-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	gap: 20px;
}

.loading-spinner {
	width: 60px;
	height: 60px;
	border: 6px solid #f3f3f3;
	border-top: 6px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

.initial-loading p {
	font-size: 1.2em;
	color: #667eea;
	font-weight: 500;
	margin: 0;
}

/* Footer de la aplicación */
.app-footer {
	position: fixed;
	bottom: 0;
	left: 220px; /* Alineado con el sidebar */
	right: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 30px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 100;
	transition: left 0.3s;
}

.app-footer p {
	margin: 0;
	text-align: center;
	font-size: 0.9em;
	line-height: 1.4;
}

.app-footer strong {
	font-weight: 600;
}

.app-footer #app-version {
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 500;
}

.app-footer .separator {
	margin: 0 10px;
	opacity: 0.6;
}

.app-footer .data-source-badge {
	background: rgba(255, 255, 255, 0.25);
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 0.8em;
	font-weight: 500;
	display: inline-block;
	transition: all 0.3s ease;
}

.app-footer .data-source-badge.connected {
	background: rgba(16, 185, 129, 0.3);
}

.app-footer .data-source-badge.error {
	background: rgba(239, 68, 68, 0.3);
}
