/* ===========================
   Theme Variables
   =========================== */
:root {
	--fc-slate-900: #0f172a;
	--fc-slate-800: #1e293b;
	--fc-slate-700: #334155;
	--fc-slate-600: #475569;
	--fc-slate-500: #64748b;
	--fc-slate-400: #94a3b8;
	--fc-slate-300: #cbd5e1;
	--fc-slate-200: #e2e8f0;
	--fc-slate-100: #f1f5f9;
	--fc-slate-50: #f8fafc;

	--fc-red-600: #dc2626;
	--fc-red-500: #ef4444;
	--fc-red-100: #fee2e2;
	--fc-red-50: #fef2f2;

	--fc-amber-500: #f59e0b;
	--fc-amber-400: #fbbf24;
	--fc-amber-100: #fef3c7;

	--fc-blue-600: #2563eb;
	--fc-blue-500: #3b82f6;
	--fc-blue-100: #dbeafe;

	--fc-green-600: #16a34a;
	--fc-green-500: #22c55e;
	--fc-green-100: #dcfce7;

	--fc-header-bg: var(--fc-slate-800);
	--fc-header-text: #ffffff;
	--fc-sidebar-bg: var(--fc-slate-900);
	--fc-sidebar-text: var(--fc-slate-300);
	--fc-accent: var(--fc-red-500);
	--fc-accent-hover: var(--fc-red-600);
	--fc-body-bg: var(--fc-slate-50);
	--fc-card-bg: #ffffff;
}

body {
	background-color: var(--fc-body-bg);
	color: var(--fc-slate-800);
}

/* ===========================
   App Header
   =========================== */
#appHeader {
	z-index: 1030;
	min-height: 60px;
	background: var(--fc-header-bg);
	color: var(--fc-header-text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#appHeader .brand-link {
	font-size: 1.2rem;
	font-weight: bold;
	transition: all 0.3s ease;
	color: var(--fc-header-text);
}

#appHeader .brand-link i {
	color: var(--fc-amber-400);
}

#appHeader .brand-link:hover {
	transform: translateY(-1px);
	color: var(--fc-amber-400);
}

#appHeader .sidebar-toggle {
	color: var(--fc-slate-300);
}

#appHeader .sidebar-toggle:hover {
	color: var(--fc-amber-400);
}

#appHeader .btn-link {
	color: var(--fc-slate-300);
	text-decoration: none;
}

#appHeader .btn-link:hover {
	color: var(--fc-header-text);
}

#appHeader .btn-link i.fa-plus,
#appHeader .btn-link i.fa-user {
	color: var(--fc-amber-400);
}

#appHeader .user-info {
	font-size: 0.85rem;
	color: var(--fc-slate-300);
}

#appHeader .user-name {
	color: var(--fc-header-text);
}

/* ===========================
   App Footer
   =========================== */
#appFooter {
	font-size: 0.8rem;
	background: var(--fc-slate-100);
	color: var(--fc-slate-500);
	border-top: 1px solid var(--fc-slate-200);
}

/* ===========================
   Sidebar Menu
   =========================== */
#sidebarMenu {
	width: 280px;
	background: var(--fc-sidebar-bg);
	color: var(--fc-sidebar-text);
	border-right: none;
}

#sidebarMenu .offcanvas-header {
	min-height: auto;
	padding: 0.5rem 1.5rem;
	height: 60px;
	background: var(--fc-sidebar-bg);
	border-bottom: 1px solid var(--fc-slate-700);
}

#sidebarMenu .offcanvas-title {
	font-size: 1.2rem;
	margin: 0;
	font-weight: bold;
	color: var(--fc-header-text);
}

#sidebarMenu .offcanvas-title i {
	color: var(--fc-amber-400);
}

#sidebarMenu .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}

#sidebarMenu .nav-link {
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	margin: 0.25rem 0;
	transition: all 0.3s ease;
	color: var(--fc-slate-400);
}

#sidebarMenu .nav-link:hover {
	transform: translateX(5px);
	background: var(--fc-slate-800);
	color: var(--fc-header-text);
}

#sidebarMenu .nav-link.active {
	background: var(--fc-red-600);
	color: #ffffff;
}

#sidebarMenu .nav-link.active i {
	color: #ffffff;
}

#sidebarMenu .nav-link i {
	color: var(--fc-slate-500);
}

#sidebarMenu .nav-link:hover i {
	color: var(--fc-amber-400);
}

#sidebarMenu hr {
	border-color: var(--fc-slate-700);
	opacity: 0.5;
}

#sidebarMenu .nav-link i {
	width: 20px;
	margin-right: 0.75rem;
}

/* ===========================
   Page Header & Breadcrumbs
   =========================== */
.page-header {
	padding: 0.5rem 1rem;
	border-bottom: 1px solid var(--fc-slate-200);
	background: var(--fc-card-bg);
}

.page-header > div:first-child {
	font-size: 1rem;
	font-weight: 600;
}

.breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 0.8rem;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "/";
}

.breadcrumb-item a {
	text-decoration: none;
	color: var(--fc-blue-600);
}

.breadcrumb-item a:hover {
	color: var(--fc-red-500);
}

@media (max-width: 768px) {
	.page-header > div:first-child {
		font-size: 0.75rem;
	}

	.page-header .d-flex {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.25rem;
	}
}

/* ===========================
   Loading Modal
   =========================== */
.loading-modal .modal-body {
	text-align: center;
	padding: 2rem 1rem;
}

.loading-modal .spinner-border {
	width: 3rem;
	height: 3rem;
	border-width: 0.3em;
	margin-bottom: 1rem;
	color: var(--fc-accent);
}

.loading-modal .loading-message {
	font-size: 1.1rem;
	font-weight: 500;
}

/* ===========================
   Confirm Modal
   =========================== */
.confirm-modal .modal-body {
	text-align: center;
	padding: 2rem 1rem;
}

.confirm-modal .confirm-icon {
	font-size: 3rem;
	color: var(--fc-amber-500);
}

.confirm-modal .confirm-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.confirm-modal .confirm-message {
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

.confirm-modal .confirm-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
}

.confirm-modal .btn {
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
	min-width: 120px;
}

/* ===========================
   Event Offcanvas
   =========================== */
.event-offcanvas {
	width: 550px !important;
	max-width: 100vw;
}

.event-offcanvas .offcanvas-header {
	padding: 1.5rem 2rem 1rem 2rem;
	border-bottom: 1px solid var(--fc-slate-200);
}

.event-offcanvas .offcanvas-title {
	font-weight: 600;
	font-size: 1.4rem;
}

.event-offcanvas .btn-close {
	transition: all 0.3s ease;
}

.event-offcanvas .btn-close:hover {
	transform: scale(1.1);
}

.event-offcanvas .offcanvas-body {
	padding: 2rem;
	overflow-y: auto;
}

.event-offcanvas .form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.event-offcanvas .form-control {
	border-radius: 8px;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
}

.event-offcanvas .form-select {
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.event-offcanvas .form-text {
	font-size: 0.875rem;
}

.event-offcanvas .offcanvas-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 2rem 1.5rem 2rem;
	border-top: 1px solid var(--fc-slate-200);
}

.event-offcanvas .btn-secondary {
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.event-offcanvas .btn-primary {
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: var(--fc-accent);
	border-color: var(--fc-accent);
}

.event-offcanvas .btn-primary:hover {
	background: var(--fc-accent-hover);
	border-color: var(--fc-accent-hover);
	transform: translateY(-1px);
}

.event-offcanvas .invalid-feedback {
	font-size: 0.875rem;
}

.event-offcanvas .anp7-select-selection {
	min-height: calc(1.5em + 1.5rem + 2px);
	padding: 0.75rem 2.25rem 0.75rem 1rem;
	border-radius: 8px;
}

.event-offcanvas .anp7-select-tags {
	padding: 0.375rem 0.25rem;
}

/* ===========================
   User Offcanvas
   =========================== */
.user-offcanvas {
	width: 550px !important;
	max-width: 100vw;
}

.user-offcanvas .offcanvas-header {
	padding: 1.5rem 2rem 1rem 2rem;
	border-bottom: 1px solid var(--fc-slate-200);
}

.user-offcanvas .offcanvas-title {
	font-weight: 600;
	font-size: 1.4rem;
}

.user-offcanvas .btn-close {
	transition: all 0.3s ease;
}

.user-offcanvas .btn-close:hover {
	transform: scale(1.1);
}

.user-offcanvas .offcanvas-body {
	padding: 2rem;
	overflow-y: auto;
}

.user-offcanvas .form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.user-offcanvas .form-control {
	border-radius: 8px;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
}

.user-offcanvas .form-select {
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.user-offcanvas .form-text {
	font-size: 0.875rem;
}

.user-offcanvas .offcanvas-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 2rem 1.5rem 2rem;
	border-top: 1px solid var(--fc-slate-200);
}

.user-offcanvas .btn-secondary {
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.user-offcanvas .btn-primary {
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: var(--fc-accent);
	border-color: var(--fc-accent);
}

.user-offcanvas .btn-primary:hover {
	background: var(--fc-accent-hover);
	border-color: var(--fc-accent-hover);
	transform: translateY(-1px);
}

.user-offcanvas .invalid-feedback {
	font-size: 0.875rem;
}

/* Ensure ANP7 Select dropdowns are clickable in modals and offcanvas */
.modal .anp7-select-dropdown,
.offcanvas .anp7-select-dropdown {
	z-index: 1070 !important;
}

/* Ensure ANP7 Datepicker calendar is above modals and offcanvas */
.modal .anp7-datepicker-calendar,
.offcanvas .anp7-datepicker-calendar {
	z-index: 1070 !important;
}

/* Match ANP7 Select height/padding to offcanvas form controls */
.user-offcanvas .anp7-select-selection,
.equipment-offcanvas .anp7-select-selection {
	min-height: calc(1.5em + 1.5rem + 2px);
	padding: 0.75rem 2.25rem 0.75rem 1rem;
	border-radius: 8px;
}

.user-offcanvas .anp7-select-tags,
.equipment-offcanvas .anp7-select-tags {
	padding: 0.375rem 0.25rem;
}

/* ===========================
   Equipment Offcanvas
   =========================== */
.equipment-offcanvas {
	width: 550px !important;
	max-width: 100vw;
}

.equipment-offcanvas .offcanvas-header {
	padding: 1.5rem 2rem 1rem 2rem;
	border-bottom: 1px solid var(--fc-slate-200);
}

.equipment-offcanvas .offcanvas-title {
	font-weight: 600;
	font-size: 1.4rem;
}

.equipment-offcanvas .btn-close {
	transition: all 0.3s ease;
}

.equipment-offcanvas .btn-close:hover {
	transform: scale(1.1);
}

.equipment-offcanvas .offcanvas-body {
	padding: 0 2rem 2rem 2rem;
	overflow-y: auto;
	position: relative;
}

.equipment-offcanvas .eq-nav-pills {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bs-offcanvas-bg, #fff);
	padding: 1rem 0;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--fc-slate-200);
}

.equipment-offcanvas .eq-nav-pills .nav-link {
	border-radius: 8px;
	padding: 0.5rem 1.25rem;
	font-weight: 500;
	color: var(--fc-text);
	transition: all 0.2s ease;
}

.equipment-offcanvas .eq-nav-pills .nav-link.active {
	background: var(--fc-accent);
	color: #fff;
}

.equipment-offcanvas .form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.equipment-offcanvas .form-control {
	border-radius: 8px;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
}

.equipment-offcanvas .form-select {
	border-radius: 8px;
	padding: 0.75rem 1rem;
}

.equipment-offcanvas .form-text {
	font-size: 0.875rem;
}

.equipment-offcanvas .offcanvas-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 2rem 1.5rem 2rem;
	border-top: 1px solid var(--fc-slate-200);
}

.equipment-offcanvas .btn-secondary {
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.equipment-offcanvas .btn-primary {
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: var(--fc-accent);
	border-color: var(--fc-accent);
}

.equipment-offcanvas .btn-primary:hover {
	background: var(--fc-accent-hover);
	border-color: var(--fc-accent-hover);
	transform: translateY(-1px);
}

.equipment-offcanvas .invalid-feedback {
	font-size: 0.875rem;
}

/* ===========================
   User Dropdown
   =========================== */
.user-dropdown-toggle {
	border: none !important;
	background: none !important;
	transition: all 0.2s ease;
	display: inline-flex !important;
	align-items: center !important;
}

.user-dropdown-toggle:hover {
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1) !important;
}

.user-dropdown-toggle .user-info {
	text-align: left;
	line-height: 1.1;
	vertical-align: middle;
}

.user-dropdown-toggle .user-name {
	font-size: 0.9rem;
	font-weight: 500;
	margin: 0;
	line-height: 1.2;
	color: var(--fc-header-text) !important;
}

.user-dropdown-toggle .company-name {
	font-size: 0.7rem;
	margin: 0;
	line-height: 1.1;
	color: var(--fc-slate-400) !important;
}

.user-dropdown-menu,
.add-dropdown-menu {
	border-radius: 10px;
	padding: 0.5rem 0;
	min-width: 180px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	border: 1px solid var(--fc-slate-200);
}

.user-dropdown-menu .dropdown-header,
.add-dropdown-menu .dropdown-header {
	font-weight: 600;
	padding: 0.5rem 1rem 0.25rem 1rem;
	font-size: 0.85rem;
	border-bottom: none;
}

.user-dropdown-menu .dropdown-header .fw-bold,
.add-dropdown-menu .dropdown-header .fw-bold {
	font-size: 0.9rem;
}

.user-dropdown-menu .dropdown-divider,
.add-dropdown-menu .dropdown-divider {
	margin: 0.25rem 0;
}

.user-dropdown-menu .dropdown-item,
.add-dropdown-menu .dropdown-item {
	padding: 0.6rem 1rem;
	transition: all 0.2s ease;
	border-radius: 0;
	font-weight: 500;
}

.user-dropdown-menu .dropdown-item:hover,
.add-dropdown-menu .dropdown-item:hover {
	transform: translateX(2px);
	background: var(--fc-slate-100);
	color: var(--fc-accent);
}

.user-dropdown-menu .dropdown-item i,
.add-dropdown-menu .dropdown-item i {
	width: 16px;
	text-align: center;
}

/* ===========================
   Toastr Styling
   =========================== */
#toast-container {
	z-index: 10000 !important;
	top: 80px !important;
	right: 20px !important;
	position: fixed !important;
}

#toast-container .toast,
#toast-container > div,
#toast-container .toast-success,
#toast-container .toast-error,
#toast-container .toast-warning,
#toast-container .toast-info {
	opacity: 1 !important;
	filter: none !important;
}

#toast-container > div {
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	margin-bottom: 10px !important;
	padding: 15px 20px !important;
	min-width: 300px !important;
	max-width: 400px !important;
	position: relative !important;
	opacity: 1 !important;
	background-image: none !important;
	padding-left: 20px !important;
}

#toast-container > div .toast-title {
	font-weight: 600 !important;
	font-size: 14px !important;
	margin-bottom: 4px !important;
	line-height: 1.3 !important;
	color: inherit !important;
}

#toast-container > div .toast-message {
	font-size: 13px !important;
	line-height: 1.4 !important;
	margin-top: 2px !important;
	color: inherit !important;
}

#toast-container > div .toast-progress {
	height: 4px !important;
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	border-radius: 0 0 12px 12px !important;
}

#toast-container > div .toast-close-button {
	font-size: 18px !important;
	font-weight: bold !important;
	opacity: 0.8 !important;
	transition: all 0.3s ease !important;
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	background: none !important;
	border: none !important;
	cursor: pointer !important;
	padding: 4px !important;
}

#toast-container > div .toast-close-button:hover {
	opacity: 1 !important;
	transform: scale(1.1) !important;
}

@media (max-width: 768px) {
	#toast-container {
		top: 80px !important;
		right: 15px !important;
		left: 15px !important;
		width: auto !important;
	}

	#toast-container > div {
		margin: 0 0 15px 0 !important;
		width: 100% !important;
		min-width: unset !important;
		max-width: unset !important;
		padding: 14px 18px !important;
	}
}

/* ===========================
   Modern Table
   =========================== */
.table-responsive {
	overflow: visible !important;
	height: 100%;
	position: relative;
	margin: 0;
	border-radius: 8px;
	border: 1px solid var(--fc-slate-200);
	background: var(--fc-card-bg);
}

table.modern-table {
	margin: 0 !important;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.modern-table tbody tr:hover td {
	background-color: inherit;
}

.modern-table thead {
	position: sticky;
	top: 0;
	z-index: 100;
}

.modern-table thead th {
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.875rem 0.75rem;
	text-align: left;
	border-bottom: 2px solid var(--fc-slate-200);
	border-top: none;
	border-left: none;
	border-right: none;
	background: var(--fc-slate-50);
	color: var(--fc-slate-600);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.modern-table thead th:first-child {
	border-top-left-radius: 8px;
}

.modern-table thead th:last-child {
	border-top-right-radius: 8px;
}

.modern-table tbody tr {
	transition: all 0.2s ease;
	border-bottom: 1px solid var(--fc-slate-100);
}

.modern-table tbody tr:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	background-color: var(--fc-slate-50);
}

.modern-table tbody tr:last-child {
	border-bottom: none;
}

.modern-table tbody td {
	padding: 0.875rem 0.75rem;
	border: none;
	vertical-align: middle;
	font-size: 0.875rem;
	background: inherit;
}

/* Action icons styling */
.modern-table .fc-edit-user,
.modern-table .fc-delete-user,
.modern-table .fc-edit-event,
.modern-table .fc-delete-event,
.modern-table .fc-edit-equipment,
.modern-table .fc-delete-equipment {
	padding: 6px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-size: 14px;
	cursor: pointer;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.modern-table .fc-edit-user,
.modern-table .fc-edit-event,
.modern-table .fc-edit-equipment {
	color: #0d6efd;
	background-color: rgba(13, 110, 253, 0.1);
}

.modern-table .fc-edit-user:hover,
.modern-table .fc-edit-event:hover,
.modern-table .fc-edit-equipment:hover {
	color: white;
	background-color: #0d6efd;
}

.modern-table .fc-delete-user,
.modern-table .fc-delete-event,
.modern-table .fc-delete-equipment {
	color: #dc3545;
	background-color: rgba(220, 53, 69, 0.1);
}

.modern-table .fc-delete-user:hover,
.modern-table .fc-delete-event:hover,
.modern-table .fc-delete-equipment:hover {
	color: white;
	background-color: #dc3545;
}

.modern-table a {
	text-decoration: none;
	transition: color 0.2s ease;
	color: var(--fc-blue-600);
}

.modern-table a:hover {
	text-decoration: underline;
	color: var(--fc-accent);
}

.modern-table .autofit {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

/* ===========================
   Toggle Switch
   =========================== */
.toggle-switch-container {
	position: relative;
	display: inline-block;
	width: 80px;
	height: 28px;
}

.toggle-switch-input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.toggle-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 14px;
	transition: all 0.3s ease;
	border: 1px solid #bbb;
	overflow: hidden;
}

.toggle-switch-on,
.toggle-switch-off {
	position: absolute;
	font-size: 8px;
	font-weight: bold;
	color: white;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.3s ease;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.toggle-switch-on {
	left: 4px;
	opacity: 0;
}

.toggle-switch-off {
	right: 2px;
	opacity: 1;
}

.toggle-switch-handle {
	position: absolute;
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-input:checked + .toggle-switch-slider {
	background-color: #0d6efd;
	border-color: #0a58ca;
}

.toggle-switch-input:checked + .toggle-switch-slider .toggle-switch-handle {
	transform: translateX(52px);
}

.toggle-switch-input:checked + .toggle-switch-slider .toggle-switch-on {
	opacity: 1;
}

.toggle-switch-input:checked + .toggle-switch-slider .toggle-switch-off {
	opacity: 0;
}

.toggle-switch-slider:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-switch-input:focus + .toggle-switch-slider {
	box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
}

/* Status Switch */
.status-switch-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	padding: 6px 12px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
	min-width: 80px;
}

.status-switch-container.status-switch-active {
	background: #198754;
	border-color: #198754;
	color: white;
}

.status-switch-container.status-switch-inactive {
	background: #6c757d;
	border-color: #6c757d;
	color: white;
}

.status-switch-container:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status-switch {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	margin: 0;
}

.status-switch-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	pointer-events: none;
}

.active-switch {
	margin-bottom: 0 !important;
}

.active-switch .form-check-input {
	cursor: pointer;
	transform: scale(1.2);
}

.active-switch .form-check-input:focus {
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.modern-table .text-nowrap {
	white-space: nowrap;
	font-weight: 500;
}

.dataTables_paginate .pagination {
	margin: 0;
}

/* ===========================
   Table Header & Footer Controls
   =========================== */
.fc-table-header {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	padding: 0.75rem 1rem;
	background: var(--fc-card-bg);
	border-bottom: 1px solid var(--fc-slate-200);
}

.fc-table-footer {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	padding: 0.75rem 1rem;
	background: var(--fc-card-bg);
	border-top: 1px solid var(--fc-slate-200);
}

.fc-table-search input {
	border: 1px solid var(--fc-slate-300);
	border-radius: 6px;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	min-width: 200px;
	background: var(--fc-card-bg);
}

.fc-table-search input:focus {
	border-color: var(--fc-accent);
	box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.15);
	outline: none;
}

.fc-table-length select {
	border: 1px solid var(--fc-slate-300);
	border-radius: 6px;
	padding: 0.375rem 2.25rem 0.375rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	background: var(--fc-card-bg);
}

.fc-table-length select:focus {
	border-color: var(--fc-accent);
	box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.15);
	outline: none;
}

.fc-table-length label {
	font-size: 0.875rem;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fc-table-info {
	font-size: 0.875rem;
	margin: 0;
}

.fc-pagination .pagination {
	margin: 0;
	gap: 0.125rem;
}

.fc-pagination .page-link {
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
	text-decoration: none;
}

.fc-pagination .page-item.active .page-link {
	background-color: var(--fc-accent);
	border-color: var(--fc-accent);
	color: #ffffff;
}

.fc-pagination .page-item.disabled .page-link {
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.fc-table-header,
	.fc-table-footer {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch !important;
	}

	.fc-table-search input {
		min-width: 100%;
	}

	.fc-pagination {
		justify-content: center;
	}
}

/* ===========================
   Auth Pages (Login / Register)
   =========================== */
.auth-page {
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: linear-gradient(135deg, var(--fc-slate-800) 0%, var(--fc-slate-900) 50%, #1a0a0a 100%);
	color: var(--fc-slate-300);
}

.login-container,
.register-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

.login-card,
.register-card {
	border-radius: 20px;
	padding: 3rem;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--fc-slate-200);
}

.login-card {
	max-width: 450px;
}

.register-card {
	max-width: 550px;
}

.brand-header {
	text-align: center;
	margin-bottom: 2rem;
}

.brand-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	color: var(--fc-accent);
}

.brand-title {
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
	color: #ffffff;
}

.brand-subtitle {
	font-size: 1rem;
	color: var(--fc-slate-400);
}

.auth-page .form-control,
.auth-page .form-select {
	border-radius: 10px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.auth-page .form-control::placeholder {
	color: var(--fc-slate-500);
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--fc-accent);
	box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.2);
	color: #ffffff;
}

.auth-page .form-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--fc-slate-300);
}

.auth-page .form-check-label {
	color: var(--fc-slate-400);
}

.btn-login,
.btn-register {
	font-weight: 600;
	padding: 0.75rem 2rem;
	border-radius: 10px;
	font-size: 1.1rem;
	width: 100%;
	transition: all 0.3s ease;
	background: var(--fc-accent);
	border-color: var(--fc-accent);
	color: #ffffff;
}

.btn-login:hover,
.btn-register:hover {
	transform: translateY(-2px);
	background: var(--fc-accent-hover);
	border-color: var(--fc-accent-hover);
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
	color: #ffffff;
}

.btn-register-link,
.btn-login-link {
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	color: var(--fc-amber-400);
}

.btn-register-link:hover,
.btn-login-link:hover {
	text-decoration: underline;
	color: var(--fc-amber-500);
}

.auth-divider {
	margin: 1.5rem 0;
	text-align: center;
	position: relative;
}

.auth-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
}

.auth-divider span {
	background: transparent;
	padding: 0 1rem;
	color: var(--fc-slate-500);
}

.auth-page .alert {
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.back-link {
	position: absolute;
	top: 2rem;
	left: 2rem;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	color: var(--fc-slate-400);
}

.back-link:hover {
	transform: translateX(-5px);
	color: var(--fc-amber-400);
}

.password-strength {
	margin-top: 0.5rem;
	font-size: 0.85rem;
}

.strength-weak {
	color: #dc3545;
}

.strength-medium {
	color: #ffc107;
}

.strength-strong {
	color: #198754;
}

.terms-text {
	font-size: 0.9rem;
	line-height: 1.4;
}

/* ===========================
   Utilities
   =========================== */
.cursor {
	cursor: pointer;
}

td.autofit,
th.autofit {
	white-space: nowrap;
	width: 1%;
}

/* ===========================
   Profile Page
   =========================== */
#profileAvatar {
	background: var(--fc-red-50);
	border: 2px solid var(--fc-accent);
	color: var(--fc-accent);
	font-weight: 700;
}

.profile-card {
	border-radius: 16px !important;
	border: none !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
	background: var(--fc-card-bg) !important;
}

.profile-card h5 {
	color: var(--fc-slate-700);
}

.profile-card h5 i {
	color: var(--fc-accent);
}

.profile-card .border {
	border-color: var(--fc-slate-200) !important;
}

.profile-card .border h2,
.profile-card .border h4 {
	color: var(--fc-accent);
}

.profile-card-body {
	padding: 2.5rem !important;
}

.profile-title {
	font-weight: 600 !important;
	font-size: 1.75rem !important;
	margin-bottom: 2rem !important;
}

.profile-title i {
	font-size: 2rem !important;
	opacity: 0.9 !important;
}

.profile-form .form-label {
	font-weight: 500 !important;
	margin-bottom: 0.5rem !important;
}

.profile-form .form-control {
	border-radius: 8px !important;
	padding: 0.75rem 1rem !important;
	transition: all 0.3s ease !important;
}

.profile-card-footer {
	padding: 1.5rem 2.5rem !important;
	border-radius: 0 0 14px 14px !important;
	background: var(--fc-slate-50) !important;
	border-top: 1px solid var(--fc-slate-200) !important;
}

.profile-card {
	display: flex !important;
	flex-direction: column !important;
	min-height: auto !important;
}

.profile-card .card-body {
	flex: 1 !important;
}

.profile-submit-btn {
	font-weight: 600 !important;
	padding: 0.875rem 2rem !important;
	border-radius: 10px !important;
	font-size: 1.1rem !important;
	transition: all 0.3s ease !important;
	width: 100% !important;
	background: var(--fc-accent) !important;
	border-color: var(--fc-accent) !important;
	color: #ffffff !important;
}

.profile-submit-btn:hover {
	transform: translateY(-2px) !important;
	background: var(--fc-accent-hover) !important;
	border-color: var(--fc-accent-hover) !important;
	box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
}

.profile-submit-btn:active {
	transform: translateY(0) !important;
}

.profile-submit-btn i {
	font-size: 1rem !important;
}

@media (max-width: 768px) {
	.profile-card-body {
		padding: 1.5rem !important;
	}

	.profile-title {
		font-size: 1.5rem !important;
		margin-bottom: 1.5rem !important;
	}

	.profile-card-footer {
		padding: 1rem 1.5rem !important;
	}
}

/* ===========================
   Error Page
   =========================== */
.min-vh-50 {
	min-height: 50vh;
}

.error-icon {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

.error-page pre {
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* ===========================
   Reporting Page
   =========================== */
.report-page {
	padding: 0;
}

/* Toolbar */
.report-toolbar {
	padding: 1rem 1.25rem;
	background: var(--fc-card-bg);
	border-bottom: 1px solid var(--fc-slate-200);
}

.report-toolbar .form-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--fc-slate-500);
	margin-bottom: 0.25rem;
}

.report-field {
	min-width: 140px;
	flex: 0 1 auto;
}

.report-actions {
	align-self: flex-end;
	padding-bottom: 1px;
}

.report-quick-filters {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--fc-slate-100);
}

.report-quick-btn {
	background: var(--fc-slate-100);
	color: var(--fc-slate-600);
	border: none;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.3rem 0.65rem;
	transition: all 0.2s ease;
}

.report-quick-btn:hover {
	background: var(--fc-accent);
	color: #fff;
}

/* Empty / Loading states */
.report-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	text-align: center;
}

.report-empty-icon {
	font-size: 2.5rem;
	color: var(--fc-slate-300);
	margin-bottom: 1rem;
}

.report-empty-state p {
	color: var(--fc-slate-400);
	font-size: 0.95rem;
	margin: 0;
}

/* Date range badge */
.report-range-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.85rem;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	background: var(--fc-slate-100);
	color: var(--fc-slate-600);
}

/* Stat cards */
.report-stat-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	border-radius: 10px;
	background: var(--fc-card-bg);
	border: 1px solid var(--fc-slate-200);
	transition: box-shadow 0.2s ease;
}

.report-stat-card:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.report-stat-icon {
	font-size: 1.5rem;
	opacity: 0.85;
}

.report-stat-number {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--fc-slate-800);
}

.report-stat-label {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--fc-slate-500);
	margin-top: 0.15rem;
}

/* Report sections */
#reportContent {
	padding: 1.25rem;
}

.report-section {
	border: 1px solid var(--fc-slate-200);
	border-radius: 10px;
	background: var(--fc-card-bg);
	overflow: clip;
}

.report-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--fc-slate-200);
	background: var(--fc-slate-50);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fc-slate-700);
}

.report-section-body {
	padding: 0;
	overflow-x: auto;
}

.report-section .table {
	font-size: 0.85rem;
}

.report-section .table th {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--fc-slate-500);
	border-bottom: 2px solid var(--fc-slate-200);
	padding: 0.6rem 0.75rem;
	white-space: nowrap;
}

.report-section .table td {
	padding: 0.5rem 0.75rem;
	vertical-align: middle;
}

.report-section .dataTables_wrapper {
	padding: 0.5rem 0.75rem;
	overflow-x: auto;
}

.report-section .progress {
	border-radius: 4px;
}

.report-section .progress-bar {
	font-size: 0.7rem;
	background: var(--fc-accent);
}

.report-section .dataTables_wrapper .table-responsive,
.report-section-body.table-responsive {
	overflow-x: auto;
}

/* Report avatars */
.report-avatar-group {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.report-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fc-slate-200);
	color: var(--fc-slate-600);
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1;
	cursor: default;
	border: 2px solid var(--fc-card-bg);
}

.report-avatar:hover {
	background: var(--fc-accent);
	color: #fff;
	z-index: 1;
}

@media (max-width: 768px) {
	.report-toolbar form {
		flex-direction: column;
	}
	.report-field {
		width: 100%;
	}
	.report-stat-card {
		padding: 1rem;
	}
	.report-stat-number {
		font-size: 1.4rem;
	}
}

.btn-group-sm .btn {
	padding: 0.25rem 0.5rem;
	font-size: 0.8rem;
}

.badge {
	font-size: 0.75rem;
	font-weight: 500;
}

.d-grid .btn {
	text-align: left;
	padding: 0.75rem 1rem;
}

.d-grid .btn i {
	width: 1.2rem;
	text-align: center;
}

/* ===========================
   Landing Page
   =========================== */
.landing-page {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	overflow-x: hidden;
	background: #ffffff;
	color: var(--fc-slate-800);
}

.landing-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 1rem 0;
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-brand {
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.3s ease;
	color: var(--fc-slate-800);
}

.landing-brand i {
	color: var(--fc-accent);
}

.landing-brand:hover {
	opacity: 0.85;
	color: var(--fc-slate-800);
}

.landing-nav-link {
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.3s ease;
	color: var(--fc-slate-600);
}

.landing-nav-link:hover {
	color: var(--fc-accent);
}

.btn-landing-primary {
	border: none;
	font-weight: 600;
	border-radius: 8px;
	padding: 0.6rem 1.5rem;
	transition: all 0.3s ease;
	background: var(--fc-accent);
	color: #ffffff;
}

.btn-landing-primary:hover {
	transform: translateY(-2px);
	background: var(--fc-accent-hover);
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
	color: #ffffff;
}

.btn-landing-primary.btn-lg {
	padding: 0.85rem 2.2rem;
	font-size: 1.1rem;
	border-radius: 10px;
}

.btn-landing-outline {
	background: transparent;
	font-weight: 600;
	border-radius: 8px;
	padding: 0.6rem 1.5rem;
	transition: all 0.3s ease;
	color: var(--fc-slate-700);
	border: 2px solid var(--fc-slate-300);
}

.btn-landing-outline:hover {
	transform: translateY(-2px);
	border-color: var(--fc-accent);
	color: var(--fc-accent);
}

.btn-landing-outline.btn-lg {
	padding: 0.85rem 2.2rem;
	font-size: 1.1rem;
	border-radius: 10px;
}

.landing-hero {
	padding: 10rem 0 5rem;
	position: relative;
	background: linear-gradient(180deg, var(--fc-slate-50) 0%, #ffffff 100%);
}

.hero-badge {
	display: inline-block;
	border-radius: 50px;
	padding: 0.5rem 1.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 2rem;
	letter-spacing: 0.02em;
	background: var(--fc-red-50);
	color: var(--fc-accent);
	border: 1px solid var(--fc-red-100);
}

.hero-title {
	font-size: 3.2rem;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 1.5rem;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
	color: var(--fc-slate-900);
}

.hero-title span {
	color: var(--fc-accent);
}

.hero-subtitle {
	font-size: 1.2rem;
	max-width: 620px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
	color: var(--fc-slate-500);
}

.hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 4rem;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
	padding-top: 3rem;
	border-top: 1px solid var(--fc-slate-200);
	max-width: 600px;
	margin: 0 auto;
}

.stat-item {
	text-align: center;
}

.stat-item .stat-number {
	font-size: 1rem;
	color: var(--fc-slate-700);
}

.stat-item .stat-number i {
	color: var(--fc-accent);
}

.stat-item .stat-label {
	color: var(--fc-slate-400);
	font-size: 0.8rem;
}

.landing-features {
	padding: 6rem 0;
	background: #ffffff;
}

.features-title {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--fc-slate-900);
}

.features-subtitle {
	font-size: 1.1rem;
	color: var(--fc-slate-500);
}

.feature-card {
	border-radius: 16px;
	padding: 2rem;
	height: 100%;
	transition: all 0.4s ease;
	border: 1px solid var(--fc-slate-200);
	background: var(--fc-card-bg);
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	border-color: var(--fc-red-100);
}

.feature-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 1.25rem;
	transition: all 0.3s ease;
	background: var(--fc-red-50);
	color: var(--fc-accent);
}

.feature-card:hover .feature-icon {
	transform: scale(1.08);
}

.feature-name {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--fc-slate-800);
}

.feature-desc {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 0;
	color: var(--fc-slate-500);
}

.landing-cta {
	padding: 5rem 0;
	background: var(--fc-slate-900);
	color: #ffffff;
}

.cta-icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: var(--fc-accent);
}

.cta-title {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: #ffffff;
}

.cta-subtitle {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	color: var(--fc-slate-400);
}

.cta-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.cta-note {
	font-size: 0.85rem;
	margin-bottom: 0;
	color: var(--fc-slate-400);
}

.landing-footer {
	padding: 1.25rem 0;
	font-size: 0.85rem;
	background: var(--fc-slate-900);
	color: var(--fc-slate-500);
	border-top: 1px solid var(--fc-slate-700);
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 2.2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-stats {
		gap: 2rem;
	}

	.features-title,
	.cta-title {
		font-size: 1.75rem;
	}

	.landing-hero {
		padding: 8rem 0 4rem;
	}

	.landing-features,
	.landing-cta {
		padding: 4rem 0;
	}
}