/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

/* Set the default font family and background color for the admin area */
body {
	font-family: "Inter";
	background-color: #f0f0f1;
}

/* Set the default font family for paragraphs */
p {
	font-family: "Inter";
}

/* Set the default font family for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Inter";
}

/* Remove padding from the left side of the admin content area */
#wpcontent {
	padding-left: 0px !important;
}

/* Set the background color for elements with the class 'bg-red' */
.bg-red {
	background-color: #8c1c13;
}

/* Style the heading inside the 'manage-arena' section */
.manage-arena h3.wp-heading-inline {
	font-size: 25px;
	font-weight: 600;
	padding: 8px;
	margin: 0px;
}

/* Card styles */
.manage-arena .card,
.manage-arena .card-header {
	border: none;
	border-radius: 0px;
}

.manage-arena div.card a:hover {
	color: #8d1c12 !important;
	text-decoration: underline !important;
}

/* DataTable styles */
.manage-arena .table {
	border-collapse: collapse !important;
}

.manage-arena .table td,
.manage-arena .table th {
	padding: 0.3rem;
	vertical-align: top;
	border-top: solid #b4b4b4;
}

.manage-arena .table > :not(:first-child) {
	border: none;
}

.manage-arena table thead tr th {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	--bs-table-bg: #8d1c12;
	background-color: var(--bs-table-bg);
	border: solid #b4b4b4;
	border-collapse: collapse;
}

.manage-arena table tbody tr td {
	font-size: 14px;
	font-weight: 400;
	border: 1px solid #b4b4b4 !important;
	border-collapse: collapse !important;
}

.manage-arena table td {
	text-align: center;
}

.manage-arena table td:nth-child(2) {
	text-align: left;
}

.manage-arena .table-striped tbody tr:nth-of-type(odd) {
	background-color: #dddddd;
}

.manage-arena .table-striped tbody tr:nth-of-type(even) {
	background-color: #f0f0f1;
}

/* Action button styles */
.manage-arena .action-button {
	font-size: 14px;
	font-weight: 600;
	color: #000000;
}

.manage-arena table td button.update {
	vertical-align: top;
}

/* Ensure select elements in WordPress core UI have a max width of 100% */
.wp-core-ui select {
	max-width: 100%;
}

/* Modal styles */
.modal .control-label {
	color: #000000;
	font-size: 14px;
	font-weight: 600;
}

.modal-close {
	background-color: #000000 !important;
	opacity: 9 !important;
	padding: 0px !important;
}

.arena-action-modal .modal-content div.modal-header h4 {
	font-size: 16px;
	font-weight: 600;
	line-height: inherit;
}

.arena-action-modal .modal-content div.modal-header {
	border-color: 1px #9f9f9f;
}

.arena-action-modal .modal-content div.modal-footer {
	border: none;
}

.arena-action-modal .modal-content div.modal-footer .action-button {
	color: #fff;
	background: #8c1c13;
	border-radius: 3px;
	padding: 2px 40px;
}

.arena-action-modal .modal-content div.modal-footer .action-button:hover {
	opacity: 0.8;
}

.arena-action-modal .action-remove {
	color: #ff0000;
	font-size: 14px;
	font-weight: 600;
}

.arena-action-modal input[type="checkbox"],
.arena-action-modal input[type="radio"] {
	border: 2px solid #000000;
	border-radius: 0px;
	background: #fff;
	color: #000;
	clear: none;
	cursor: pointer;
	display: inline-block;
	line-height: 0;
	height: 20px;
	margin: -0.25rem 0.25rem 0 0;
	outline: 0;
	padding: 0 !important;
	text-align: center;
	vertical-align: middle;
	width: 20px;
	min-width: 1rem;
	-webkit-appearance: none;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	transition: 0.05s border-color ease-in-out;
}

/* Modern modal styles */
.arena-modern-modal .modal-content {
	border: none;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.arena-modern-modal .modal-header {
	background: #8c1c13;
	color: #fff;
	padding: 16px 24px;
	border-bottom: none;
}

.arena-modern-modal .modal-header h4 {
	color: #fff !important;
	font-size: 18px;
	font-weight: 600;
}

.arena-modern-modal .modal-header .btn-close {
	filter: invert(1);
	opacity: 0.8;
}

.arena-modern-modal .modal-header .btn-close:hover {
	opacity: 1;
}

.arena-modern-modal .modal-body {
	padding: 28px 24px 12px;
}

.arena-modern-modal .modal-body .form-label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.arena-modern-modal .modal-body .form-control,
.arena-modern-modal .modal-body .form-select {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: #1f2937;
	transition: border-color 0.2s, box-shadow 0.2s;
	background-color: #f9fafb;
}

.arena-modern-modal .modal-body .form-control:focus,
.arena-modern-modal .modal-body .form-select:focus {
	border-color: #8c1c13;
	box-shadow: 0 0 0 3px rgba(140, 28, 19, 0.1);
	background-color: #fff;
}

.arena-modern-modal .modal-body .form-control::placeholder {
	color: #9ca3af;
}

/* Slot duration button group */
.arena-modern-modal .btn-outline-slot {
	border: 2px solid #d1d5db;
	border-radius: 8px !important;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	background: #f9fafb;
	transition: all 0.2s;
	flex: 1;
	text-align: center;
}

.arena-modern-modal .btn-outline-slot:hover {
	border-color: #8c1c13;
	color: #8c1c13;
	background: #fef2f2;
}

.arena-modern-modal .btn-check:checked + .btn-outline-slot {
	background: #8c1c13;
	border-color: #8c1c13;
	color: #fff;
	box-shadow: 0 2px 8px rgba(140, 28, 19, 0.3);
}

/* Premium slot badges */
.arena-modern-modal .btn-check:disabled + .btn-outline-slot.slot-premium {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f3f4f6;
	border-color: #e5e7eb;
	color: #9ca3af;
}

.arena-modern-modal .badge-pro {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: #8c1c13;
	color: #fff;
	padding: 1px 6px;
	border-radius: 4px;
	vertical-align: middle;
	margin-left: 2px;
}

/* Time separator */
.arena-modern-modal .time-separator {
	font-size: 20px;
	font-weight: 600;
	color: #6b7280;
}

/* Footer buttons */
.arena-modern-modal .modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #f3f4f6;
	background: #f9fafb;
}

.arena-modern-modal .modal-footer .action-button {
	border-radius: 8px !important;
	padding: 8px 32px !important;
	font-weight: 600;
	font-size: 14px;
}

.arena-modern-modal .modal-footer .btn-cancel {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 24px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	background: #fff;
}

.arena-modern-modal .modal-footer .btn-cancel:hover {
	background: #f3f4f6;
}

/* Ensure DataTables wrapper is displayed as block */
div.dataTables_wrapper {
	display: block;
}

/* Hide notices inside the 'manage-arena' section */
section.manage-arena div.notice {
	display: none;
}

/* Pagination styles */
.manage-arena .pagination {
	font-size: 12px;
}

.manage-arena .page-link {
	color: #8c1c13;
}

.manage-arena .pagination .active button {
	color: #fff;
}

.manage-arena .page-item.active .page-link {
	background-color: #8c1c13;
	border-color: #8c1c13;
}

/* Notice styles */
.manage-arena .notice,
.manage-arena div.error,
.manage-arena div.updated {
	width: 500px;
}

.manage-arena .fs-close {
	margin-top: 3px;
}

/* Loader styles */
#loader {
	position: fixed;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 88888;
}

/* Validation styles */
form .error {
	font-size: 12px;
	color: red;
}

/* Hide elements inside the 'wrap' section */
section.wrap .error {
	display: none;
}

/* Knowledge Base accordion */
.manage-arena .accordion-item {
	border-color: #dee2e6;
}

.manage-arena .accordion-button {
	font-size: 14px;
	font-weight: 500;
	color: #26263e;
	background-color: #f8f9fa;
	padding: 12px 16px;
}

.manage-arena .accordion-button:not(.collapsed) {
	background-color: #8c1c13;
	color: #fff;
	box-shadow: none;
}

.manage-arena .accordion-button:not(.collapsed)::after {
	filter: brightness(0) invert(1);
}

.manage-arena .accordion-button:focus {
	box-shadow: none;
	border-color: #dee2e6;
}

.manage-arena .accordion-body {
	font-size: 14px;
	line-height: 1.6;
}

.manage-arena .accordion-body table th {
	background-color: #8c1c13;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.manage-arena .accordion-body table td {
	font-size: 13px;
}

/* Settings checkboxes */
.manage-arena .form-check-input:checked {
	background-color: #8c1c13 !important;
	border-color: #8c1c13 !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.manage-arena input[type="checkbox"]:checked::before {
	content: none !important;
}

.manage-arena .form-check-input:focus {
	border-color: #8c1c13;
	box-shadow: 0 0 0 0.2rem rgba(140, 28, 19, 0.25);
}
