:root {
	--mixum-primary: #2563eb;
	--mixum-secondary: #7c3aed;
	--mixum-success: #16a34a;
	--mixum-warning: #d97706;
	--mixum-danger: #dc2626;
	--mixum-dark: #1e293b;
	--mixum-light: #f8fafc;
	--mixum-font-sans: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
}

body {
	font-family: var(--mixum-font-sans);
}

.navbar-brand-box {
	background: var(--mixum-primary) !important;
}

.btn-primary {
	background-color: var(--mixum-primary);
	border-color: var(--mixum-primary);
}

.btn-primary:hover {
	background-color: #1d4ed8;
	border-color: #1d4ed8;
}

.card-animate {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-animate:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mixum-tab-nav .nav-link {
	color: #64748b;
	border: none;
	padding: 8px 16px;
	font-weight: 500;
}
.mixum-tab-nav .nav-link.active {
	color: var(--mixum-primary);
	border-bottom: 2px solid var(--mixum-primary);
	background: transparent;
}

.mixum-chat-message {
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 12px;
	max-width: 80%;
}
.mixum-chat-message.sent {
	background: #eff6ff;
	margin-left: auto;
}
.mixum-chat-message.received {
	background: #f1f5f9;
}
.mixum-chat-message .author {
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 4px;
}
.mixum-chat-message .time {
	font-size: 0.75rem;
	color: #94a3b8;
}
.mixum-chat-message .internal-badge {
	font-size: 0.7rem;
	background: #fef3c7;
	color: #92400e;
	padding: 2px 6px;
	border-radius: 4px;
}

.table .badge {
	font-weight: 500;
	font-size: 0.75rem;
}

.ecommerce-product-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}
.ecommerce-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.ecommerce-product-card .product-img {
	height: 180px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ecommerce-product-card .product-img img {
	max-height: 160px;
	object-fit: contain;
}

.cart-sidebar {
	position: sticky;
	top: 80px;
}

.kpi-card .kpi-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.form-section-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding-bottom: 8px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
}
.status-dot.success { background: var(--mixum-success); }
.status-dot.warning { background: var(--mixum-warning); }
.status-dot.danger { background: var(--mixum-danger); }
.status-dot.info { background: var(--mixum-primary); }

/* --- Global Search Dropdown --- */
.global-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	min-width: 380px;
	max-height: 420px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	z-index: 1060;
	margin-top: 2px;
}
.gs-group { padding: 4px 0; }
.gs-group + .gs-group { border-top: 1px solid #f1f5f9; }
.gs-group-title {
	padding: 6px 14px 4px;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #94a3b8;
}
.gs-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	text-decoration: none;
	color: #1e293b;
	transition: background .15s;
	cursor: pointer;
}
.gs-item:hover, .gs-item-active {
	background: #f1f5f9;
	color: #1e293b;
	text-decoration: none;
}
.gs-item-icon {
	font-size: 1.1rem;
	color: #64748b;
	flex-shrink: 0;
	width: 22px;
	text-align: center;
}
.gs-item-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.gs-item-title {
	font-size: .85rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gs-item-title mark {
	background: #fef08a;
	padding: 0 1px;
	border-radius: 2px;
}
.gs-item-sub {
	font-size: .75rem;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gs-item-badge {
	font-size: .65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #94a3b8;
	flex-shrink: 0;
	padding: 2px 6px;
	background: #f1f5f9;
	border-radius: 4px;
}
.gs-empty {
	padding: 20px 14px;
	text-align: center;
	color: #94a3b8;
	font-size: .85rem;
}
.gs-empty i { margin-right: 4px; }

#globalSearchWrapper .position-relative { position: relative; }
#globalSearchWrapper .search-widget-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	color: #94a3b8;
	pointer-events: none;
}
#globalSearchWrapper .search-widget-icon:first-of-type {
	left: 10px;
}
#globalSearchWrapper #globalSearchClear {
	right: 10px;
	left: auto;
	pointer-events: auto;
	cursor: pointer;
}
#globalSearchWrapper #globalSearchClear:hover { color: #475569; }
#globalSearchWrapper #globalSearchInput {
	padding-left: 34px;
	padding-right: 30px;
}

[data-bs-theme="dark"] .global-search-results {
	background: #1e293b;
	border-color: #334155;
}
[data-bs-theme="dark"] .gs-item { color: #e2e8f0; }
[data-bs-theme="dark"] .gs-item:hover,
[data-bs-theme="dark"] .gs-item-active { background: #334155; color: #f1f5f9; }
[data-bs-theme="dark"] .gs-group + .gs-group { border-top-color: #334155; }
[data-bs-theme="dark"] .gs-item-badge { background: #334155; color: #94a3b8; }
[data-bs-theme="dark"] .gs-item-title mark { background: #854d0e; color: #fef08a; }
[data-bs-theme="dark"] #globalSearchClear { color: #64748b; }
[data-bs-theme="dark"] #globalSearchClear:hover { color: #cbd5e1; }

[data-bs-theme="dark"] .card {
	background: #1e293b;
	border-color: #334155;
}
[data-bs-theme="dark"] .table {
	color: #cbd5e1;
}
