.pointer {
	cursor: pointer;
}
label {
	margin-bottom: 1px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type=number] {
	-moz-appearance: textfield;
}
.navbar {
	padding: 0.5rem;
	background: #264571;
}
.navbar-nav .nav-item .nav-link{
	color: white;
}
/* Dropdown menus are position:absolute, so a scrolling table wrapper clips them.
   overflow-x:auto forces overflow-y to auto, so a menu can never escape a wrapper
   that scrolls. Relax it only where a dropdown is actually present; other tables
   keep their horizontal scroll. */
.table-responsive:has(.dropdown-menu),
.overflow-auto:has(.dropdown-menu) {
	overflow: visible;
}

/* ============================================================
   Account panel — attractive sidebar & topbar
   ============================================================ */

:root {
	/* Brand palette — navy & gold */
	--brand-navy: #16233d;
	--brand-navy-2: #24395f;
	--brand-gold: #c9a227;
	--brand-gold-2: #e6c35c;
	--brand-gold-ink: #9a7b1a; /* readable gold on light backgrounds */
	--acc-sidebar-top: #1f3050;
	--acc-sidebar-bottom: #101a30;
}

/* Retheme the template's built-in purple accents to brand navy */
html[data-menu-color="dark"] {
	--ct-menu-condensed-link-bg: var(--brand-navy-2);
	--ct-menu-item-hover-color: var(--brand-gold-2);
	--ct-menu-item-active-color: var(--brand-gold-2);
}

/* ---------- Sidebar shell: deep navy gradient + gold hairline ---------- */
[data-menu-color="dark"] .leftside-menu {
	background: linear-gradient(180deg, var(--acc-sidebar-top) 0%, var(--acc-sidebar-bottom) 100%) !important;
	border-right: 1px solid rgba(201, 162, 39, 0.14);
	box-shadow: 4px 0 24px rgba(10, 15, 30, 0.22);
}

/* ---------- Sidebar user card ---------- */
.leftbar-user {
	margin: 14px 14px 8px;
	padding: 20px 16px 18px;
	text-align: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	backdrop-filter: blur(4px);
}
.leftbar-user a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}
.leftbar-user img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	padding: 2px;
	background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
	box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.leftbar-user a:hover img {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 10px 22px rgba(201, 162, 39, 0.6);
}
.leftbar-user-name {
	display: block;
	margin-top: 12px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
}
.leftbar-user-role {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 10px;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-gold-2);
	background: rgba(201, 162, 39, 0.18);
	border-radius: 20px;
}

/* ---------- Section titles (left edge lines up with nav pills) ---------- */
.side-nav .side-nav-title {
	margin-top: 14px;
	padding-left: 18px;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38) !important;
}

/* ---------- Nav links: pill shape, smooth hover, gradient active ---------- */
.side-nav .side-nav-link {
	position: relative;
	display: flex;
	align-items: center;
	margin: 3px 8px;
	padding: 10px 10px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.72) !important;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.side-nav .side-nav-link i {
	flex: 0 0 24px;      /* fixed icon column so every label lines up */
	width: 24px;
	margin-right: 10px;
	font-size: 1.05rem;
	line-height: 1;
	text-align: center;
	transition: color 0.2s ease, transform 0.2s ease;
}
/* Text label (unclassed span) fills the row; the collapse arrow (a classed
   bi-* span) sits at the far end without stealing the label's space. */
.side-nav .side-nav-link > span:not([class]) {
	flex: 1 1 auto;
	line-height: 1.2;
}
.side-nav .side-nav-link > span[class*="bi-arrow"] {
	flex: 0 0 auto;
	margin-left: auto;
	margin-right: 0 !important;
	font-size: 0.8rem;
	opacity: 0.6;
	transition: transform 0.2s ease;
}
.side-nav .side-nav-item .side-nav-link:hover > span[class*="bi-arrow"] {
	opacity: 1;
}
.side-nav .side-nav-item .side-nav-link:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff !important;
}
.side-nav .side-nav-item .side-nav-link:hover i {
	color: var(--brand-gold-2);
	transform: translateX(2px);
}
.side-nav .side-nav-item.menuitem-active > .side-nav-link {
	background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
	color: var(--brand-navy) !important;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(201, 162, 39, 0.42);
}
.side-nav .side-nav-item.menuitem-active > .side-nav-link i {
	color: var(--brand-navy);
}

/* ---------- Collapsed sidebar: tidy left-aligned icon rail ----------
   The hamburger toggles data-sidenav-size to "sm-hover" (an icon rail that
   expands only while the whole menu is hovered). "condensed" is covered too
   in case that layout option is ever selected. */
html[data-sidenav-size="sm-hover"] .leftside-menu:not(:hover) .side-nav .side-nav-item > .side-nav-link,
html[data-sidenav-size="condensed"] .leftside-menu .side-nav .side-nav-item:not(:hover) > .side-nav-link {
	justify-content: flex-start;
	margin: 3px 6px;
	padding: 10px 0 10px 4px;
}
html[data-sidenav-size="sm-hover"] .leftside-menu:not(:hover) .side-nav .side-nav-item > .side-nav-link i,
html[data-sidenav-size="condensed"] .leftside-menu .side-nav .side-nav-item:not(:hover) > .side-nav-link i {
	flex: 0 0 22px;
	width: 22px;
	margin-right: 0;
}
/* Hide the label (theme only makes it invisible, so it still shoves the icon) */
html[data-sidenav-size="sm-hover"] .leftside-menu:not(:hover) .side-nav .side-nav-item > .side-nav-link span,
html[data-sidenav-size="condensed"] .leftside-menu .side-nav .side-nav-item:not(:hover) > .side-nav-link span {
	display: none;
}
/* Hide the section titles when collapsed so they don't overflow the narrow rail */
html[data-sidenav-size="sm-hover"] .leftside-menu:not(:hover) .side-nav .side-nav-title,
html[data-sidenav-size="condensed"] .leftside-menu .side-nav .side-nav-title {
	display: none;
}

/* ---------- Topbar ---------- */
.navbar-custom {
	box-shadow: 0 1px 12px rgba(20, 29, 51, 0.06);
}
.navbar-custom .topbar-menu > li > .nav-link:not(.nav-user) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: #5b6b82;
	transition: background 0.18s ease, color 0.18s ease;
}
.navbar-custom .topbar-menu > li > .nav-link:not(.nav-user):hover {
	background: rgba(201, 162, 39, 0.14);
	color: var(--brand-gold-ink);
}
.navbar-custom .nav-user {
	border-radius: 12px;
	transition: background 0.18s ease;
}
.navbar-custom .nav-user:hover {
	background: rgba(201, 162, 39, 0.1);
}
.navbar-custom .account-user-avatar img {
	border: 2px solid rgba(201, 162, 39, 0.5);
}
.navbar-custom .nav-user h5 {
	font-weight: 600;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.navbar-custom .nav-user h6 {
	font-size: 0.72rem;
	color: var(--brand-gold-ink);
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Keep the topbar content inside the viewport so the user block never clips */
.navbar-custom .topbar {
	padding-right: 12px;
}
/* Wide schedule table scrolls inside its card instead of stretching the page */
.schedule-table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}

/* ============================================================
   Account panel — attractive forms
   ============================================================ */
.content-page .card {
	border: 0;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(20, 29, 51, 0.06);
}
.content-page .card-body {
	padding: 1.6rem 1.75rem;
}

/* Labels vertically centered with their fields */
.content-page form > .row > .col-md-8 .row.mb-3,
.content-page form .row.mb-3 {
	align-items: center;
}
.content-page .form-label {
	font-weight: 600;
	color: #3a4a63;
	margin-bottom: 0;
}

/* Inputs: softer borders, comfortable height, accent focus ring */
.content-page .form-control,
.content-page .form-select,
.content-page select.form-control {
	border-radius: 10px;
	border: 1px solid #e3e7ef;
	padding: 0.55rem 0.9rem;
	background-color: #fbfcfe;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.content-page .form-control:focus,
.content-page .form-select:focus,
.content-page select.form-control:focus {
	border-color: var(--brand-gold);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.content-page textarea.form-control {
	min-height: 90px;
}
.content-page .form-control::file-selector-button {
	border: 0;
	border-radius: 8px;
	margin: -0.05rem 0.9rem -0.05rem -0.3rem;
	padding: 0.4rem 0.9rem;
	background: rgba(22, 35, 61, 0.08);
	color: var(--brand-navy);
	font-weight: 600;
	transition: background 0.18s ease;
}
.content-page .form-control::file-selector-button:hover {
	background: rgba(201, 162, 39, 0.22);
	color: var(--brand-gold-ink);
}
.content-page small.text-muted {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.78rem;
}

/* Buttons — navy fill with a gold underglow */
.content-page .btn-primary {
	background: linear-gradient(135deg, var(--brand-navy-2), var(--brand-navy));
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 0.5rem 1.4rem;
	font-weight: 600;
	color: #fff;
	box-shadow: 0 4px 14px rgba(22, 35, 61, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.content-page .btn-primary:hover,
.content-page .btn-primary:focus {
	transform: translateY(-1px);
	border-color: var(--brand-gold);
	box-shadow: 0 6px 18px rgba(22, 35, 61, 0.34), 0 0 0 3px rgba(201, 162, 39, 0.22);
}
.content-page .btn-sm {
	padding: 0.3rem 0.7rem;
	box-shadow: none;
}

/* Page title */
.page-title-box .page-title {
	font-weight: 700;
	color: var(--brand-navy);
}
.page-title-box .breadcrumb-item a {
	color: var(--brand-navy-2);
}
.page-title-box .breadcrumb-item.active {
	color: var(--brand-gold-ink);
	font-weight: 600;
}