:root {
	--bs-body-color: #333333;
	--bs-primary: #007bff;
	--bs-primary-rgb: 0, 123, 255;
}

/* Override primary button colors */
.btn-primary {
	--bs-btn-bg: #007bff;
	--bs-btn-border-color: #007bff;
	--bs-btn-hover-bg: #0069d9;
	--bs-btn-hover-border-color: #0062cc;
	--bs-btn-active-bg: #0062cc;
	--bs-btn-active-border-color: #005cbf;
	--bs-btn-disabled-bg: #007bff;
	--bs-btn-disabled-border-color: #007bff;
}

.btn-outline-primary {
	--bs-btn-color: #007bff;
	--bs-btn-border-color: #007bff;
	--bs-btn-hover-color: #ffffff;
	--bs-btn-hover-bg: #007bff;
	--bs-btn-hover-border-color: #007bff;
	--bs-btn-focus-shadow-rgb: 0, 123, 255;
	--bs-btn-active-color: #ffffff;
	--bs-btn-active-bg: #007bff;
	--bs-btn-active-border-color: #007bff;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #007bff;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #007bff;
	--bs-gradient: none;
}

h5 {
	margin-top: 0.7em;
}

/* Hide number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

input::placeholder {
	color: #ccc !important;
}

textarea::placeholder {
	color: #ccc !important;
}

/* Help Icon Styles */
.help-icon {
	color: #6c757d;
	cursor: help;
}

.help-icon:hover {
	color: #495057;
}

.help-tooltip {
	max-width: 400px;
	font-size: 13px;
	line-height: 1.4;
	background-color: #0dcaf0 !important;
	color: white;
	border-radius: 6px;
	padding: 8px 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-align: left !important;
}

.help-tooltip .tooltip-arrow {
	border-top-color: #0dcaf0 !important;
}

/* Override Bootstrap tooltip styles */
.tooltip {
	--bs-tooltip-bg: #0dcaf0 !important;
	--bs-tooltip-max-width: 400px !important;
}

.tooltip .tooltip-inner {
	background-color: #0dcaf0 !important;
	max-width: 400px !important;
	text-align: left !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
	border-top-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
	border-right-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
	border-bottom-color: #0dcaf0 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
	border-left-color: #0dcaf0 !important;
}

.section-heading-with-help {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dashboard-card {
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dashboard-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card:active {
	transform: translateY(0);
}

.btn-secondary {
	--bs-btn-color: #ffffff;
	--bs-btn-bg: #80654d;
	--bs-btn-border-color: #80654d;
	--bs-btn-hover-color: #ffffff;
	--bs-btn-hover-bg: #705943;
	--bs-btn-hover-border-color: #705943;
	--bs-btn-focus-shadow-rgb: 135, 46, 194;
	--bs-btn-active-color: #ffffff;
	--bs-btn-active-bg: #705943;
	--bs-btn-active-border-color: #705943;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #ffffff;
	--bs-btn-disabled-bg: #80654d;
	--bs-btn-disabled-border-color: #80654d;
}

.btn-outline-secondary {
	--bs-btn-color: #80654d;
	--bs-btn-border-color: #80654d;
	--bs-btn-hover-color: #ffffff;
	--bs-btn-hover-bg: #80654d;
	--bs-btn-hover-border-color: #80654d;
	--bs-btn-focus-shadow-rgb: 114, 9, 183;
	--bs-btn-active-color: #ffffff;
	--bs-btn-active-bg: #80654d;
	--bs-btn-active-border-color: #80654d;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #80654d;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #80654d;
	--bs-gradient: none;
}

.topbar {
	background: #ffffff;
	margin-left: 230px !important;
}

.topbar .btn-outline-primary,
.topbar .btn-outline-success {
	font-weight: 600;
	font-size: 13px;
}

.topbar .d-flex>span {
	font-weight: 600;
}

.dropdown button::after {
	content: none;
	background-color: white;
	border: 1px solid #ced4da;
}

/* Menu Background Color */
.main-nav {
	background-color: #f4f3f0 !important;
	min-width: 230px !important;
	width: 230px !important;
}

/* Menu Text Color */
#navbar-nav .nav-item .nav-link .nav-text,
.menu-title,
#navbar-nav .nav-item .nav-link .nav-icon,
#navbar-nav .sub-nav-item .sub-nav-link {
	color: #333333 !important;
}

/* Hover/Active state */
#navbar-nav .nav-item .nav-link:hover,
#navbar-nav .nav-item .nav-link.active {
	background-color: #ebe6e0 !important;
}

#navbar-nav .sub-nav-item .sub-nav-link:hover {
	transform: none !important;
}

.navbar-header {
	padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.button-toggle-menu {
	border: 1px #ddd solid;
}

.logo,
.logo-box img {
	/*filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));*/
}

.page-content {
	margin-left: 230px !important;
}

.footer {
	margin-left: 230px !important;
}

/* === INDEX.PHP === */
.video-play-icon {
	transition: transform 0.2s ease-in-out;
}

.video-card:hover .video-play-icon {
	transform: scale(1.1);
}

/* Remove animation from widget icons */
.widget-icon {
	-webkit-animation: none !important;
	animation: none !important;
}

.header-checkbox {
	transform: scale(1.2);
}

.selected-row {
	background-color: #e8f5e8;
}

.table th {
	background-color: #f8f9fa;
	font-weight: 600;
}

/* === LOGIN & SIGNUP PAGES === */
.auth-body {
	background-color: #f4f3f0;
}

.auth-card {
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === SUPPORT PAGE === */
.contact-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f3f4;
}

.contact-item:last-child {
	border-bottom: none;
}

.chat-messages {
	background-color: #fafbfc;
	border-radius: 0.375rem;
	padding: 1rem;
}

.message-item {
	animation: fadeInUp 0.3s ease-in-out;
}

.message-content {
	max-width: 80%;
}

.suggested-questions .btn {
	font-size: 0.875rem;
	white-space: nowrap;
}

.avatar-sm {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bg-soft {
	background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success-subtle {
	background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

#chat-messages::-webkit-scrollbar {
	width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.typing-dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.typing-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #6c757d;
	animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
	animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes typing {

	0%,
	80%,
	100% {
		transform: scale(0);
		opacity: 0.5;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Fade animations for content refresh */
@keyframes fadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

#level2-actions-container.fade-out {
	animation: fadeOut 0.15s ease forwards;
}

#level2-actions-container.fade-in {
	animation: fadeIn 0.3s ease forwards;
}

.intent-btn-item {
	transition: all 0.2s ease;
	border-color: #dee2e6;
	--bs-btn-hover-color: #333333;
	--bs-btn-active-color: #333333;
	color: #333333;
}

.intent-btn-item:hover {
	background-color: #f8f9fa;
	border-color: #adb5bd;
	color: #333333;
}

.intent-btn-item.btn-primary {
	background-color: #0d6efd;
	border-color: #0d6efd;
	--bs-btn-hover-color: #ffffff;
	--bs-btn-active-color: #ffffff;
	color: #ffffff;
}

.intent-btn-item.btn-primary:hover {
	background-color: #0b5ed7;
	border-color: #0a58ca;
	color: #ffffff;
}

.intent-btn-item i {
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.intent-btn-item:hover i {
	opacity: 1;
}

/* 2-Panel Layout Container */
.row.g-3 {
	min-height: calc(100vh - 450px);
}

/* Left Panel Scrolling */
#intent-buttons-container {
	border-radius: 4px;
}

#intent-buttons-container button {
	transition: all 0.15s ease;
}

/* Right Panel Actions Scrolling */
#level2-actions-container {
	border-radius: 4px;
}

/* Responsive behavior for smaller screens */
@media (max-width: 991.98px) {
	.row.g-3 {
		min-height: auto;
	}

	.intent-btn-item {
		margin-bottom: 0.5rem;
	}
}

/* Mobile stacking */
@media (max-width: 767.98px) {
	#intent-buttons-container {
		max-height: none !important;
		margin-bottom: 1rem;
	}

	#level2-actions-container {
		max-height: none !important;
	}
}

/* ========================================
   TOAST NOTIFICATION STYLES
   ======================================== */

/**
 * Toast Notification Styles
 * Center-top positioned toasts with auto-dismiss
 */

.toast-container-global {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 500px;
	width: calc(100% - 40px);
	pointer-events: none;
}

.toast-notification {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	animation: slideDown 0.3s ease-out;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.show {
	opacity: 1;
	transform: translateY(0);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Toast Content */
.toast-content {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.toast-message {
	white-space: normal;
	word-wrap: break-word;
	line-height: 1.4;
}

/* Toast Icon */
.toast-notification .ri-icon {
	font-size: 18px;
	flex-shrink: 0;
}

/* Close Button */
.toast-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.toast-close:hover {
	opacity: 1;
}

.toast-close:active {
	opacity: 0.9;
}

/* Toast Types */

/* Success Toast */
.toast-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.toast-success .ri-icon {
	color: #28a745;
}

.toast-success .toast-close {
	color: #155724;
}

/* Error Toast */
.toast-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.toast-error .ri-icon {
	color: #dc3545;
}

.toast-error .toast-close {
	color: #721c24;
}

/* Warning Toast */
.toast-warning {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

.toast-warning .ri-icon {
	color: #ffc107;
}

.toast-warning .toast-close {
	color: #856404;
}

/* Info Toast */
.toast-info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.toast-info .ri-icon {
	color: #17a2b8;
}

.toast-info .toast-close {
	color: #0c5460;
}

/* Remove Animation */
@keyframes slideUp {
	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

/* Responsive */
@media (max-width: 480px) {
	.toast-container-global {
		max-width: calc(100% - 20px);
		width: calc(100% - 20px);
		top: 10px;
	}

	.toast-notification {
		padding: 12px 14px;
		font-size: 13px;
	}

	.toast-notification .ri-icon {
		font-size: 16px;
	}

	.toast-close {
		font-size: 16px;
	}
}