:root {
	--primary-color: #1f5fbf;
	--secondary-color: #163f8a;
	--light-color: #f6f9ff;
	--dark-color: #0f1f3a;
	--admin-gradient: linear-gradient(165deg, #2680b9 0%, #2980b9 65%);
	--admin-gold: rgb(212 175 55 / 1);
	--admin-glass: rgb(253 253 253);
	--admin-surface: rgba(255, 255, 255, 0.06);
}
.image-preview {
	width: 100%;
	max-height: 200px;
	object-fit: contain;
	margin-top: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
::placeholder {
	color: #ccc !important;
	font-style: italic;
	font-size: small;
	opacity: 1; /* Make it fully visible */
  }
.CodeMirror {
	border: 1px solid #ced4da;
	height: auto;
}
.width100 {
    width:100%;
}
.btn-default {
    background: #dfebf4;
}
.divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

.divider-line {
	flex-grow: 1;
	height: 1px;
	background-color: #e0e0e0;
}

.divider-text {
	padding: 0 10px;
	color: #6c757d;
	font-size: 0.9rem;
}

.illustration {
	width: 80%;
	margin-bottom: 30px;
}
.image-preview {
	width: 100%;
	max-height: 200px;
	object-fit: contain;
	margin-top: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.CodeMirror {
	border: 1px solid #ced4da;
	height: auto;
}
.seo-meta-block {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}
.seo-meta-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seo-meta-header:hover {
    background-color: #e9ecef;
}
.seo-meta-content {
    padding: 15px;
    display: none; /* Hidden by default */
}
.seo-meta-toggle-icon {
    transition: transform 0.3s ease;
}
.seo-meta-block.expanded .seo-meta-toggle-icon {
    transform: rotate(180deg);
}
.CodeMirror {
	min-height: 30px !important;
}
.app-sidebar {
	--lte-sidebar-color: #ffffff !important;
	--bs-border-radius: none;
	--bs-nav-pills-link-active-bg: #144a9a;
	--lte-sidebar-submenu-active-bg: #ffffff;
	background: var(--admin-gradient) !important;
	--bs-nav-pills-link-active-color : #000000;
	color: #e5e7eb !important;
	border-right: 1px solid rgba(212, 175, 55, 0.18);
	box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
	position: relative;
	overflow: hidden;
	font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.sidebar-wrapper .nav-treeview>.nav-item>.nav-link:hover {
    background: #ffffffe0 !important;
}
a.nav-link.active {
    background: #ffffff !important;
}
.app-sidebar::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12), transparent 45%),
		radial-gradient(circle at 80% 5%, rgba(148, 163, 184, 0.18), transparent 35%);
	pointer-events: none;
}

.app-sidebar .sidebar-wrapper {
	position: relative;
	z-index: 1;
}

.sidebar-profile {
	min-height: 150px;
	position: relative;
	z-index: 1;
}

.profile-image-wrap {
	padding: 0.6rem 0.75rem 0;
}


.profile-banner {
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(15, 23, 42, 0.6));
	color: #f8fafc;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.65rem 0.75rem;
	border-top: 1px solid rgba(248, 250, 252, 0.12);
	border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.profile-name {
	margin: 0;
	font-size: 0.95rem;
}

.profile-role {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	opacity: 0.8;
}
.bg-primary, .card-primary, .text-bg-primary {
	--lte-card-variant-bg : #327386 !important;
}
.sidebar-expand-lg.layout-fixed .app-sidebar {
	max-height: 100%;
}
.app-sidebar .nav-link:focus,
.app-sidebar .nav-link:hover {
	background: #ffffff;
	color: #000;
}
.select2-container--default .select2-selection--single {
	height: 35px !important;            /* Set desired height */
	line-height: 40px !important;       /* Vertically center the text */
	padding: 0 8px;                      /* Optional: inner spacing */
	font-size: 0.875rem;                /* Optional: match Bootstrap sm size */
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
	color : #000000;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 35px !important;
	top: 0px !important;
}

/* Premium light + blue theme overrides */
:root,
[data-bs-theme="light"] {
	--brand-50: #f5f8ff;
	--brand-100: #e7f0ff;
	--brand-200: #cfe2ff;
	--brand-400: #5a8fe6;
	--brand-500: #2f6fd6;
	--brand-700: #1a4fa8;
	--brand-900: #0f2f66;
	--surface-0: #ffffff;
	--surface-1: #f7f9fc;
	--surface-2: #eef3f9;
	--border-soft: #e3eaf6;
	--text-strong: #102748;
	--text-muted: #5f6f86;
	--bs-body-font-family: "Manrope", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
	background: radial-gradient(1200px 600px at 10% -10%, #e8f1ff 0%, transparent 60%),
		radial-gradient(900px 500px at 110% 0%, #dce8ff 0%, transparent 55%),
		linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
	color: var(--text-strong);
}

.app-wrapper {
	background: transparent;
}

.app-main {
	padding-top: 1rem;
}

.app-content {
	padding: 1.5rem 1.25rem 2rem;
}

.app-sidebar .fw-semibold {
	background: linear-gradient(90deg, #dfeaff 0%, #f3f7ff 100%) !important;
	color: var(--brand-900);
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--border-soft);
}


.app-sidebar .nav-treeview .nav-link {
    background: var(--admin-glass);
    color: #2d2c2c !important;
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.95rem;
}


.app-sidebar .nav-treeview .nav-link:hover {
	color: #fff;
}

.app-sidebar .nav-icon,
.app-sidebar .nav-arrow {
	color: var(--admin-gold);
}

.app-sidebar .nav-treeview {
	display: none;
	margin-top: 0.25rem;
	transition: all 0.3s ease;
}


.app-sidebar .has-treeview.menu-open > .nav-treeview {
	display: block;
}

.app-sidebar hr {
	border-color: rgba(248, 250, 252, 0.1);
}

.has-treeview .nav-arrow {
	transition: transform 0.2s ease;
}

.has-treeview.menu-open .nav-arrow {
	transform: rotate(90deg);
}

.app-header,
.app-footer {
	background: rgba(255, 255, 255, 0.9);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
	backdrop-filter: blur(12px);
}

.app-footer {
	color: var(--text-muted);
}

.card {
	border-radius: 18px;
	border: 1px solid var(--border-soft);
	box-shadow: 0 16px 30px rgba(15, 47, 102, 0.08);
}

.card-header {
	background: var(--surface-1);
	border-bottom: 1px solid var(--border-soft);
	color: var(--text-strong);
	font-weight: 600;
}

.btn-primary,
.text-bg-primary {
	background: linear-gradient(135deg, #2f6fd6 0%, #1f5fbf 100%);
	border-color: #1f5fbf;
}

.btn-outline-primary {
	color: #1f5fbf;
	border-color: rgba(31, 95, 191, 0.4);
}

.btn-outline-primary:hover {
	background: var(--brand-100);
	color: var(--brand-700);
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single {
	background-color: #ffffff;
	border-color: #d7e2f2;
	box-shadow: 0 1px 0 rgba(15, 47, 102, 0.04);
}

.form-control:focus,
.form-select:focus {
	border-color: rgba(47, 111, 214, 0.6);
	box-shadow: 0 0 0 0.2rem rgba(47, 111, 214, 0.15);
}

.table thead th {
	background: var(--surface-2);
	color: var(--text-strong);
	font-weight: 600;
	border-bottom: 1px solid var(--border-soft);
}

.badge.bg-primary,
.badge.text-bg-primary {
	background: var(--brand-500) !important;
}
.page-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    padding-bottom: 10px;
}

.settings-card {
	border-radius: 20px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.settings-card-header {
	background: linear-gradient(130deg, rgba(0, 74, 173, 0.08), rgba(15, 23, 42, 0.02));
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
}

.settings-card-title {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	width: 100%;
}

.settings-card-title i {
	font-size: 1.35rem;
	color: #004aad;
	background: rgba(0, 74, 173, 0.1);
	border-radius: 12px;
	padding: 0.55rem;
}

.settings-card-title h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-strong);
}

.settings-card-title p {
	margin: 0.2rem 0 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.setting-row .form-control {
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	padding: 0.6rem 0.75rem;
}

.setting-label {
	font-weight: 600;
	color: var(--text-strong);
	margin-bottom: 0.35rem;
}

.setting-action .btn {
	border-radius: 10px;
	font-weight: 600;
}

.settings-editor textarea {
	min-height: 160px;
	border-radius: 14px;
}

.settings-wide .card-body {
	padding: 1.5rem;
}

.settings-divider {
	height: 1px;
	background: rgba(148, 163, 184, 0.25);
	margin: 1.5rem 0;
}

.setting-group {
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	padding: 1rem;
	background: rgba(248, 250, 252, 0.6);
}

.setting-group-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-strong);
	margin-bottom: 1rem;
}

.hero-image-upload {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.hero-image-preview {
	border: 1px dashed rgba(148, 163, 184, 0.5);
	border-radius: 14px;
	background: rgba(248, 250, 252, 0.8);
	min-height: 120px;
	min-width: 200px;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-image-preview img {
	max-width: 100%;
	max-height: 140px;
	border-radius: 10px;
	object-fit: cover;
}

.hero-image-placeholder {
	color: var(--text-muted);
	font-size: 0.85rem;
}

/* Admin welcome panel */
.admin-welcome-card {
	background: linear-gradient(135deg, rgba(0, 74, 173, 0.12), rgba(15, 23, 42, 0.04));
	border: 1px solid rgba(148, 163, 184, 0.18);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.admin-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.admin-welcome h2 {
	font-weight: 700;
	color: var(--text-strong);
}

.admin-welcome-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(212, 175, 55, 0.18);
	color: #7a5a00;
	font-weight: 700;
}

.admin-welcome-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.admin-welcome-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.admin-welcome-step {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(148, 163, 184, 0.2);
}

.step-title-row {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.admin-welcome-step .step-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 74, 173, 0.12);
	color: #004aad;
	font-size: 1.1rem;
}

.admin-welcome-step .step-title {
	font-weight: 700;
	background: linear-gradient(120deg, #004aad, #0f172a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.admin-welcome-step .step-text {
	font-size: 0.85rem;
	color: var(--text-muted);
}

@media (max-width: 991px) {
	.setting-action {
		margin-top: 0.5rem;
	}
}
