/* 
 * Admin Dashboard - Consolidated CSS
 * Bootstrap-based Admin Panel Styles
 */

:root {
	/* Color Variables */
	--primary-color: #3b82f6;
	--primary-dark: #2563eb;
	--secondary-color: #6c757d;
	--success-color: #198754;
	--danger-color: #dc3545;
	--warning-color: #ffc107;
	--info-color: #0dcaf0;

	/* Layout Variables */
	--sidebar-width: 260px;
	--sidebar-collapsed-width: 64px;
	--topbar-height: 64px;

	/* Background Colors */
	--sidebar-bg: #ffffff;
	--sidebar-border: #e2e8f0;
	--sidebar-hover: #f1f5f9;
	--sidebar-active: #eff6ff;
	--body-bg: #fff;
	--card-bg: #ffffff;
	--input-bg: #f8fafc;

	/* Text Colors */
	--text-primary: #0f172a;
	--text-secondary: #64748b;

	/* Transitions */
	--transition-speed: 0.3s;
}

/* Dark Mode Variables */
:root.dark {
	/* Background Colors - Dark Mode */
	--sidebar-bg: #1e293b;
	--sidebar-border: #334155;
	--sidebar-hover: #334155;
	--sidebar-active: #1e40af;
	--body-bg: #0f172a;
	--card-bg: #1e293b;
	--input-bg: #334155;

	/* Text Colors - Dark Mode */
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;

	/* Primary Color Adjustments for Dark Mode */
	--primary-color: #60a5fa;
	--primary-dark: #3b82f6;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--body-bg);
	overflow-x: hidden;
	color: var(--text-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
}

input:not([type="radio"]):not([type="checkbox"]), textarea, select {
	background-color: var(--input-bg) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

.form-control, .form-select {
	background-color: var(--input-bg) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

/* Placeholder styling for dark mode */
input::placeholder,
textarea::placeholder {
	color: var(--text-secondary) !important;
	opacity: 0.7;
}

.form-control::placeholder {
	color: var(--text-secondary) !important;
	opacity: 0.7;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	width: var(--sidebar-width);
	background-color: var(--sidebar-bg);
	border-right: 1px solid var(--sidebar-border);
	transition: width var(--transition-speed) ease;
	z-index: 1000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.sidebar.collapsed {
	width: var(--sidebar-collapsed-width);
}

.sidebar-header {
	height: var(--topbar-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	white-space: nowrap;
	overflow: hidden;
}

.sidebar-logo-icon {
	width: 32px;
	height: 32px;
	background-color: var(--primary-color);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	flex-shrink: 0;
}

.sidebar-logo-text {
	transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-logo-text {
	opacity: 0;
	width: 0;
}

.sidebar-logo-text h6 {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
	color: var(--text-primary);
}

.sidebar-logo-text p {
	font-size: 0.75rem;
	margin: 0;
	color: var(--text-secondary);
}

.toggle-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
	flex-shrink: 0;
}

.toggle-btn:hover {
	background-color: var(--sidebar-hover);
}

.toggle-btn i {
	transition: transform var(--transition-speed);
}

.sidebar.collapsed .toggle-btn i {
	transform: rotate(180deg);
}

/* Admin User Info */
.admin-user-info {
	padding: 1rem;
	border-bottom: 1px solid var(--sidebar-border);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.75rem;
	font-weight: 500;
	flex-shrink: 0;
}

.user-details {
	flex: 1;
	min-width: 0;
	transition: opacity var(--transition-speed);
}

.sidebar.collapsed .user-details {
	opacity: 0;
	width: 0;
}

.user-name {
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-role {
	font-size: 0.75rem;
	margin: 0;
	color: var(--text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Navigation */
.sidebar-nav {
	padding: 1rem 0.5rem;
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
}

.nav-item {
	margin-bottom: 0.25rem;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: 8px;
	text-decoration: none;
	color: var(--text-primary);
	transition: all 0.2s;
	position: relative;
	white-space: nowrap;
}

.nav-link:hover {
	background-color: var(--sidebar-hover);
	color: var(--text-primary);
}

.nav-link.active {
	background-color: var(--sidebar-active);
	color: var(--primary-color);
}

.nav-link i {
	font-size: 1.25rem;
	width: 20px;
	flex-shrink: 0;
}

.nav-link-text {
	font-size: 0.875rem;
	font-weight: 500;
	transition: opacity var(--transition-speed);
}

.sidebar.collapsed .nav-link-text {
	opacity: 0;
	width: 0;
}

/* Sidebar Footer */
.sidebar-footer {
	padding: 1rem;
	border-top: 1px solid var(--sidebar-border);
	background-color: var(--sidebar-bg);
	flex-shrink: 0;
}

.status-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.status-dot {
	width: 8px;
	height: 8px;
	background-color: #10b981;
	border-radius: 50%;
}

.sidebar.collapsed .status-indicator span {
	display: none;
}

.sidebar.collapsed .status-dot {
	margin: 0 auto;
}

/* Scrollbar Styling - only on sidebar-nav */
.sidebar-nav::-webkit-scrollbar {
	width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
	background: var(--sidebar-border);
	border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
	background: var(--text-secondary);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main-wrapper {
	margin-left: var(--sidebar-width);
	transition: margin-left var(--transition-speed) ease;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-wrapper.sidebar-collapsed {
	margin-left: var(--sidebar-collapsed-width);
}

/* ========================================
   TOPBAR
   ======================================== */

.topbar,
.top-bar {
	max-height: auto;
	min-height: var(--topbar-height);
	background-color: var(--card-bg);
	border-bottom: 1px solid var(--sidebar-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.page-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
	color: var(--text-primary);
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.topbar-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
	transition: background-color 0.2s;
	position: relative;
}

.topbar-btn:hover {
	background-color: var(--sidebar-hover);
}

.notification-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 18px;
	height: 18px;
	background-color: #ef4444;
	border-radius: 10px;
	border: 2px solid white;
	font-size: 0.65rem;
	font-weight: 600;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* ========================================
   USER DROPDOWN
   ======================================== */

.user-dropdown {
	position: relative;
}

.user-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.375rem 0.75rem;
	border: none;
	background-color: transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.user-dropdown-toggle:hover {
	background-color: var(--sidebar-hover);
}

.user-avatar-topbar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.875rem;
	font-weight: 600;
	flex-shrink: 0;
}

.user-info-topbar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
}

.user-name-topbar {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.2;
}

.user-role-topbar {
	font-size: 0.75rem;
	color: var(--text-secondary);
	line-height: 1.2;
}

.dropdown-arrow {
	font-size: 0.875rem;
	color: var(--text-secondary);
	transition: transform 0.2s;
}

.user-dropdown-toggle:hover .dropdown-arrow {
	transform: translateY(2px);
}

/* Dropdown Menu */
.user-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	background-color: var(--card-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 1000;
}

.user-dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
}

.user-avatar-dropdown {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1rem;
	font-weight: 600;
	flex-shrink: 0;
}

.user-details-dropdown {
	flex: 1;
	min-width: 0;
}

.user-name-dropdown {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-email-dropdown {
	font-size: 0.75rem;
	color: var(--text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dropdown-divider {
	height: 1px;
	background-color: var(--sidebar-border);
	margin: 0.5rem 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1rem;
	color: var(--text-primary);
	text-decoration: none;
	transition: background-color 0.2s;
	font-size: 0.875rem;
}

.dropdown-item:hover {
	background-color: var(--sidebar-hover);
	color: var(--text-primary);
}

.dropdown-item i {
	font-size: 1.125rem;
	width: 20px;
	flex-shrink: 0;
}

.dropdown-item.logout-item {
	color: #ef4444;
}

.dropdown-item.logout-item:hover {
	background-color: #fef2f2;
	color: #dc2626;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
	flex: 1;
	padding-top: 1.5rem;
	background-color: var(--body-bg);
	margin-left: 20px;
	margin-right:20px;
}

.content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}


.page-header {
	background: var(--body-bg);
	padding: 2rem 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid #dee2e6;
}

.page-subtitle {
	font-size: 0.8125rem;
	margin: 0;
	color: var(--text-secondary);
	line-height: 1.4;
}

/* ========================================
   CARDS
   ======================================== */

.dashboard-card,
.form-section {
	background-color: var(--card-bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5rem;
}

.card-header-custom {
	display: flex;
	align-items: center;
	justify-content: between;
	margin-bottom: 1rem;
}

.card-title,
.section-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: var(--text-primary);
}

/* Stats Cards */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.stat-card {
	background-color: var(--card-bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.stat-icon.blue {
	background-color: #eff6ff;
	color: var(--primary-color);
}

.stat-icon.green {
	background-color: #f0fdf4;
	color: #10b981;
}

.stat-icon.purple {
	background-color: #faf5ff;
	color: #a855f7;
}

.stat-icon.orange {
	background-color: #fff7ed;
	color: #f59e0b;
}

.stat-content h3 {
	font-size: 1.875rem;
	font-weight: 600;
	margin: 0;
	color: var(--text-primary);
}

.stat-content p {
	font-size: 0.875rem;
	margin: 0;
	color: var(--text-secondary);
}

/* ========================================
   NEWS MANAGEMENT STYLES
   ======================================== */

.search-filters {
	 margin-bottom: 2rem;
	/* background: var(--body-bg); */
	/* padding-bottom: 1.5rem; */
	/* border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.news-card {
	transition: all 0.3s ease;
	border: 1px solid var(--sidebar-border);
	border-radius: 0.5rem;
	overflow: hidden;
	background: var(--card-bg);
	height: 100%;
}

.news-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.news-card-image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.news-card-body {
	padding: 1rem;
}

.news-card-image-wrapper {
	position: relative;
}

.view-toggle .btn {
	padding: 0.375rem 0.75rem;
}

.list-view .news-card {
	margin-bottom: 1.5rem;
}

.list-view .card-horizontal {
	display: flex;
	flex-direction: row;
}

.list-view .news-card-image {
	width: 200px;
	height: 120px;
	flex-shrink: 0;
}

.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	background: white;
	border-radius: 0.5rem;
}

.empty-state i {
	font-size: 4rem;
	color: #adb5bd;
	margin-bottom: 1rem;
}

/* ========================================
   BADGES
   ======================================== */

.badge-published {
	background-color: var(--success-color);
}

.badge-draft {
	background-color: var(--secondary-color);
}

.badge-scheduled {
	background-color: var(--info-color);
}

.badge-hidden {
	background-color: var(--danger-color);
}

.badge-high {
	background-color: var(--danger-color);
}

.badge-medium {
	background-color: var(--warning-color);
}

.badge-low {
	background-color: var(--secondary-color);
}

.tag-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

/* Upload Zone */
.upload-zone {
	border: 2px dashed #dee2e6;
	border-radius: 0.5rem;
	padding: 3rem 2rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.upload-zone:hover {
	border-color: #adb5bd;
	background-color: #f8f9fa;
}

.upload-icon {
	width: 64px;
	height: 64px;
	background-color: #f8f9fa;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.upload-icon i {
	font-size: 2rem;
	color: #adb5bd;
}

/* Image Preview */
.image-preview {
	position: relative;
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	padding: 0.5rem;
	margin-bottom: 1rem;
}

.image-preview img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0.25rem;
}

.image-preview .remove-btn {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 0.25rem;
}

.image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.file-info {
	font-size: 0.875rem;
	color: #6c757d;
	margin-top: 0.5rem;
}

/* Radio Option */
.radio-option {
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.radio-option:hover {
	background-color: #f8f9fa;
}

.radio-option input[type="radio"]:checked+label {
	font-weight: 600;
}

.radio-option input[type="radio"]:checked~* {
	border-color: var(--primary-color);
}

/* Schedule Fields */
.schedule-fields {
	display: none;
	animation: fadeIn 0.3s ease;
}

.schedule-fields.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   DELETE SECTION
   ======================================== */

.delete-section {
	background-color: #fff5f5;
	border: 1px solid #fecaca;
	border-radius: 0.5rem;
	padding: 1.5rem;
}

/* Dark Mode for Delete Section */
:root.dark .delete-section {
	background-color: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-white {
	background-color: var(--card-bg) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

.btn-white:hover {
	background-color: var(--sidebar-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

.btn-white:focus,
.btn-white:active {
	background-color: var(--sidebar-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

.btn-outline-primary {
	color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	background-color: transparent !important;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color) !important;
	color: white !important;
	border-color: var(--primary-color) !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
	background-color: var(--primary-color) !important;
	color: white !important;
	border-color: var(--primary-color) !important;
}

.btn-close-custom {
	background: none;
	border: none;
	color: #6c757d;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
}

.btn-close-custom:hover {
	background-color: #f8f9fa;
	color: #212529;
}

/* Light Button Styles */
.btn-light {
	background-color: #f8f9fa;
	color: #212529;
	border-color: #f8f9fa;
}

.btn-light:hover {
	background-color: #e2e6ea;
	color: #212529;
	border-color: #dae0e5;
}

/* Dark Mode for Light Button */
:root.dark .btn-light {
	background-color: var(--input-bg) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

:root.dark .btn-light:hover {
	background-color: var(--sidebar-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

:root.dark .btn-light:focus,
:root.dark .btn-light:active {
	background-color: var(--sidebar-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

/* ========================================
   DYNAMIC FIELDS STYLES
   ======================================== */

.dynamic-field-wrapper {
	margin-bottom: 1rem;
}

.dynamic-field-group {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.dynamic-field-input {
	flex: 1;
}

.dynamic-field-remove-btn {
	flex-shrink: 0;
	min-width: 40px;
	height: 38px;
	padding: 0.375rem 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.dynamic-field-remove-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.dynamic-field-remove-btn i {
	font-size: 1rem;
}

/* Animation for adding fields */
.dynamic-field-wrapper {
	animation: fadeInSlideDown 0.3s ease;
}

@keyframes fadeInSlideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Dark Mode for Dynamic Fields */
:root.dark .dynamic-field-remove-btn {
	background-color: #dc2626;
	border-color: #dc2626;
}

:root.dark .dynamic-field-remove-btn:hover {
	background-color: #b91c1c;
	border-color: #b91c1c;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
	display: none;
}

@media (max-width: 768px) {

	/* Show mobile menu toggle on mobile */
	.mobile-menu-toggle {
		display: flex !important;
		margin-right: 0.75rem;
	}

	.sidebar,
	.sidebar.collapsed {
		width: var(--sidebar-width) !important;
		transform: translateX(-100%);
	}

	.sidebar.mobile-open,
	.sidebar.collapsed.mobile-open {
		transform: translateX(0);
	}

	/* Show all collapsed elements on mobile */
	.sidebar.collapsed .sidebar-logo-text,
	.sidebar.collapsed .user-details,
	.sidebar.collapsed .nav-link-text {
		opacity: 1 !important;
		width: auto !important;
	}

	.sidebar.collapsed .status-indicator span {
		display: inline !important;
	}

	.sidebar.collapsed .status-dot {
		margin: 0 !important;
	}

	.main-wrapper,
	.main-wrapper.sidebar-collapsed {
		margin-left: 0 !important;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.list-view .card-horizontal {
		flex-direction: column;
	}

	.list-view .news-card-image {
		width: 100%;
		height: 200px;
	}
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.dropdown-menu-end {
	right: 0;
	left: auto;
}

/* Dropdown Menu Styling */
.dropdown-menu {
	background-color: var(--card-bg) !important;
	border-color: var(--sidebar-border) !important;
}

.dropdown-item {
	color: var(--text-primary) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: var(--sidebar-hover) !important;
	color: var(--text-primary) !important;
}

.dropdown-item.active {
	background-color: var(--primary-color) !important;
	color: white !important;
}

.more-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 0.25rem;
	padding: 0.25rem 0.5rem;
}

.hidden {
	display: none !important;
}

.required {
	color: #dc2626;
}

.filter-bar {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.filter-select {
	background-color: white;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: #374151;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
	min-width: 120px;
}

.filter-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.container-fluid {
	background-color: var(--body-bg);
}



/* ========================================
   ADMINISTRATOR MANAGEMENT STYLES
   ======================================== */

/* Full Page Layout for Create/Edit Pages */
.create-page-wrapper {
	position: fixed;
	inset: 0;
	background-color: var(--card-bg);
	z-index: 50;
	display: flex;
	flex-direction: column;
}

.create-page-header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--sidebar-border);
	position: sticky;
	top: 0;
	background-color: var(--card-bg);
	z-index: 10;
}

.create-page-content {
	flex: 1;
	overflow-y: auto;
}

/* Permission Items */
.permission-item {
	display: flex;
	align-items: start;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--sidebar-border);
	border-radius: 8px;
	margin-bottom: 1rem;
	transition: all 0.2s;
	background-color: var(--card-bg);
}

.permission-item:hover {
	background-color: var(--sidebar-hover);
	border-color: var(--sidebar-border);
}

.permission-item input[type="checkbox"] {
	margin-top: 0.25rem;
	cursor: pointer;
	width: 18px;
	height: 18px;
}

.permission-content {
	flex: 1;
}

.permission-label {
	font-weight: 500;
	cursor: pointer;
	display: block;
	margin-bottom: 0.25rem;
	color: var(--text-primary);
}

.permission-description {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
}

/* View Toggle Buttons */
.view-toggle-btn {
	padding: 0.5rem 0.75rem;
	border: 1px solid #dee2e6;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
}

.view-toggle-btn.active {
	background-color: #3b82f6;
	color: white;
	border-color: #3b82f6;
}

.view-toggle-btn:first-child {
	border-radius: 8px 0 0 8px;
}

.view-toggle-btn:last-child {
	border-radius: 0 8px 8px 0;
}

/* Dark Mode for View Toggle Buttons */
:root.dark .view-toggle-btn {
	background-color: var(--card-bg);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

:root.dark .view-toggle-btn.active {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

:root.dark .view-toggle .btn-outline-primary {
	background-color: var(--card-bg);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

:root.dark .view-toggle .btn-outline-primary.active {
	background-color: var(--primary-color) !important;
	color: white !important;
	border-color: var(--primary-color) !important;
}

:root.dark .view-toggle .btn-outline-primary:hover {
	background-color: var(--sidebar-hover);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

/* Admin Cards */
.admin-card {
	transition: all 0.3s ease;
	border: 1px solid var(--sidebar-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--card-bg);
	height: 100%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 20px;
}

.admin-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* Role and Status Badges */
.badge-super-admin {
	background-color: #dc3545;
	color: white;
}

.badge-content-manager {
	background-color: #3b82f6;
	color: white;
}

.badge-content-editor {
	background-color: #6c757d;
	color: white;
}

.badge-moderator {
	background-color: #6c757d;
	color: white;
	border: 1px solid #dee2e6;
}

.badge-active {
	background-color: #3b82f6;
	color: white;
}

.badge-inactive {
	background-color: #6c757d;
	color: white;
}

.badge-suspended {
	background-color: #dc3545;
	color: white;
}

/* List View Items */
.list-view-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: var(--card-bg);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
	align-items: flex-start;
}

.list-view-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Delete Warning Box */
.delete-warning-box {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 1rem;
}

.delete-warning-box p {
	font-size: 0.875rem;
	color: #991b1b;
	margin-bottom: 1rem;
}

/* Dark Mode for Delete Warning Box */
:root.dark .delete-warning-box {
	background-color: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
}

:root.dark .delete-warning-box p {
	color: #ef4444;
}

/* Loading Overlay */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.header-close-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
	margin-top: 0.25rem;
}

.header-close-btn:hover {
	color: var(--text-primary);
	background-color: var(--sidebar-hover);
}

.header-title-section {
	flex: 1;
	/* padding: 0 1.5rem; */
}

.header-title-section h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.25rem 0;
}

.header-title-section p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
}

.header-actions {
	display: flex;
	gap: 0.75rem;
}

.content-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem;
}

.delete-section-wrapper {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sidebar-border);
}

.delete-title {
	font-size: 1rem;
	font-weight: 600;
	color: #dc2626;
	margin-bottom: 1rem;
}

/* Form spacing */
.form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
	}

	.create-page-header {
		flex-wrap: wrap;
	}

	.header-title-section {
		order: 2;
		width: 100%;
		padding: 1rem 0 0 0;
	}

	.header-close-btn {
		order: 1;
	}

	.header-actions {
		order: 3;
		margin-left: auto;
	}
}


/* ========================================
   PROFILE SETTINGS STYLES
   ======================================== */

.profile-header {
	margin-bottom: 2rem;
}

.profile-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	color: var(--text-primary);
}

.profile-subtitle {
	font-size: 1rem;
	margin: 0;
	color: var(--text-secondary);
}

.profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 1.5rem;
}

.profile-card {
	background-color: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--sidebar-border);
}

.profile-card-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.profile-card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background-color: #eff6ff;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}

.profile-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.25rem 0;
	color: var(--text-primary);
}

.profile-card-description {
	font-size: 0.875rem;
	margin: 0;
	color: var(--text-secondary);
}

.profile-card-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.profile-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.profile-field-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 0;
}

.profile-field-value {
	font-size: 1rem;
	color: var(--text-primary);
	margin: 0;
}

.profile-field-mono {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.875rem;
}

.profile-field-with-icon {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.profile-field-with-icon i {
	color: var(--text-secondary);
	font-size: 1rem;
}

.profile-permissions-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 0.5rem;
}

.profile-permission-box {
	padding: 0.75rem;
	border: 1px solid var(--sidebar-border);
	border-radius: 8px;
	background-color: #f8fafc;
}

.permission-box-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.25rem 0;
}

.permission-box-description {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.4;
}

.profile-info-box {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
}

.profile-info-box i {
	color: #2563eb;
	font-size: 1.25rem;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.profile-info-box p {
	font-size: 0.875rem;
	color: #1e3a8a;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.profile-grid {
		grid-template-columns: 1fr;
	}
}


/* ========================================
   ACCOUNT SETTINGS STYLES
   ======================================== */

.account-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.account-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	color: var(--text-primary);
}

.account-subtitle {
	font-size: 1rem;
	margin: 0;
	color: var(--text-secondary);
}

.account-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.account-card {
	background-color: var(--card-bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--sidebar-border);
}

.account-card-full {
	grid-column: 1 / -1;
}

.account-card-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.account-card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background-color: #eff6ff;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}

.account-card-icon.appearance-icon {
	background-color: #faf5ff;
	color: #a855f7;
}

.account-card-icon.security-icon {
	background-color: #fef2f2;
	color: #dc2626;
}

/* Dark Mode - Card Icons */
:root.dark .account-card-icon {
	background-color: transparent !important;
	color: #fff !important;
}

:root.dark .account-card-icon.appearance-icon {
	background-color: transparent !important;
	color: #fff !important;
}

:root.dark .account-card-icon.security-icon {
	background-color: transparent !important;
	color: #fff !important;
}

.account-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.25rem 0;
	color: var(--text-primary);
}

.account-card-description {
	font-size: 0.875rem;
	margin: 0;
	color: var(--text-secondary);
}

.account-card-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.account-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.account-field-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	margin: 0;
}

.account-field-hint {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin: 0.25rem 0 0 0;
	line-height: 1.4;
}

/* Account Information Grid */
.account-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.account-info-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.account-info-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	margin: 0;
}

.account-info-value {
	font-size: 0.875rem;
	color: var(--text-primary);
	margin: 0;
}

.account-info-note {
	font-size: 0.75rem;
	color: var(--text-secondary);
	font-style: italic;
	margin: 0.25rem 0 0 0;
}

/* Password Input Wrapper */
.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-wrapper input {
	padding-right: 3rem;
}

.password-toggle-btn {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 0.75rem;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.password-toggle-btn:hover {
	color: var(--text-primary);
}

.password-toggle-btn i {
	font-size: 1.125rem;
}

.password-info-box {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	margin-top: 0.5rem;
}

.password-info-box i {
	color: #2563eb;
	font-size: 1.125rem;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.password-info-box p {
	font-size: 0.75rem;
	color: #1e3a8a;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 768px) {
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .account-info-grid {
        grid-template-columns: 1fr;
    }
    
    .account-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .account-header button {
        width: 100%;
    }
}

/* ========================================
   USER MANAGEMENT STYLES
   ======================================== */

.user-management-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.user-management-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-management-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.user-management-subtitle {
    font-size: 1rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Stats Cards */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-stat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.user-stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.user-stat-value-green {
    color: #10b981;
}

.user-stat-value-gray {
    color: #6b7280;
}

.user-stat-value-red {
    color: #ef4444;
}

.user-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-stat-icon-blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.user-stat-icon-green {
    background-color: #f0fdf4;
    color: #10b981;
}

.user-stat-icon-gray {
    background-color: #f3f4f6;
    color: #6b7280;
}

.user-stat-icon-red {
    background-color: #fef2f2;
    color: #ef4444;
}

/* Filters Card */
.user-filters-card {
   background-color: var(--card-bg);
    border-radius: 12px;
    padding-top: 1.5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--sidebar-border);
    margin-bottom: 1.5rem;
}

.user-filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.user-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.user-search-input {
    padding-left: 2.5rem;
}

.user-filter-select {
    min-width: 200px;
}

/* Table Card */
.user-table-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--sidebar-border);
    overflow: hidden;
		padding: 1.5em;
}

.user-table {
    margin: 0;
    color: var(--text-primary);
}

.user-table thead {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--sidebar-border);
}

.user-table th {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.user-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--sidebar-border);
    color: var(--text-primary);
}

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

.user-table tbody tr:hover {
    background-color: #f8fafc;
}

/* User Cell */
.user-cell-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-table {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.user-name-table {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Contact Cell */
.user-contact-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.user-contact-item i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-contact-item span {
    color: var(--text-primary);
}

/* Role Cell */
.user-role-cell {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Date Cell */
.user-date-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-date-cell i {
    font-size: 0.875rem;
}

.user-date-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Status Badges */
.badge-user-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.badge-user-inactive {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.badge-user-suspended {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Empty State */
.user-table-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.user-table-empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.user-table-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
}

/* Notification Modal */
.notification-recipient {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Dark Mode Support */
.dark .user-stat-card,
.dark .user-filters-card,
.dark .user-table-card {
    background-color: var(--card-bg);
    border-color: #334155;
}

.dark .user-table {
    color: #f1f5f9;
    background-color: #1e293b;
}

.dark .user-table thead tr {
    background-color: #0f172a;
}

.dark .user-table tbody tr {
    background-color: #1e293b;
}

.dark .user-table tr {
    border-color: #334155;
}

.dark .user-table th,
.dark .user-table td {
    color: #f1f5f9;
    border-color: #334155;
}

.dark .table {
    color: #f1f5f9;
    border-color: #334155;
}

.dark .table thead th {
    color: #f1f5f9;
    background-color: #0f172a;
    border-color: #334155;
}

.dark .table tbody tr {
    background-color: #1e293b;
}

.dark .table tbody td {
    color: #cbd5e1;
    border-color: #334155;
}

.dark .table tbody tr:hover {
    background-color: #0f172a;
}

.dark .table tbody tr.odd {
    background-color: #1e293b !important;
}

.dark .table tbody tr.even {
    background-color: #0f172a !important;
}

.dark .table tbody tr.odd:hover,
.dark .table tbody tr.even:hover {
    background-color: #334155 !important;
}

.dark .table td.sorting_1 {
    background-color: transparent !important;
}

.dark .user-stat-label {
    color: #94a3b8;
}

.dark .user-stat-value {
    color: #f1f5f9;
}

.dark .user-stat-icon-blue {
    background-color: #1e3a8a;
    color: #60a5fa;
}

.dark .user-stat-icon-green {
    background-color: #064e3b;
    color: #34d399;
}

.dark .user-stat-icon-gray {
    background-color: #374151;
    color: #9ca3af;
}

.dark .user-stat-icon-red {
    background-color: #7f1d1d;
    color: #f87171;
}

.dark .user-table thead {
    background-color: #0f172a;
    border-color: #334155;
}

.dark .user-table th {
    color: #f1f5f9;
}

.dark .user-table td {
    border-color: #334155;
}

.dark .user-table tbody tr:hover {
    background-color: #0f172a;
}

.dark .user-table tbody tr.odd {
    background-color: #1e293b !important;
}

.dark .user-table tbody tr.even {
    background-color: #0f172a !important;
}

.dark .user-table tbody tr.odd:hover,
.dark .user-table tbody tr.even:hover {
    background-color: #334155 !important;
}

.dark .user-table td {
    border-color: #334155;
    color: #cbd5e1;
    background-color: transparent !important;
}

.dark .user-table td.sorting_1 {
    background-color: transparent !important;
}

.dark .user-cell-wrapper {
    color: #f1f5f9;
}

.dark tbody {
    background-color: #1e293b;
    color: #cbd5e1;
}

.dark tbody tr {
    background-color: #1e293b;
}

.dark tbody td {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

.dark .user-name-table,
.dark .user-role-cell {
    color: #f1f5f9;
}

.dark .user-contact-cell {
    color: #cbd5e1;
}

.dark .user-contact-item {
    color: #cbd5e1;
}

.dark .user-contact-item span {
    color: #cbd5e1;
}

.dark .user-contact-item i,
.dark .user-date-cell,
.dark .user-date-text,
.dark .user-search-icon {
    color: #64748b;
}

.dark .user-avatar-table {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.dark .badge-user-active {
    background-color: #064e3b;
    color: #6ee7b7;
    border-color: #059669;
}

.dark .badge-user-inactive {
    background-color: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

.dark .badge-user-suspended {
    background-color: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

.dark .user-table-empty i {
    color: #475569;
}

.dark .user-table-empty p {
    color: #64748b;
}

.dark .btn-ghost:hover {
    background-color: #334155;
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-filters-row {
        flex-direction: column;
    }
    
    .user-search-wrapper,
    .user-filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .user-management-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-management-header button {
        width: 100%;
    }
}

/* ========================================
   BOOTSTRAP UTILITY CLASSES DARK MODE
   ======================================== */

/* Text utilities */
.text-muted {
	color: var(--text-secondary) !important;
}

.card-text {
	color: var(--text-primary) !important;
}

.small, small {
	color: var(--text-primary);
}

/* Additional Bootstrap overrides for dark mode */
:root.dark .text-dark {
	color: var(--text-primary) !important;
}

:root.dark .text-secondary {
	color: var(--text-secondary) !important;
}

:root.dark .bg-white {
	background-color: var(--card-bg) !important;
}

:root.dark .bg-light {
	background-color: var(--sidebar-hover) !important;
}

:root.dark .border {
	border-color: var(--sidebar-border) !important;
}

/* Input Group Text */
.input-group-text {
	background-color: var(--card-bg);
	color: var(--text-primary);
	border-color: var(--sidebar-border);
}

/* Dark Mode for Input Group Text */
:root.dark .input-group-text {
	background-color: var(--input-bg) !important;
	color: var(--text-secondary) !important;
	border-color: var(--sidebar-border) !important;
}

/* Bootstrap Alerts Dark Mode */
.alert {
	border-color: var(--sidebar-border) !important;
}

.alert-info {
	background-color: var(--card-bg) !important;
	color: var(--text-primary) !important;
	border-color: var(--sidebar-border) !important;
}

:root.dark .alert-info {
	background-color: rgba(96, 165, 250, 0.1) !important;
	color: #60a5fa !important;
	border-color: rgba(96, 165, 250, 0.3) !important;
}

:root.dark .alert-warning {
	background-color: rgba(251, 191, 36, 0.1) !important;
	color: #fbbf24 !important;
	border-color: rgba(251, 191, 36, 0.3) !important;
}

:root.dark .alert-danger {
	background-color: rgba(239, 68, 68, 0.1) !important;
	color: #ef4444 !important;
	border-color: rgba(239, 68, 68, 0.3) !important;
}

:root.dark .alert-success {
	background-color: rgba(34, 197, 94, 0.1) !important;
	color: #22c55e !important;
	border-color: rgba(34, 197, 94, 0.3) !important;
}

/* ========================================
   DATATABLES PAGINATION DARK MODE
   ======================================== */

/* DataTables Pagination Wrapper */
.dark .dataTables_paginate {
	color: var(--text-primary) !important;
}

/* Pagination List */
.dark .pagination {
	margin: 0;
}

/* Pagination Items */
.dark .page-item .page-link {
	background-color: var(--card-bg) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-primary) !important;
}

.dark .page-item .page-link:hover {
	background-color: var(--sidebar-hover) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-primary) !important;
}

.dark .page-item .page-link:focus {
	background-color: var(--sidebar-hover) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-primary) !important;
	box-shadow: none !important;
}

/* Active Page */
.dark .page-item.active .page-link {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: white !important;
}

.dark .page-item.active .page-link:hover {
	background-color: var(--primary-dark) !important;
	border-color: var(--primary-dark) !important;
	color: white !important;
}

/* Disabled Pagination Buttons */
.dark .page-item.disabled .page-link {
	background-color: var(--input-bg) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-secondary) !important;
	opacity: 0.6;
}

/* DataTables Info Text */
.dark .dataTables_info {
	color: var(--text-secondary) !important;
}

/* DataTables Length Select */
.dark .dataTables_length select {
	background-color: var(--input-bg) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-primary) !important;
}

.dark .dataTables_length label {
	color: var(--text-primary) !important;
}

/* DataTables Filter/Search */
.dark .dataTables_filter input {
	background-color: var(--input-bg) !important;
	border-color: var(--sidebar-border) !important;
	color: var(--text-primary) !important;
}

.dark .dataTables_filter label {
	color: var(--text-primary) !important;
}

/* DataTables Wrapper */
.dark .dataTables_wrapper {
	color: var(--text-primary) !important;
}


#userTable_info {
	display:none !important;
}

/* ========================================
   PRODUCT LIST PAGINATION STYLES
   ======================================== */

.pagination-container {
	padding: 2rem 0 1rem 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.pagination {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0.5rem;
}

.pagination .page-item {
	list-style: none;
}

.pagination .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--sidebar-border);
	background-color: var(--card-bg);
	color: var(--text-primary);
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
}

.pagination .page-link:hover {
	background-color: var(--sidebar-hover);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.pagination .page-link:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pagination .page-item.active .page-link {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

.pagination .page-item.active .page-link:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.pagination .page-item.disabled .page-link {
	background-color: var(--input-bg);
	border-color: var(--sidebar-border);
	color: var(--text-secondary);
	cursor: not-allowed;
	opacity: 0.5;
	pointer-events: none;
}

.pagination .page-link i {
	font-size: 1rem;
	line-height: 1;
}

/* Dark Mode Pagination */
:root.dark .pagination .page-link {
	background-color: var(--card-bg);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

:root.dark .pagination .page-link:hover {
	background-color: var(--sidebar-hover);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

:root.dark .pagination .page-item.active .page-link {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

:root.dark .pagination .page-item.disabled .page-link {
	background-color: var(--input-bg);
	border-color: var(--sidebar-border);
	color: var(--text-secondary);
}

/* Responsive Pagination */
@media (max-width: 576px) {
	.pagination {
		gap: 0.25rem;
	}
	
	.pagination .page-link {
		min-width: 36px;
		height: 36px;
		padding: 0.375rem 0.5rem;
		font-size: 0.813rem;
	}
	
	.pagination-container {
		padding: 1.5rem 0 1rem 0;
	}
}

/* ========================================
   DYNAMIC UPLOAD SECTION STYLES
   ======================================== */

.dynamic-upload-sections-container {
	margin-bottom: 1.5rem;
}

.dynamic-upload-section-wrapper {
	animation: fadeInSlideDown 0.3s ease;
}

.dynamic-upload-section-wrapper .card {
	border: 1px solid var(--sidebar-border);
	background-color: var(--card-bg);
	transition: all 0.3s ease;
}

.dynamic-upload-section-wrapper .card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dynamic-upload-section-wrapper .card-header {
	background-color: var(--sidebar-hover);
	border-bottom: 1px solid var(--sidebar-border);
	padding: 1rem 1.5rem;
}

.dynamic-upload-section-wrapper .card-header h5 {
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
}

.dynamic-upload-section-wrapper .card-body {
	padding: 1.5rem;
}

/* Drag-Drop Upload Wrapper */
.drag-drop-upload-wrapper {
	width: 100%;
}

.drag-drop-zone {
	position: relative;
	border: 2px dashed var(--sidebar-border);
	border-radius: 8px;
	padding: 2rem 1rem;
	text-align: center;
	background-color: var(--input-bg);
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drag-drop-zone:hover {
	border-color: var(--primary-color);
	background-color: var(--sidebar-hover);
}

.drag-drop-zone.drag-over {
	border-color: var(--primary-color);
	background-color: rgba(59, 130, 246, 0.1);
	border-style: solid;
}

.drag-drop-zone .upload-content {
	pointer-events: none;
	width: 100%;
}

.drag-drop-zone .upload-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.drag-drop-zone .upload-icon i {
	display: block;
}

.drag-drop-zone .upload-text {
	font-size: 0.875rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.drag-drop-zone .upload-info {
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.drag-drop-zone .drag-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(59, 130, 246, 0.9);
	border-radius: 6px;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: white;
	pointer-events: none;
}

.drag-drop-zone.drag-over .drag-overlay {
	display: flex;
}

.drag-drop-zone .drag-overlay i {
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

.drag-drop-zone .drag-overlay p {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

/* File Preview Container */
.file-preview-container {
	display: block;
	margin-top: 1rem;
}

.file-preview-item-inline {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--sidebar-border);
	border-radius: 8px;
	background-color: var(--card-bg);
	transition: all 0.2s ease;
}

.file-preview-item-inline:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-preview-item-inline img {
	max-width: 100%;
	max-height: 150px;
	object-fit: contain;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.file-preview-item-inline .file-info {
	width: 100%;
	text-align: center;
}

.file-preview-item-inline .file-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
	word-break: break-all;
}

.file-preview-item-inline .file-size {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.file-preview-item-inline .remove-file-btn {
	margin-top: 0.5rem;
}

/* Dark Mode for Dynamic Upload Sections */
:root.dark .drag-drop-zone {
	border-color: var(--sidebar-border);
	background-color: var(--input-bg);
}

:root.dark .drag-drop-zone:hover {
	border-color: var(--primary-color);
	background-color: var(--sidebar-hover);
}

:root.dark .drag-drop-zone.drag-over {
	background-color: rgba(96, 165, 250, 0.1);
}

:root.dark .file-preview-item-inline {
	background-color: var(--card-bg);
	border-color: var(--sidebar-border);
}

/* Responsive Styles for Dynamic Upload Sections */
@media (max-width: 768px) {
	.dynamic-upload-section-wrapper .card-header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	
	.dynamic-upload-section-wrapper .card-header h5 {
		margin-bottom: 0.5rem;
	}
	
	.dynamic-upload-section-wrapper .card-header button {
		width: 100%;
	}
	
	.drag-drop-zone {
		padding: 1.5rem 0.75rem;
		min-height: 150px;
	}
	
	.drag-drop-zone .upload-icon {
		font-size: 2rem;
	}
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES
   ======================================== */

/* Schedule Fields */
.schedule-fields {
	display: none;
	margin-top: 20px;
}

.schedule-fields.active {
	display: block;
}

/* Radio Options */
.radio-option {
	margin-bottom: 15px;
	padding: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.radio-option:hover {
	background-color: var(--sidebar-hover);
	border-color: #0d6efd;
}

.radio-option .form-check {
	margin-bottom: 0;
}

.radio-option .form-check-input {
	cursor: pointer;
	margin-top: 0.25rem;
	pointer-events: auto;
	width: 20px;
	height: 20px;
}

.radio-option .form-check-input[type="radio"] {
	appearance: auto;
	-webkit-appearance: radio;
	-moz-appearance: radio;
}

.radio-option .form-check-input:checked {
	background-color: #0d6efd;
	border-color: #0d6efd;
}

/* Remove focus outline/square */
.radio-option .form-check-input:focus {
	outline: none;
	box-shadow: none;
}

/* Highlight the radio-option container when checked */
.radio-option:has(.form-check-input:checked) {
	background-color: #e7f3ff;
}

.radio-option .form-check-label {
	cursor: pointer;
	width: 100%;
	pointer-events: auto;
	margin-left: 5px;
}

.radio-option .form-check-label strong {
	display: block;
	margin-bottom: 5px;
}

/* Dark Mode for Product Radio Options */
:root.dark .radio-option:hover {
	background-color: var(--sidebar-hover);
}

:root.dark .radio-option:has(.form-check-input:checked) {
	background-color: rgba(59, 130, 246, 0.2);
}

/* ========================================
   DRAG DROP UPLOAD COMPONENT STYLES
   ======================================== */

.drag-drop-upload-wrapper {
	width: 100%;
}

.drag-drop-zone {
	position: relative;
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	background-color: #f7fafc;
	cursor: pointer;
	transition: all 0.3s ease;
}

.drag-drop-zone:hover {
	border-color: #4299e1;
	background-color: #ebf8ff;
}

.drag-drop-zone.drag-over {
	border-color: #3182ce;
	background-color: #bee3f8;
	border-style: solid;
}

.drag-drop-zone .upload-content {
	pointer-events: none;
}

.drag-drop-zone .upload-icon {
	font-size: 48px;
	color: #4299e1;
	margin-bottom: 16px;
}

.drag-drop-zone .upload-text {
	font-size: 16px;
	color: #2d3748;
}

.drag-drop-zone .upload-info {
	font-size: 14px;
	color: #718096;
}

.drag-drop-zone .drag-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(66, 153, 225, 0.9);
	border-radius: 6px;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: white;
	pointer-events: none;
}

.drag-drop-zone.drag-over .drag-overlay {
	display: flex;
}

.drag-drop-zone .drag-overlay i {
	font-size: 48px;
	margin-bottom: 10px;
}

.drag-drop-zone .drag-overlay p {
	font-size: 18px;
	font-weight: bold;
	margin: 0;
}

.file-preview-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.file-preview-item {
	position: relative;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-preview-item img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 8px;
}

.file-preview-item .file-name {
	font-size: 14px;
	font-weight: 500;
	color: #2d3748;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-preview-item .file-size {
	font-size: 12px;
	color: #718096;
	margin-bottom: 8px;
}

.file-preview-item .remove-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(220, 38, 38, 0.9);
	border: none;
	color: white;
	cursor: pointer;
	transition: all 0.2s;
}

.file-preview-item .remove-btn:hover {
	background-color: rgba(185, 28, 28, 1);
	transform: scale(1.1);
}

/* Dark Mode for Drag Drop Upload */
:root.dark .drag-drop-zone {
	border-color: var(--sidebar-border);
	background-color: var(--input-bg);
}

:root.dark .drag-drop-zone:hover {
	border-color: var(--primary-color);
	background-color: var(--sidebar-hover);
}

:root.dark .drag-drop-zone.drag-over {
	border-color: var(--primary-color);
	background-color: rgba(96, 165, 250, 0.1);
}

:root.dark .drag-drop-zone .upload-text {
	color: var(--text-primary);
}

:root.dark .drag-drop-zone .upload-info {
	color: var(--text-secondary);
}

:root.dark .file-preview-item {
	background-color: var(--card-bg);
	border-color: var(--sidebar-border);
}

:root.dark .file-preview-item .file-name {
	color: var(--text-primary);
}

:root.dark .file-preview-item .file-size {
	color: var(--text-secondary);
}

.tab-content {
	min-height: 500px;
}

/* ========================================
   ANALYTICS DASHBOARD STYLES
   ======================================== */

.analytics-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.analytics-metric {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px;
	height: 100%;
}

.analytics-metric-icon {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.analytics-metric-value {
	font-size: 32px;
	font-weight: 700;
	margin: 10px 0 5px 0;
}

.analytics-metric-label {
	color: var(--muted-foreground);
	font-size: 14px;
}

.analytics-metric-change {
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
}

.analytics-metric-change.positive {
	color: #10b981;
}

.analytics-metric-change.negative {
	color: #ef4444;
}

.icon-blue {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.icon-green {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.icon-purple {
	background: rgba(139, 92, 246, 0.1);
	color: #8b5cf6;
}

.icon-orange {
	background: rgba(249, 115, 22, 0.1);
	color: #f97316;
}

.analytics-tabs {
	margin-bottom: 30px;
	display: flex;
	width: 100%;
	gap: 15px;
}

.analytics-tab {
	flex: 1;
	padding: 12px 20px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	color: #6b7280;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	text-align: center;
	border-radius: 6px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.analytics-tab:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.analytics-tab.active {
	background: #f3f4f6;
	color: #111827;
	border-color: #9ca3af;
}

.analytics-tab-content {
	display: none;
}

.analytics-tab-content.active {
	display: block;
}

.date-range-selector {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.date-range-btn {
	padding: 8px 16px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--foreground);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.date-range-btn:hover {
	border-color: var(--primary);
}

.date-range-btn.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

.custom-date-inputs {
	display: none;
	gap: 10px;
	margin-top: 10px;
}

.custom-date-inputs.active {
	display: flex;
}

.custom-date-inputs input {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--card);
	color: var(--foreground);
}

/* Content Views Breakdown List Styles */
.breakdown-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 0;
}

.breakdown-list-item:last-child {
	border-bottom: none;
}

.breakdown-list-item-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.breakdown-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.breakdown-dot.blue {
	background-color: #3b82f6;
}

.breakdown-dot.green {
	background-color: #10b981;
}

.breakdown-dot.orange {
	background-color: #f97316;
}

.breakdown-dot.red {
	background-color: #ef4444;
}

.breakdown-dot.purple {
	background-color: #8b5cf6;
}

.breakdown-label {
	font-size: 14px;
	color: #374151;
	font-weight: 500;
}

.breakdown-list-item-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.breakdown-value {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.breakdown-percentage {
	font-size: 13px;
	color: #6b7280;
}

/* ========================================
   PROFILE PAGE - PERMISSIONS LIST
   ======================================== */

.profile-permissions-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.section-description {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-top: 0.25rem;
	margin-bottom: 1.5rem;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	flex-direction: column;
}

.login-card {
	width: 100%;
	max-width: 420px;
	background: white;
	border-radius: 16px;
	padding: 3rem 2.5rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.login-logo i {
	font-size: 2rem;
	color: white;
}

.login-title {
	text-align: center;
	margin-bottom: 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-primary);
}

.login-subtitle {
	font-size: 13px;
	text-align: center;
	color: #64748b;
	margin-bottom: 2rem;
}

.btn-login {
	width: 100%;
	padding: 0.75rem;
	font-weight: 600;
	border: none;
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.forgot-password {
	text-align: center;
	margin-top: 1rem;
}

.forgot-password a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
}

.forgot-password a:hover {
	text-decoration: underline;
}

/* ========================================
   COURSE DETAIL - LOADING SCREEN
   ======================================== */


/* ========================================
   COURSE DETAIL - LESSON ITEMS
   ======================================== */

.lesson-item {
	background: var(--card-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 16px;
	position: relative;
}

.lesson-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.lesson-number {
	width: 40px;
	height: 40px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 16px;
	flex-shrink: 0;
}

.lesson-label {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
}

.lesson-remove {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	color: var(--danger-color);
	cursor: pointer;
	font-size: 20px;
	padding: 4px 8px;
}

.lesson-remove:hover {
	color: #c82333;
}

.lesson-content {
	margin-top: 16px;
}

.lesson-upload-zone {
	border: 2px dashed var(--sidebar-border);
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	background: var(--input-bg);
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 10px;
}

.lesson-upload-zone:hover {
	border-color: var(--primary-color);
	background: var(--sidebar-hover);
}

.lesson-upload-zone i {
	font-size: 48px;
	color: var(--text-secondary);
	margin-bottom: 12px;
}

.lesson-upload-zone p {
	margin: 8px 0;
	color: var(--text-secondary);
}

.lesson-upload-zone .upload-description {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
}

.lesson-upload-zone .file-info {
	font-size: 12px;
	color: var(--text-secondary);
}

.lesson-file-preview {
	margin-top: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lesson-file-item {
	position: relative;
	padding: 12px;
	background: var(--input-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
}

.lesson-file-item i {
	font-size: 24px;
	color: var(--primary-color);
}

.lesson-file-info {
	flex: 1;
	min-width: 0;
}

.lesson-file-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lesson-file-size {
	font-size: 12px;
	color: var(--text-secondary);
}

.lesson-file-remove {
	background: var(--danger-color);
	color: white;
	border: none;
	border-radius: 4px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.lesson-file-remove:hover {
	background: #c82333;
}

/* File preview item styling (for PDF and other documents) with dark mode support */
.lesson-file-preview .file-preview-item {
	position: relative;
	background: var(--card-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	width: 100%;
}

.lesson-file-preview .file-icon-preview {
	margin-bottom: 15px;
}

.lesson-file-preview .file-icon-preview i {
	font-size: 80px;
	color: var(--text-secondary);
}

.lesson-file-preview .file-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--text-primary);
	margin-bottom: 5px;
	word-break: break-word;
}

.lesson-file-preview .file-size {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.lesson-file-preview .file-action-buttons {
	margin: 10px 0;
}

.lesson-file-preview .remove-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--danger-color);
	color: white;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: all 0.2s;
}

.lesson-file-preview .remove-btn:hover {
	background: #c82333;
	transform: scale(1.1);
}

/* ========================================
   HOME PAGE DASHBOARD STYLES
   ======================================== */

/* Main Content Styles */
.main-content {
	min-height: 100vh;
}

/* Welcome Header */
.welcome-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.welcome-text h1 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #1d1d1f;
}

.welcome-text p {
	color: #6e6e73;
	font-size: 0.875rem;
	margin: 0;
}

.header-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.status-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #6e6e73;
}

.status-indicator i {
	color: #34c759;
}

.btn-full-report {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: white;
	border: 1px solid #d2d2d7;
	border-radius: 0.5rem;
	color: #1d1d1f;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: none;
}

.btn-full-report:hover {
	background: #f5f5f7;
	color: #1d1d1f;
}

/* Stats Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: white;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid #e5e5ea;
	transition: box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.stat-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	white-space: nowrap;
}

.stat-title {
	font-size: 0.875rem;
	color: #6e6e73;
	font-weight: 500;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stat-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6e6e73;
	margin-left: auto;
	flex-shrink: 0;
}

.stat-value {
	font-size: 2rem;
	font-weight: 600;
	color: #1d1d1f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	width: 100%;
}

.stat-change {
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
	justify-content: flex-start;
	width: 100%;
}

.positive {
	color: #34c759;
}

.negative {
	color: #ff3b30;
}

/* Dashboard Grid */
.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 1.5rem;
}

@media (max-width: 1200px) {
	.dashboard-grid {
		grid-template-columns: 1fr;
	}
}

/* Recent Activity Card */
.activity-card,
.tasks-card {
	background: white;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid #e5e5ea;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.card-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1d1d1f;
	margin: 0;
}

.card-subtitle {
	font-size: 0.875rem;
	color: #6e6e73;
	margin: 0;
}

/* Activity List */
.activity-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.activity-item {
	display: flex;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f5f5f7;
}

.activity-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.activity-icon {
	width: 40px;
	height: 40px;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.25rem;
}

.activity-icon.blue {
	background: #e8f4ff;
	color: #007aff;
}

.activity-icon.green {
	background: #e8f8f0;
	color: #34c759;
}

.activity-icon.orange {
	background: #fff4e8;
	color: #ff9500;
}

.activity-icon.purple {
	background: #f3e8ff;
	color: #af52de;
}

.activity-icon.red {
	background: #ffe8e8;
	color: #ff3b30;
}

.activity-content {
	flex: 1;
}

.activity-title {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1d1d1f;
	margin-bottom: 0.25rem;
}

.activity-user {
	font-size: 0.8125rem;
	color: #6e6e73;
}

.activity-time {
	font-size: 0.8125rem;
	color: #86868b;
	white-space: nowrap;
}

.view-all-btn {
	width: 100%;
	padding: 0.75rem;
	background: #f5f5f7;
	border: none;
	border-radius: 0.5rem;
	color: #1d1d1f;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	margin-top: 1rem;
}

.view-all-btn:hover {
	background: #e5e5ea;
}

/* Pending Tasks Card */
.task-badge {
	background: #ff3b30;
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.task-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.task-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #f5f5f7;
	border-radius: 0.5rem;
	transition: background 0.2s;
}

.task-item:hover {
	background: #e5e5ea;
}

.task-info {
	flex: 1;
}

.task-title {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1d1d1f;
	margin-bottom: 0.25rem;
}

.task-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.priority-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-weight: 600;
}

.priority-badge.high {
	background: #ffe8e8;
	color: #ff3b30;
}

.priority-badge.medium {
	background: #fff4e8;
	color: #ff9500;
}

.priority-badge.low {
	background: #e8f4ff;
	color: #007aff;
}

.task-count {
	font-size: 0.8125rem;
	color: #6e6e73;
}

.task-action {
	color: #007aff;
	font-size: 0.875rem;
	text-decoration: none;
	font-weight: 500;
}

.task-action:hover {
	text-decoration: underline;
}

/* Dark Mode for Home Page */
:root.dark .welcome-text h1 {
	color: var(--text-primary);
}

:root.dark .welcome-text p {
	color: var(--text-secondary);
}

:root.dark .stat-card,
:root.dark .activity-card,
:root.dark .tasks-card {
	background: var(--card-bg);
	border-color: var(--sidebar-border);
}

:root.dark .stat-value,
:root.dark .card-title,
:root.dark .activity-title,
:root.dark .task-title {
	color: var(--text-primary);
}

:root.dark .stat-title,
:root.dark .card-subtitle,
:root.dark .activity-user,
:root.dark .activity-time,
:root.dark .task-count {
	color: var(--text-secondary);
}

:root.dark .btn-full-report {
	background: var(--card-bg);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

:root.dark .btn-full-report:hover {
	background: var(--sidebar-hover);
}

:root.dark .task-item {
	background: var(--input-bg);
}

:root.dark .task-item:hover {
	background: var(--sidebar-hover);
}

:root.dark .view-all-btn {
	background: var(--input-bg);
	color: var(--text-primary);
}

:root.dark .view-all-btn:hover {
	background: var(--sidebar-hover);
}

/* ========================================
   DASHBOARD CHARTS SECTION
   ======================================== */

.dashboard-charts-section {
	background: white;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid #e5e5ea;
	margin-bottom: 2rem;
}

.chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.chart-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1d1d1f;
	margin: 0;
}

.chart-period-selector {
	display: flex;
	gap: 0.5rem;
}

.period-btn {
	padding: 0.5rem 1rem;
	border: 1px solid #d2d2d7;
	background: white;
	color: #1d1d1f;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.period-btn:hover {
	background: #f5f5f7;
}

.period-btn.active {
	background: #007aff;
	color: white;
	border-color: #007aff;
}

.charts-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.chart-card {
	background: #f5f5f7;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid #e5e5ea;
}

.chart-card-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #6e6e73;
	margin: 0 0 1rem 0;
	text-align: center;
}

.chart-card canvas {
	max-height: 250px;
}

/* Dark Mode for Dashboard Charts */
:root.dark .dashboard-charts-section,
:root.dark .chart-card {
	background: var(--card-bg);
	border-color: var(--sidebar-border);
}

:root.dark .chart-title {
	color: var(--text-primary);
}

:root.dark .chart-card-title {
	color: var(--text-secondary);
}

:root.dark .period-btn {
	background: var(--card-bg);
	border-color: var(--sidebar-border);
	color: var(--text-primary);
}

:root.dark .period-btn:hover {
	background: var(--sidebar-hover);
}

:root.dark .period-btn.active {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

:root.dark .chart-card {
	background: var(--input-bg);
}

/* Responsive Charts */
@media (max-width: 768px) {
	.charts-container {
		grid-template-columns: 1fr;
	}
	
	.chart-header {
		flex-direction: column;
		align-items: stretch;
	}
	
	.chart-period-selector {
		flex-wrap: wrap;
	}
	
	.period-btn {
		flex: 1;
		min-width: calc(50% - 0.25rem);
	}
}

/* ========================================
   MOBILE PREVIEW MODAL STYLES
   ======================================== */

/* Preview Modal Overlay */
.preview-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.preview-modal-overlay.active {
	display: flex;
}

/* Preview Modal Container */
.preview-modal-container {
	position: relative;
	background-color: #fff;
	border-radius: 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	/* iPhone 16 Pro dimensions: 393 x 852 */
	width: 393px;
	max-width: 100%;
	height: 852px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

/* Preview Modal Header */
.preview-modal-header {
	background-color: #f8f9fa;
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.preview-modal-title {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

.preview-close-btn {
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.preview-close-btn:hover {
	background-color: #e5e7eb;
}

.preview-close-btn i {
	font-size: 20px;
}

/* Preview Modal Body */
.preview-modal-body {
	flex: 1;
	overflow-y: auto;
	background-color: #f3f4f6;
	padding: 16px;
}

/* Dark Mode for Preview Modal */
:root.dark .preview-modal-container {
	background-color: var(--card-bg);
}

:root.dark .preview-modal-header {
	background-color: var(--input-bg);
	border-bottom-color: var(--sidebar-border);
}

:root.dark .preview-modal-title {
	color: var(--text-primary);
}

:root.dark .preview-close-btn {
	color: var(--text-secondary);
}

:root.dark .preview-close-btn:hover {
	background-color: var(--sidebar-hover);
}

:root.dark .preview-modal-body {
	background-color: var(--body-bg);
}

/* Mobile Preview Content Styles */
.preview-content {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.preview-content h1 {
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 12px;
}

.preview-content h2 {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 12px;
}

.preview-content p {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
}

.preview-image {
	width: 100%;
	border-radius: 12px;
	margin-bottom: 16px;
}

.preview-section {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-badge {
	display: inline-block;
	background-color: #dbeafe;
	color: #1e40af;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 8px;
}

.preview-stat-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: #6b7280;
}

.preview-action-buttons {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	margin: 16px 0;
}

.preview-action-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: transparent;
	border: none;
	color: #1f2937;
	font-size: 14px;
	cursor: pointer;
}

.preview-list-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.preview-bullet {
	width: 6px;
	height: 6px;
	background-color: #10b981;
	border-radius: 50%;
	margin-top: 6px;
	flex-shrink: 0;
}

.preview-feature-icon {
	color: #10b981;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Dark Mode for Preview Content */
:root.dark .preview-section {
	background-color: var(--card-bg);
}

:root.dark .preview-content h1,
:root.dark .preview-content h2 {
	color: var(--text-primary);
}

:root.dark .preview-content p {
	color: var(--text-secondary);
}

:root.dark .preview-action-btn {
	color: var(--text-primary);
}

:root.dark .preview-action-buttons {
	border-color: var(--sidebar-border);
}

/* Responsive Preview Modal */
@media (max-width: 480px) {
	.preview-modal-container {
		width: 100%;
		height: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
	
	.preview-modal-overlay {
		padding: 0;
	}
}
