:root {
	--bs-primary: #0b3b6f;
	--bs-primary-rgb: 11, 59, 111;
	--sidebar-bg: #0b1726;
	--sidebar-link-hover: #124b76;
	--page-bg: #e5e7eb;
	--navbar-height: 56px;
	--footer-height: 44px;
	--sidebar-width: 240px;
}

body {
	background-color: var(--page-bg);
	font-family: "IBM Plex Mono", monospace;
	margin: 0;
}

.navbar {
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* Sidebar fija tipo AdminLTE */

.sidebar {
	position: fixed;
	top: var(--navbar-height);
	bottom: 0;
	left: 0;
	background-color: var(--sidebar-bg);
	color: #e5e7eb;
	overflow-y: auto;
	z-index: 1030;
	transition: transform 0.2s ease-in-out;
}

.sidebar .nav-link {
	color: #d1d5db;
	font-size: 0.95rem;
}

.sidebar .nav-link i {
	width: 1.25rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
	background-color: var(--sidebar-link-hover);
	color: #f9fafb;
}

.sidebar .nav-link.parent-active {
	background-color: #5aa7de;
	color: #0b1726;
}

.sidebar .nav-link.parent-active:hover {
	background-color: #78b9e5;
	color: #0b1726;
}

#submenuAdministrar .nav {
	margin-top: 0.35rem;
}

.main-content {
	min-height: calc(100vh - var(--navbar-height));
	margin-top: var(--navbar-height);
	transition: margin-left 0.2s ease-in-out;
}

.secma-card {
	border: 0;
	border-radius: 14px;
	background-color: #ffffff;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(11, 23, 38, 0.22);
}

.secma-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	background: linear-gradient(270deg, #124b76 0%, #1a5f97 45%, #2f7db9 75%, #5aa7de 100%);
}

.secma-modal-header {
	background: linear-gradient(270deg, #124b76 0%, #1a5f97 45%, #2f7db9 75%, #5aa7de 100%);
	color: #ffffff;
	border-bottom: 0;
}

.secma-modal-header .modal-title {
	color: #ffffff;
}

.secma-modal-header .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-add {
	border: 0;
	background-color: #0b2f4a;
	color: #f8fbff;
	font-weight: 600;
	padding: 0.5rem 0.85rem;
}

.btn-add:hover,
.btn-add:focus {
	background-color: #092539;
	color: #ffffff;
}

.btn-add i {
	font-size: 0.95rem;
}

.secma-breadcrumb {
	margin-bottom: 0;
	font-size: 0.9rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.secma-breadcrumb .breadcrumb-item,
.secma-breadcrumb .breadcrumb-item.active,
.secma-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	color: #eaf4ff;
}

.secma-breadcrumb .breadcrumb-item a {
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
}

.secma-breadcrumb .breadcrumb-item a:hover,
.secma-breadcrumb .breadcrumb-item a:focus {
	text-decoration: underline;
}

.secma-card-body {
	padding: 1.4rem;
}

footer.footer-fixed {
	box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.25);
}

/* Comportamiento en escritorio (lg y superior): sidebar visible por defecto */

@media (min-width: 992px) {
	.sidebar {
		width: var(--sidebar-width);
		transform: translateX(0);
	}

	body.sidebar-expanded .main-content {
		margin-left: var(--sidebar-width);
		width: calc(100% - var(--sidebar-width));
	}

	body.sidebar-collapsed .sidebar {
		transform: translateX(-100%);
	}

	body.sidebar-collapsed .main-content {
		margin-left: 0;
		width: 100%;
	}

	footer.footer-fixed {
		left: var(--sidebar-width);
		right: 0;
		width: auto;
	}

	body.sidebar-collapsed footer.footer-fixed {
		left: 0;
	}
}

/* Comportamiento en móviles/tablet: sidebar oculto y se muestra sobre el contenido */

@media (max-width: 991.98px) {
	.sidebar {
		width: var(--sidebar-width);
		transform: translateX(-100%);
	}

	.secma-card-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.secma-breadcrumb {
		justify-content: flex-start;
	}

	body.sidebar-open .sidebar {
		transform: translateX(0);
	}
}
