@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Mode Palette Premium */
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-accent: #3b82f6;
  --primary-hover: #2563eb;
  
  /* Semantic Colors for Incidents */
  --inc-leve: #84cc16; /* Light green */
  --inc-medio: #eab308; /* Yellow */
  --inc-moderado: #f59e0b; /* Orange */
  --inc-alto: #ef4444; /* Red */
  --inc-muyalto: #b91c1c; /* Dark Red */
  
  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-family-base: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family-base) !important;
  min-height: 100vh;
}

/* Glass Card Style */
.premium-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Modern Inputs */
.premium-input {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
}

.premium-input:focus {
  border-color: var(--primary-accent) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

/* Modern Buttons */
.premium-btn {
  background-color: var(--primary-accent) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.premium-btn:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

/* Typography Helpers */
.text-muted-premium {
  color: var(--text-muted) !important;
}

/* Badges for Incidents */
.badge-inc {
  padding: 0.35em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-leve { background-color: var(--inc-leve); }
.badge-medio { background-color: var(--inc-medio); }
.badge-moderado { background-color: var(--inc-moderado); }
.badge-alto { background-color: var(--inc-alto); color: #fff; }
.badge-muyalto { background-color: var(--inc-muyalto); color: #fff; }

/* Custom Links */
.premium-link {
  color: var(--primary-accent) !important;
  text-decoration: none !important;
  transition: color 0.3s;
}

.premium-link:hover {
  color: var(--text-main) !important;
}

/* Login Split Layout */
.login-split-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.login-image-section {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-image-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, #0f172a 100%);
}

.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding: 2rem;
}

/* Responsive Login */
@media (max-width: 768px) {
  .login-split-container {
    flex-direction: column;
  }
  .login-image-section {
    flex: 0.4;
    min-height: 250px;
  }
  .login-form-section {
    flex: 0.6;
  }
}

/* Top Bar Responsive */
.top-bar {
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--glass-border);
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
}
.top-bar-icons {
	display: flex;
	align-items: center;
	gap: 15px;
}
.nav-icon {
	color: var(--text-muted);
	font-size: 1.25rem;
	transition: color 0.3s, transform 0.2s;
	display: flex;
	align-items: center;
	text-decoration: none !important;
}
.nav-icon:hover {
	color: var(--primary-accent);
	transform: scale(1.1);
}
.nav-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}
.welcome-text {
	margin-right: 15px;
}

@media (max-width: 768px) {
	.top-bar {
		flex-direction: column;
		padding: 1rem;
		gap: 10px;
	}
	.top-bar-icons {
		width: 100%;
		justify-content: center;
		gap: 20px;
	}
	.welcome-text {
		display: none; /* Ocultar saludo en móviles para ahorrar espacio */
	}
}

/* Modal and Base */
