/*
 * ---------------------------------------------------------
 * SIGRH
 * Sistema Integral de Gestión de Recursos Humanos
 * Alcaldía del Municipio Guanta
 * ---------------------------------------------------------
 * Archivo: style.css
 * Descripción: Estilos globales del sistema.
 * ---------------------------------------------------------
 */

/* Global */
body {
	font-family: 'Poppins', sans-serif;
}

/* ----------------------------------------------------------
 * Main Navbar
 * ---------------------------------------------------------- */
.main-navbar {
	min-height: 70px;
}

.user-avatar {
	width: 42px;
	height: 42px;
}

/* Sidebar fijo bajo el navbar principal (70px). */
.sidebar-sigrh {
	position: fixed;
	top: 70px;
	left: 0;
	width: 260px;
	height: calc(100vh - 70px);
	background-color: #1ec7c1;
	color: #ffffff;
	overflow-y: auto;
	z-index: 1020;
}

.main-content {
	margin-left: 260px;
	margin-top: 70px;
	padding: 20px;
}

.sidebar-sigrh .nav-link {
	color: #ffffff;
	border-radius: 0.5rem;
	padding: 0.625rem 0.75rem;
}

.sidebar-sigrh .nav-link:hover,
.sidebar-sigrh .nav-link:focus {
	background-color: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.sidebar-sigrh .nav-link .fa-solid,
.sidebar-sigrh .nav-link .fa-regular {
	width: 1.25rem;
	text-align: center;
}

.sidebar-sigrh .submenu .nav-link {
	font-size: 0.95rem;
	padding-left: 1.75rem;
}

.sidebar-sigrh .menu-divider {
	border-color: rgba(255, 255, 255, 0.25);
	opacity: 1;
}

/* En móviles se muestra como bloque normal para mantener accesibilidad. */
@media (max-width: 991.98px) {
	.sidebar-sigrh {
		position: relative;
		top: 0;
		width: 100%;
		height: auto;
		max-height: none;
	}

	.main-content {
		margin-left: 0;
	}
}

/* ----------------------------------------------------------
 * Sidebar - enlace activo
 * ---------------------------------------------------------- */
.sidebar-sigrh .nav-link.active {
	background-color: rgba(255, 255, 255, 0.22);
	font-weight: 600;
}

/* ----------------------------------------------------------
 * Login
 * ---------------------------------------------------------- */
.login-body {
	background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
	min-height: 100vh;
	font-family: 'Poppins', sans-serif;
}

.login-card {
	border-radius: 16px;
	overflow: hidden;
	max-width: 420px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.login-card .input-group-text {
	border-right: 0;
	font-size: 0.95rem;
}

.login-card .form-control {
	border-left: 0;
	font-size: 0.95rem;
}

.login-card .form-control:focus {
	box-shadow: none;
	border-color: #ced4da;
}

.login-card .btn {
	font-size: 0.95rem;
}

.login-card .alert {
	border-radius: 0.5rem;
}

/* ----------------------------------------------------------
 * Footer
 * ---------------------------------------------------------- */
.footer-sigrh {
	margin-top: 2rem;
	border-top: 1px solid #e9ecef;
	background: transparent;
}

/* ----------------------------------------------------------
 * Formularios
 * ---------------------------------------------------------- */
.input-uppercase {
	text-transform: uppercase;
}

/* ----------------------------------------------------------
 * Dashboard - Tarjetas de Indicadores (KPIs)
 * ---------------------------------------------------------- */

/* Tarjetas de indicadores principales */
.transition-card {
	cursor: pointer;
	border-radius: 0.75rem;
}

.transition-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

.transition-card .card-body {
	padding: 1.5rem;
}

/* Asegurar altura uniforme en todas las tarjetas */
.transition-card .card-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
}

/* Iconos grandes en las tarjetas */
.transition-card .rounded-3 {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Números prominentes */
.transition-card .h3 {
	font-size: 2.2rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Etiqueta de estado */
.transition-card .badge {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
}

/* Enlaces en tarjetas */
.transition-card a {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	transition: all 0.2s ease;
}

.transition-card a:hover {
	text-decoration: none !important;
	transform: translateX(4px);
}

/* Tarjetas futuras/deshabilitadas */
.transition-card.bg-light {
	opacity: 0.85;
	cursor: not-allowed;
}

.transition-card.bg-light:hover {
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.transition-card.bg-light .rounded-3 {
	background-color: rgba(108, 117, 125, 0.1) !important;
}

.transition-card.bg-light .text-secondary {
	opacity: 0.7;
}

/* Responsivo: Espaciado en móviles */
@media (max-width: 767.98px) {
	.transition-card .card-body {
		padding: 1.25rem;
		min-height: 180px;
	}

	.transition-card .h3 {
		font-size: 1.8rem;
	}

	.transition-card .rounded-3 {
		width: 70px;
		height: 70px;
	}
}

/* Sección de información del sistema */
.card-header {
	background-color: rgba(13, 110, 253, 0.04);
	border-color: rgba(13, 110, 253, 0.1);
	padding: 1rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0d6efd;
}

.card-header i {
	font-size: 1rem;
	margin-right: 0.5rem;
}
