/**
 * Admin-only styles for AI Chat By AGIS plugin.
 * Scoped to body.toplevel_page_agis-chat - does not affect frontend chat.
 * Edit this file to adjust admin panel look and feel.
 */

body.toplevel_page_agis-chat {
	font-family: "SansPro", Arial, sans-serif;
	background-color: #ffffff;
	color: #333;
}

body.toplevel_page_agis-chat .navbar {
	background-color: #ffffff;
	padding: 10px 20px;
	border-bottom: 2px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

body.toplevel_page_agis-chat .navbar img {
	height: 50px;
}

body.toplevel_page_agis-chat .account-menu {
	position: relative;
	cursor: pointer;
}

body.toplevel_page_agis-chat .account-menu img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

body.toplevel_page_agis-chat .dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 50px;
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	min-width: 150px;
	padding: 10px 0;
	z-index: 1000;
}

body.toplevel_page_agis-chat .dropdown-menu a {
	display: block;
	padding: 10px 15px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
}

body.toplevel_page_agis-chat .dropdown-menu a:hover {
	background-color: #f5f5f5;
}

body.toplevel_page_agis-chat .nav-tabs .nav-link {
	font-weight: 600;
	color: #FFF;
	border: none;
	padding: 12px 20px;
}

body.toplevel_page_agis-chat .nav-tabs .nav-link.active {
	background-color: #76d949;
	color: #fff;
	border-radius: 5px;
}

body.toplevel_page_agis-chat .agis-content-section {
	padding: 20px;
}

/* Admin content areas */
body.toplevel_page_agis-chat .accountMenu {
	width: 90%;
	margin: auto;
	height: 50px;
}

body.toplevel_page_agis-chat #content-area {
	margin: -21px -20px 0;
}

body.toplevel_page_agis-chat #main-contents {
	margin: 20px;
	padding: 10px;
}

body.toplevel_page_agis-chat .custom-options-bar {
	background-color: #535151;
	padding: 10px;
}

body.toplevel_page_agis-chat .custom-btn {
	background-color: #000 !important;
	color: #fff !important;
	margin: 0 5px;
	border: none !important;
}

body.toplevel_page_agis-chat .custom-btn:hover:not(.active) {
	background-color: #478f27 !important;
	color: #fff !important;
}

body.toplevel_page_agis-chat .custom-btn.active {
	background-color: #76d949 !important;
	color: #fff !important;
}

body.toplevel_page_agis-chat .advancedOptions {
	width: 100%;
	max-width: 400px;
	margin: 10px auto;
}

body.toplevel_page_agis-chat .code {
	width: 90%;
	background: #CCC;
	padding: 15px;
	border: 1px solid #000;
}

body.toplevel_page_agis-chat #search-all-container {
	text-align: center;
	width: 60%;
	max-width: 500px;
	margin: auto;
}

/* Admin modals */
body.toplevel_page_agis-chat .modal-content {
	max-width: 90% !important;
	margin: 50px auto 0;
}

body.toplevel_page_agis-chat .modalTextArea {
	width: 90%;
	height: 300px;
	margin: 10px auto;
}

body.toplevel_page_agis-chat .editRowTextArea {
	width: 95%;
	margin: -24px auto 0;
	min-height: 115px;
}

body.toplevel_page_agis-chat .addToCollection {
	width: 80%;
	margin: auto;
}

body.toplevel_page_agis-chat .addToCollection input {
	min-width: 200px;
	width: 95%;
}

body.toplevel_page_agis-chat .addToCollection .editRowTextArea {
	min-width: 200px;
	margin-top: 0;
}

/* Admin menu */
body.toplevel_page_agis-chat .menu-container {
	width: 100%;
	background-color: #222;
	color: white;
	padding: 0;
}

body.toplevel_page_agis-chat .menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	background-color: #333;
	border-radius: 5px;
}

body.toplevel_page_agis-chat .menu-toggle {
	background: none;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

body.toplevel_page_agis-chat .nav {
	padding: 10px;
	background: #2d2d2d;
	transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
	overflow: hidden;
	max-height: 430px;
	opacity: 1;
}

body.toplevel_page_agis-chat .nav.collapsed {
	max-height: 0;
	opacity: 0;
	pointer-events: none;
}

body.toplevel_page_agis-chat .agis-content-section .btn {
	background: #3b3b3b;
	color: #FFF;
}

body.toplevel_page_agis-chat .agis-content-section #publishedStatus {
	background: blue;
}

/* Regression test table */
body.toplevel_page_agis-chat #regressionTestTable .btn {
	width: 90%;
	background: #212529;
	margin: 0px auto 10px;
}

body.toplevel_page_agis-chat #regressionTestTable textarea {
	width: 100%;
}

body.toplevel_page_agis-chat #regressionTestTable .editOptions {
	width: 40%;
	margin: 5px;
}

/* License table */
body.toplevel_page_agis-chat .licenseTable {
	width: 90%;
	max-width: 1000px;
}

body.toplevel_page_agis-chat .licenseTable button {
	margin: 10px 0;
}

body.toplevel_page_agis-chat .licenseTable tr {
	padding: 10px;
	border: 1px solid #000;
}

body.toplevel_page_agis-chat .licenseTable .licenseDomain {
	height: 50px;
	padding: 0 10px;
}

body.toplevel_page_agis-chat .licenseTable .licenseChat {
	height: 50px;
	padding: 0;
}

body.toplevel_page_agis-chat .licenseTable .licenseAudio {
	height: 50px;
	padding: 0;
}

body.toplevel_page_agis-chat #serverNotification {
	width: 100%;
	text-align: center;
}

/* Scheduling buttons */
body.toplevel_page_agis-chat .scheduling-btn-loading {
	min-width: 100px;
	position: relative;
}

body.toplevel_page_agis-chat .scheduling-btn-complete {
	background-color: #28a745 !important;
	border-color: #28a745 !important;
	color: white !important;
}

body.toplevel_page_agis-chat .spinner-border-sm {
	width: 1rem;
	height: 1rem;
	border-width: 0.1em;
}

body.toplevel_page_agis-chat .missing {
	background: #f9f9ab !important;
}

/* Admin responsive */
@media (max-width: 768px) {
	body.toplevel_page_agis-chat .nav-item {
		width: 90%;
		margin: 10px auto;
		display: block;
	}
	body.toplevel_page_agis-chat .btn-sm {
		width: 90%;
		margin: 10px auto;
		display: block;
	}
}

@media (min-width: 768px) {
	body.toplevel_page_agis-chat .menu-container {
		margin-top: -20px;
	}
	body.toplevel_page_agis-chat .menu-header {
		display: none !important;
	}
	body.toplevel_page_agis-chat #menuContent {
		max-height: none !important;
		opacity: 1 !important;
		pointer-events: auto;
	}
}
