/* ==========================================================================
   WAT3D Email Marketing - Modern Design System
   ========================================================================== */

/* 1. CSS Variables
   ========================================================================== */
:root {
	/* Brand Colors */
	--primary: #4f46e5;
	--primary-hover: #4338ca;
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

	--secondary: #64748b;
	--secondary-hover: #4b5563;
	--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #3b82f6;

	/* Text */
	--text-main: #1e293b;
	--text-dark: #0f172a;
	--text-muted: #64748b;
	--text-light: #94a3b8;

	/* Surface & Borders */
	--bg-main: #f8fafc;
	--bg-card: #ffffff;
	--border: #e2e8f0;

	/* Metrics */
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 16px;
	--shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
	--shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

	/* Layout */
	--container-max: 1400px;
	--nav-height: 70px;
}

/* 2. Base Styles & Typography
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-main);
	color: var(--text-main);
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-dark);
	margin: 0 0 1rem 0;
	font-weight: 800;
	line-height: 1.2;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: all 0.2s;
}

a:hover {
	color: var(--primary-hover);
}

/* 3. Layout components
   ========================================================================== */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

main {
	margin-top: var(--nav-height);
	min-height: calc(100vh - var(--nav-height));
	padding-bottom: 60px;
}

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

.grid-responsive {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.grid-responsive {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.grid-responsive {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.flex {
	display: flex;
}

.flex-column {
	flex-direction: column;
}

.align-center {
	align-items: center;
}

.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.justify-between {
	justify-content: space-between;
}

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

.justify-end {
	justify-content: flex-end;
}

.flex-wrap {
	flex-wrap: wrap;
}

.w-100 {
	width: 100%;
}

.h-100 {
	height: 100%;
}

/* Spacing Utilities */
.gap-8 {
	gap: 8px;
}

.gap-10 {
	gap: 10px;
}

.gap-12 {
	gap: 12px;
}

.gap-16 {
	gap: 16px;
}

.gap-20 {
	gap: 20px;
}

.gap-24 {
	gap: 24px;
}

.gap-30 {
	gap: 30px;
}

.gap-40 {
	gap: 40px;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mb-8 {
	margin-bottom: 8px;
}

.mb-12 {
	margin-bottom: 12px;
}

.mb-16 {
	margin-bottom: 16px;
}

.mb-20 {
	margin-bottom: 20px;
}

.mb-24 {
	margin-bottom: 24px;
}

.mb-30 {
	margin-bottom: 30px;
}

.mb-40 {
	margin-bottom: 40px;
}

.mb-60 {
	margin-bottom: 60px;
}

.mt-auto {
	margin-top: auto;
}

.mt-20 {
	margin-top: 20px;
}

.mt-30 {
	margin-top: 30px;
}

.mt-40 {
	margin-top: 40px;
}

.py-12 {
	padding-top: 12px;
	padding-bottom: 12px;
}

.pt-30 {
	padding-top: 30px;
}

/* 4. Core Components
   ========================================================================== */

/* Cards */
.card {
	background: var(--bg-card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.card:hover {
	box-shadow: var(--shadow);
}

.card-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.01);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-body {
	padding: 24px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	font-family: inherit;
	text-decoration: none;
}

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

.btn-primary:hover {
	box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
	transform: translateY(-1px);
}

.btn-secondary {
	background: #1e293b;
	color: white !important;
}

.btn-secondary:hover {
	background: #0f172a;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-main) !important;
}

.btn-outline:hover {
	background: var(--bg-main);
	border-color: var(--secondary);
}

.btn-danger {
	background: #fee2e2;
	color: var(--danger) !important;
}

.btn-danger:hover {
	background: #fecaca;
}

/* Tables */
.table-container {
	overflow-x: auto;
	background: white;
	border-radius: var(--radius-sm);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th {
	background: rgba(0, 0, 0, 0.02);
	padding: 12px 16px;
	text-align: left;
	font-weight: 700;
	color: var(--text-muted);
	border-bottom: 2px solid var(--border);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

td {
	padding: 16px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}

tr:last-child td {
	border-bottom: none;
}

tr:hover td {
	background: rgba(0, 0, 0, 0.01);
}

/* Forms */
.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-dark);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.2s;
	background: white;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Stats */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: white;
	border-radius: var(--radius-sm);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
}

.stat-card-gradient {
	background: var(--primary-gradient);
	color: white;
	border: none;
}

.stat-label {
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin-bottom: 8px;
}

.stat-card-gradient .stat-label {
	color: rgba(255, 255, 255, 0.8);
}

.stat-value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-dark);
}

.stat-card-gradient .stat-value {
	color: white;
}

/* Badges */
.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
}

.badge-success {
	background: #d1fae5;
	color: #065f46;
}

.badge-danger {
	background: #fee2e2;
	color: #991b1b;
}

.badge-warning {
	background: #fef3c7;
	color: #92400e;
}

.badge-info {
	background: #e0f2fe;
	color: #0369a1;
}

/* Navbar */
.navbar {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--nav-height);
	display: flex;
	align-items: center;
}

.navbar-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.navbar-logo img {
	height: 32px;
	width: auto;
}

.nav-links {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 4px;
}

.nav-link {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-link:hover {
	color: var(--primary);
	background: rgba(79, 70, 229, 0.05);
}

.nav-link.active {
	color: var(--primary);
	background: rgba(79, 70, 229, 0.1);
	font-weight: 700;
}

/* Dropdown */
.dropdown {
	position: relative;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	min-width: 200px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.2s ease;
	z-index: 1100;
	margin-top: 8px;
}

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

.dropdown-item {
	display: block;
	padding: 10px 16px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
}

.dropdown-item:hover {
	background: var(--bg-main);
	color: var(--primary);
	padding-left: 20px;
}

/* 5. Utility Classes
   ========================================================================== */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

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

.text-success {
	color: var(--success);
}

.text-warning {
	color: var(--warning);
}

.text-danger {
	color: var(--danger);
}

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

.text-white {
	color: white;
}

.fw-400 {
	font-weight: 400;
}

.fw-500 {
	font-weight: 500;
}

.fw-600 {
	font-weight: 600;
}

.fw-700 {
	font-weight: 700;
}

.fw-800 {
	font-weight: 800;
}

.gradient-text {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.m-0 {
	margin: 0 !important;
}

/* 6. Feature Specific Components
   ========================================================================== */

/* Editor Specific */
.code-editor {
	font-family: 'JetBrains Mono', 'Menlo', monospace;
	background: #1e293b !important;
	color: #f8fafc !important;
	min-height: 500px;
	line-height: 1.7;
	font-size: 0.95rem;
}

/* Flow Editor Timeline */
.flow-steps {
	position: relative;
	margin-top: 40px;
}

.flow-steps::before {
	content: '';
	position: absolute;
	left: 30px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border);
}

.step-node {
	position: relative;
	margin-bottom: 40px;
	padding-left: 80px;
}

.step-marker {
	position: absolute;
	left: 15px;
	top: 0;
	width: 32px;
	height: 32px;
	background: var(--bg-card);
	border: 2px solid var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	font-weight: 700;
	color: var(--primary);
	box-shadow: var(--shadow-sm);
}

/* Landing Page Elements */
.hero {
	padding: 100px 0;
	text-align: center;
	background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent),
		radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent);
}

.feature-card {
	padding: 48px 32px;
	text-align: center;
	transition: transform 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-8px);
}

/* User Profile Badge */
.user-tag {
	background: var(--bg-main);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--primary);
	letter-spacing: 0.05em;
}

.user-tag.inactive {
	background: #fee2e2;
	color: var(--danger);
}

/* 7. Template Editor Specific Styles
   ========================================================================== */

/* Editor Container */
.editor-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
}

.centered-header {
	text-align: center;
	margin-bottom: 48px;
}

.centered-header h1 {
	font-size: 2.5rem;
	margin-bottom: 8px;
	letter-spacing: -0.025em;
}

.centered-header p {
	color: var(--text-muted);
	font-size: 1.1rem;
}

.editor-grid {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 32px;
	align-items: start;
}

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

/* Back Link */
.back-link {
	text-decoration: none;
	color: var(--secondary);
	font-size: 0.9rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Personalization Tags */
.pers-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: white;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-weight: 600;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.2s;
}

.pers-toggle-btn:hover {
	background: var(--bg-main);
	border-color: var(--primary);
}

/* Version History */
.version-row {
	transition: all 0.2s;
	border: 1px solid var(--border);
}

.version-row:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-sm);
}

.active-v {
	border-left: 4px solid var(--success) !important;
}

.loaded-v {
	background: #f1f5f9 !important;
	border-color: var(--primary) !important;
}

/* Sidebar Cards */
.sidebar-card {
	margin-bottom: 24px;
}

.sidebar-header {
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.sidebar-header h3 {
	margin: 0;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.collapsed .content-area {
	display: none;
}

.collapsed .rotate-icon {
	transform: rotate(-90deg);
}

.rotate-icon {
	transition: transform 0.3s;
}

/* Quill Editor Styling */
#editor-container {
	min-height: 400px;
	background: white;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.ql-toolbar {
	border-top-left-radius: var(--radius-sm);
	border-top-right-radius: var(--radius-sm);
	background: var(--bg-main);
	border-bottom: 2px solid var(--border) !important;
	display: flex;
	align-items: center;
	padding: 8px;
	gap: 4px;
}

/* Quill Toolbar Format Groups */
.ql-toolbar .ql-formats {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-right: 8px;
}

/* Quill Toolbar Button Styling */
.ql-toolbar button {
	width: 28px;
	height: 28px;
	padding: 3px 5px;
	display: inline-block;
}

.ql-toolbar button svg {
	width: 18px;
	height: 18px;
}

.ql-toolbar .ql-stroke {
	fill: none;
	stroke: #444;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ql-toolbar .ql-fill {
	fill: #444;
	stroke: none;
}

.ql-toolbar .ql-even {
	fill-rule: evenodd;
}

.ql-toolbar .ql-thin {
	stroke-width: 1;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button:focus .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
	stroke: var(--primary);
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button:focus .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
	fill: var(--primary);
}

.ql-container {
	border-bottom-left-radius: var(--radius-sm);
	border-bottom-right-radius: var(--radius-sm);
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ql-editor {
	min-height: 350px;
	line-height: 1.6;
}

.ql-editor p {
	margin-bottom: 1em;
}

/* Form Helper Text */
.form-helper-text {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 12px;
}

/* Checkbox Container */
.checkbox-container {
	background: #f8fafc;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid var(--border);
	margin-bottom: 32px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin-top: 2px;
}

.checkbox-label-text {
	font-weight: 800;
	font-size: 1rem;
	display: block;
	margin-bottom: 4px;
}

.checkbox-label-description {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* Button Group */
.button-group {
	display: flex;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.button-group .btn:first-child {
	flex: 2;
}

.button-group .btn:last-child {
	flex: 1;
}

/* Version Row Styles */
.version-info {
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 10px;
	background: white;
}

.version-info-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.version-number {
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--primary);
}

.version-date {
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-top: 2px;
}

.version-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.version-badge-live {
	background: #dcfce7;
	color: #166534;
	font-size: 0.6rem;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 800;
}

.version-load-link {
	color: var(--primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.8rem;
}

.version-set-live-btn {
	background: #4f46e5;
	color: white;
	border: none;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Test Send Warning Button */
.btn-warning {
	background: var(--warning);
	color: white;
}

.btn-warning:hover {
	background: #d97706;
}

/* Empty State */
.empty-state {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
	padding: 20px 0;
}

/* Sidebar Content */
.sidebar-content {
	padding: 0 24px 24px 24px;
}

/* Test Card Border */
.test-card-border {
	border-top: 4px solid var(--warning);
}

/* Editor Card Header Layout */
.editor-card-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.editor-card-header .card-title {
	margin: 0;
}

/* Personalisation Tags Container */
.pers-tags-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* Tags Grid */
.tags-grid {
	display: none;
	width: 100%;
	max-width: 800px;
	background: white;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 20px;
	margin-top: 8px;
	box-shadow: var(--shadow-sm);
}

.tags-grid.active {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.tag-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tag-group-title {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--text-dark);
	margin-bottom: 4px;
}

.tag-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag-btn {
	padding: 6px 12px;
	background: var(--bg-main);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.2s;
}

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

/* Quill Link Tooltip Styling */
.ql-tooltip {
	background: white;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	border-radius: var(--radius-sm);
	padding: 12px;
}

.ql-tooltip input[type="text"] {
	border: 1px solid var(--border);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
}

.ql-tooltip input[type="text"]::placeholder {
	color: var(--text-muted);
}

/* Add label-like text before the input */
.ql-tooltip::before {
	content: "Enter URL:";
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 6px;
}

/* ==========================================================================
   8. Admin Dashboard Standardized Classes
   ========================================================================== */

.admin-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 60px 24px 40px 24px;
}

.admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 40px;
}

.admin-title {
	font-size: 2.5rem;
	color: var(--text-dark);
	margin: 0;
}

.admin-card {
	background: var(--bg-card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
	overflow: hidden;
}

.admin-card-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.01);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.admin-card-body {
	padding: 24px;
}

.admin-card-footer {
	background: var(--bg-main);
	padding: 20px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Admin Table */
.admin-table-container {
	overflow-x: auto;
	width: 100%;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
}

.admin-table th {
	background: var(--bg-main);
	padding: 15px;
	color: var(--text-muted);
	font-weight: 600;
	text-align: left;
	border-bottom: 2px solid var(--border);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.admin-table td {
	padding: 15px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}

.admin-table tr:hover td {
	background: rgba(0, 0, 0, 0.02);
}

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

/* Admin Badges */
.admin-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	gap: 4px;
}

.admin-badge-success {
	background: #d1fae5;
	color: #065f46;
}

.admin-badge-danger {
	background: #fee2e2;
	color: #991b1b;
}

.admin-badge-warning {
	background: #fef3c7;
	color: #92400e;
}

.admin-badge-info {
	background: #e0f2fe;
	color: #0369a1;
}

.admin-badge-muted {
	background: #f3f4f6;
	color: #4b5563;
}

/* Admin Grid/Flex Utilities */
.admin-flex {
	display: flex;
}

.admin-flex-column {
	flex-direction: column;
}

.admin-align-center {
	align-items: center;
}

.admin-justify-between {
	justify-content: space-between;
}

.admin-gap-4 {
	gap: 4px;
}

.admin-gap-8 {
	gap: 8px;
}

.admin-gap-12 {
	gap: 12px;
}

.admin-gap-16 {
	gap: 16px;
}

/* Form Elements */
.admin-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
}

.admin-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* Modals */
.admin-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.admin-modal {
	background: white;
	border-radius: var(--radius);
	padding: 32px;
	width: 100%;
	max-width: 450px;
	box-shadow: var(--shadow-lg);
	position: relative;
}

/* Responsive Table Wrapper for Mobile */
@media (max-width: 768px) {
	.admin-title {
		font-size: 1.8rem;
	}

	.admin-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.admin-table thead {
		display: none;
	}

	.admin-table tr {
		display: block;
		border-bottom: 2px solid var(--border);
		padding: 10px 0;
	}

	.admin-table td {
		display: flex;
		justify-content: space-between;
		padding: 8px 15px;
		border: none;
		text-align: right;
	}

	.admin-table td::before {
		content: attr(data-label);
		font-weight: 700;
		text-align: left;
		color: var(--text-muted);
		font-size: 0.75rem;
		text-transform: uppercase;
	}
}

/* Admin Bulk Actions Bar */
.admin-bulk-bar {
	display: none;
	background: var(--primary);
	color: white;
	padding: 15px 24px;
	border-radius: var(--radius-sm);
	margin-bottom: 24px;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--shadow);
}

.admin-bulk-bar-actions {
	display: flex;
	gap: 12px;
}

/* Progress Bars */
.admin-progress-container {
	width: 100%;
	height: 8px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	overflow: hidden;
	margin: 8px 0;
}

.admin-progress-bar {
	height: 100%;
	transition: width 0.3s ease;
}

.admin-progress-success {
	background: var(--success);
}

.admin-progress-warning {
	background: var(--warning);
}

.admin-progress-danger {
	background: var(--danger);
}

/* Stat Coloring */
.admin-text-success {
	color: var(--success) !important;
	font-weight: 600;
}

.admin-text-warning {
	color: var(--warning) !important;
	font-weight: 600;
}

.admin-text-danger {
	color: var(--danger) !important;
	font-weight: 600;
}

.admin-text-info {
	color: var(--info) !important;
	font-weight: 600;
}

/* Notifications (Toasts) */
.admin-notification {
	position: fixed;
	top: 24px;
	right: 24px;
	padding: 16px 24px;
	border-radius: var(--radius-sm);
	color: white;
	z-index: 3000;
	box-shadow: var(--shadow-lg);
	max-width: 400px;
	font-weight: 600;
	animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

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

.admin-notification-success {
	background: var(--success);
}

.admin-notification-danger {
	background: var(--danger);
}

/* Form Helpers */
.admin-form-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.admin-form-col {
	flex: 1;
	min-width: 200px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Font Weights */
.fw-400 {
	font-weight: 400 !important;
}

.fw-500 {
	font-weight: 500 !important;
}

.fw-600 {
	font-weight: 600 !important;
}

.fw-700 {
	font-weight: 700 !important;
}

/* Font Sizes */
.fs-xs {
	font-size: 0.75rem !important;
}

.fs-sm {
	font-size: 0.85rem !important;
}

.fs-md {
	font-size: 1rem !important;
}

.fs-lg {
	font-size: 1.25rem !important;
}

.fs-xl {
	font-size: 1.5rem !important;
}

/* Colors */
.color-dark {
	color: var(--text-dark) !important;
}

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

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

/* Text Utilities */
.text-center {
	text-align: center !important;
}

.text-right {
	text-align: right !important;
}

.text-left {
	text-align: left !important;
}

.fst-italic {
	font-style: italic !important;
}

/* Spacing Helpers */
.m-0 {
	margin: 0 !important;
}

.mt-4 {
	margin-top: 4px !important;
}

.mt-8 {
	margin-top: 8px !important;
}

.mt-12 {
	margin-top: 12px !important;
}

.mt-16 {
	margin-top: 16px !important;
}

.mt-20 {
	margin-top: 20px !important;
}

.mb-4 {
	margin-bottom: 4px !important;
}

.mb-8 {
	margin-bottom: 8px !important;
}

.mb-10 {
	margin-bottom: 10px !important;
}

.mb-12 {
	margin-bottom: 12px !important;
}

.mb-16 {
	margin-bottom: 16px !important;
}

.mb-20 {
	margin-bottom: 20px !important;
}

.mb-30 {
	margin-bottom: 30px !important;
}

.p-24 {
	padding: 24px !important;
}

.p-30 {
	padding: 30px !important;
}

/* Modal Helpers */
.admin-modal-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 16px 0;
}

.admin-modal-body {
	margin-bottom: 24px;
	color: var(--text-muted);
}

.admin-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.admin-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-dark);
}

.admin-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	transition: border-color 0.2s;
}

.admin-input:focus {
	border-color: var(--primary);
	outline: none;
}

/* Gradient Text */
.gradient-text {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* Sections */
.hero {
	padding: 100px 20px;
	text-align: center;
	max-width: 900px !important;
}

.hero h1 {
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	margin-bottom: 24px;
}

.hero p {
	font-size: 1.25rem;
	color: var(--text-muted);
	margin-bottom: 40px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.feature-card {
	padding: 40px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
}

.feature-icon {
	font-size: 3rem;
	margin-bottom: 20px;
	display: block;
}

.cta-section {
	background: var(--primary-gradient);
	color: white;
	padding: 80px 40px;
	border-radius: var(--radius-lg);
	margin: 60px auto;
}

.cta-section h2,
.cta-section p {
	color: white !important;
}

/* Specific Buttons */
.btn-white {
	background: white !important;
	color: var(--primary) !important;
	padding: 18px 48px !important;
	border-radius: var(--radius) !important;
	font-weight: 800 !important;
	border: none !important;
}

.btn-white:hover {
	background: #f8fafc !important;
	transform: scale(1.05);
}