:root {
	--gtech-navy: #173d59;
	--gtech-blue: #285b7b;
	--gtech-blue-dark: #1e4762;
	--gtech-teal: #4386a4;
	--gtech-coral: #c93f5d;
	--gtech-charcoal: #34383b;
	--gtech-muted: #718096;
	--gtech-canvas: #f3f7fa;
	--gtech-border: #dce6ed;
	--gtech-soft-blue: #eaf3f7;
}

/* Shared controls */
a {
	color: var(--gtech-blue);
}

a:hover {
	color: var(--gtech-teal);
}

.btn-primary,
.badge-primary,
.label-primary,
.page-item.active .page-link {
	background-color: var(--gtech-blue) !important;
	border-color: var(--gtech-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: var(--gtech-blue-dark) !important;
	border-color: var(--gtech-blue-dark) !important;
	box-shadow: 0 0 0 3px rgba(67, 134, 164, 0.2) !important;
}

.btn-secondary {
	background-color: var(--gtech-teal) !important;
	border-color: var(--gtech-teal) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
	background-color: var(--gtech-blue) !important;
	border-color: var(--gtech-blue) !important;
}

.text-primary,
.btn-link,
.breadcrumb-item a,
.page-leftheader .breadcrumb-item.active,
.page-leftheader .breadcrumb-item.active a {
	color: var(--gtech-blue) !important;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single {
	border-color: var(--gtech-border);
	border-radius: 7px;
}

.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--gtech-teal) !important;
	box-shadow: 0 0 0 3px rgba(67, 134, 164, 0.14) !important;
}

/* Dashboard shell */
body.app {
	background: var(--gtech-canvas);
	color: var(--gtech-charcoal);
}

.app-header {
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--gtech-border);
	box-shadow: 0 5px 18px rgba(23, 61, 89, 0.06);
}

.app-header .header-icon,
.app-header .nav-link,
.app-sidebar__toggle a {
	color: var(--gtech-blue) !important;
}

/* Topbar filters & actions */
.gtech-topbar .gtech-topbar-filters {
	gap: 14px;
	margin-left: 8px;
	flex-wrap: wrap;
}

.gtech-topbar .gtech-filter-field {
	display: flex;
	flex-direction: column;
	min-width: 180px;
}

.gtech-topbar .gtech-filter-field label {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gtech-muted);
	line-height: 1;
}

.gtech-topbar .gtech-filter-field .form-control,
.gtech-topbar .gtech-filter-field .custom-select {
	height: 38px;
	min-width: 200px;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--gtech-border);
	border-radius: 8px;
	background: #fff;
	color: var(--gtech-charcoal);
	font-size: 13px;
	text-align: left;
	box-shadow: none;
}

.gtech-topbar .gtech-filter-field .form-control:focus,
.gtech-topbar .gtech-filter-field .custom-select:focus {
	border-color: var(--gtech-teal);
	box-shadow: 0 0 0 3px rgba(67, 134, 164, 0.14);
}

.gtech-topbar .gtech-topbar-actions {
	gap: 6px;
}

.gtech-topbar .app-sidebar__toggle .header-icon,
.gtech-topbar .header-fullscreen .header-icon,
.gtech-topbar .header-notify .header-icon {
	width: 38px;
	height: 38px;
	padding: 8px;
	border-radius: 50%;
	background: var(--gtech-soft-blue);
	border: 1px solid var(--gtech-border);
	box-shadow: none;
	fill: var(--gtech-blue);
	color: var(--gtech-blue) !important;
}

.gtech-topbar .header-notify .fa-bell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--gtech-soft-blue);
	border: 1px solid var(--gtech-border);
	font-size: 16px !important;
	color: var(--gtech-blue) !important;
	padding: 0 !important;
}

.gtech-topbar .profile-dropdown .avatar {
	border: 2px solid var(--gtech-border);
	box-shadow: 0 2px 8px rgba(23, 61, 89, 0.1);
}

.app-sidebar .side-menu__icon,
.app-sidebar .side-menu .side-menu__icon {
	width: 22px !important;
	height: 22px !important;
	margin-right: 12px;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	opacity: 0.95;
}

@media (max-width: 991px) {
	.gtech-topbar .gtech-topbar-filters {
		display: none !important;
	}
}

.app-sidebar {
	background: linear-gradient(180deg, var(--gtech-navy) 0%, #102c41 100%) !important;
	border-right: 0;
	box-shadow: 8px 0 24px rgba(20, 51, 72, 0.12);
}

.app-sidebar__logo {
	background: #fff !important;
	border-bottom: 1px solid var(--gtech-border);
}

.app-sidebar__logo .header-brand-img,
.app-header .header-brand-img {
	max-width: 190px;
	max-height: 48px;
	object-fit: contain;
}

.app-sidebar__user {
	border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.app-sidebar__user .user-info h5,
.app-sidebar__user-name,
.app-sidebar .side-menu__label,
.app-sidebar .side-menu__icon,
.app-sidebar .angle {
	color: #dceaf2 !important;
	fill: currentColor;
}

.app-sidebar .side-menu__item {
	margin: 3px 12px;
	border-radius: 8px;
	color: #dceaf2;
}

.app-sidebar .side-menu__item:hover,
.app-sidebar .side-menu__item:focus,
.app-sidebar .side-menu__item.active,
.app-sidebar .slide.is-expanded > .side-menu__item {
	background: rgba(67, 134, 164, 0.26) !important;
	color: #fff !important;
}

.app-sidebar .side-menu__item:hover .side-menu__label,
.app-sidebar .side-menu__item:hover .side-menu__icon,
.app-sidebar .side-menu__item.active .side-menu__label,
.app-sidebar .side-menu__item.active .side-menu__icon {
	color: #fff !important;
	fill: #fff !important;
}

.app-sidebar .side-menu__item.active {
	box-shadow: inset 3px 0 0 var(--gtech-coral);
}

.app-sidebar .slide-menu {
	background: rgba(7, 29, 43, 0.28);
	border-radius: 0 0 8px 8px;
}

.app-sidebar .slide-item {
	color: #bcd0dc;
}

.app-sidebar .slide-item:hover,
.app-sidebar .slide-item.active {
	color: #fff !important;
}

.page-title {
	color: var(--gtech-navy);
	font-weight: 700;
}

.card {
	border: 1px solid rgba(220, 230, 237, 0.9);
	border-radius: 12px;
	box-shadow: 0 7px 22px rgba(23, 61, 89, 0.06);
}

.card-header {
	border-bottom-color: var(--gtech-border);
	background: #fff;
}

.card-header:before {
	background-color: var(--gtech-teal) !important;
}

.card-title {
	color: var(--gtech-navy);
	font-weight: 700;
}

.table thead th {
	background: var(--gtech-soft-blue);
	color: var(--gtech-navy);
	border-bottom-color: var(--gtech-border);
}

.table-hover tbody tr:hover {
	background-color: #f7fafc;
}

.dropdown-menu {
	border-color: var(--gtech-border);
	box-shadow: 0 12px 30px rgba(23, 61, 89, 0.13);
}

#back-to-top {
	background: var(--gtech-blue) !important;
}

/* Login */
body.gtech-auth {
	background:
		radial-gradient(circle at 12% 18%, rgba(67, 134, 164, 0.34), transparent 28%),
		radial-gradient(circle at 88% 82%, rgba(201, 63, 93, 0.14), transparent 25%),
		linear-gradient(135deg, #102c41 0%, var(--gtech-navy) 48%, var(--gtech-blue) 100%) !important;
}

.gtech-auth .box div {
	border-color: rgba(255, 255, 255, 0.08);
}

.gtech-login-page,
.gtech-login-page .page-content {
	min-height: 100vh;
}

.gtech-login-row {
	min-height: 100vh;
	padding: 40px 0;
}

.gtech-login-card {
	position: relative;
	z-index: 2;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 18px;
	box-shadow: 0 25px 60px rgba(5, 24, 37, 0.3);
	color: var(--gtech-charcoal);
	overflow: hidden;
}

.gtech-login-card:before {
	content: "";
	display: block;
	height: 5px;
	background: linear-gradient(90deg, var(--gtech-blue), var(--gtech-teal), var(--gtech-coral));
}

.gtech-login-card .card-body {
	padding: 38px 34px 30px;
}

.gtech-login-logo {
	display: inline-block;
	width: 230px;
	max-width: 85%;
	height: auto;
	margin-bottom: 30px;
}

.gtech-login-card h2 {
	color: var(--gtech-navy);
	font-size: 1.8rem;
}

.gtech-login-subtitle {
	color: var(--gtech-muted);
}

.gtech-login-card .input-group-text {
	background: var(--gtech-soft-blue);
	border: 1px solid var(--gtech-border);
	border-right: 0;
	color: var(--gtech-blue);
}

.gtech-login-card .form-control {
	height: 48px;
	background: #fff;
	border-color: var(--gtech-border) !important;
}

.gtech-login-card .input-group:focus-within .input-group-text,
.gtech-login-card .input-group:focus-within .form-control {
	border-color: var(--gtech-teal) !important;
}

.gtech-login-card .btn-primary {
	min-height: 48px;
	border-radius: 7px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.gtech-login-intro {
	position: relative;
	z-index: 1;
	max-width: 500px;
	text-align: center;
	color: #fff;
}

.gtech-login-intro img {
	max-width: 92%;
	height: auto;
	border-radius: 18px;
	filter: drop-shadow(0 20px 30px rgba(5, 24, 37, 0.28));
}

.gtech-login-intro h3 {
	margin-top: 22px;
	color: #fff;
	font-weight: 700;
}

.gtech-login-intro p {
	max-width: 440px;
	margin: 10px auto 0;
	color: rgba(255, 255, 255, 0.74);
	line-height: 1.7;
}

@media (max-width: 767px) {
	.gtech-login-row {
		padding: 24px 8px;
	}

	.gtech-login-card .card-body {
		padding: 30px 18px 24px;
	}
}

/* Global loader */
#global-loader {
	background: rgba(243, 247, 250, 0.92) !important;
}

#global-loader img {
	filter: none;
}
