@import './admin_component/chart';
@import './admin_component/system-info';
@import './admin_component/pagespeed';
@import './admin_component/curl';

@font-face {
	font-family: "Plus Jakarta Sans", sans-serif;
	src: './fonts/PlusJakartaSans-Regular.ttf';
}

/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
body {
	background: #f0fdfa1a;
	margin: 0;
	padding: 0;
}

.qtpm-tab-content {
	display: none;
}

.qtpm-hide {
	display: none;
}

.qtpm-show {
	display: block;
}

.wrap>h2:first-child {
	font-weight: bold;
}

.site-info {
	font-weight: 400;
	margin: 5px 0 20px;
}

/* Custom Navigation Wrapper */
.qtpm-nav-wrapper {
	display: flex;
	gap: 10px;
	position: relative;
	padding-bottom: 0;
	width: calc(100% - 10px);

	&::after {
		content: '';
		background: #ccc;
		bottom: 0;
		height: 1px;
		position: absolute;
		right: 0;
		width: calc(100% - 5px);
	}
}

.qtpm-tab-button {
	align-items: center;
	align-self: start;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #333;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	padding: 12px 16px;
	transition: color 0.3s, background-color 0.3s;

	&.active {
		background: #f0fdfa66;
		border: 1px solid #ccc;
		box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
	}

	span.dashicons {
		margin-right: 8px;
		pointer-events: none;
		vertical-align: middle;
	}

	&:hover {
		background-color: #f0fdfa66;
	}
}

/* Responsive styling */
@media (max-width: 768px) {
	.qtpm-nav-wrapper {
		flex-wrap: wrap;
		gap: 5px 0px;
		justify-content: space-around;
	}

	.qtpm-tab-button {
		font-size: 12px;
		margin-bottom: 0px;
		padding: 8px 11px;
	}

	.qtpm-tab-content {
		h2 {
			text-align: center;
		}
	}
}

/* Accordion style */
.qtpm-accordion {
	border: 1px solid #c3c4c7;

	.qtpm-accordion-heading {
		border-top: 1px solid #c3c4c7;
		font-weight: 600;
		margin: 0;

		&:first-child {
			border-top: none;
		}

		.qtpm-accordion-trigger {
			align-items: center;
			background: #fff;
			border: 0;
			color: #2c3338;
			cursor: pointer;
			display: flex;
			font-weight: 400;
			justify-content: space-between;
			margin: 0;
			min-height: 46px;
			padding: 10px 50px 10px 20px;
			position: relative;
			text-align: left;
			user-select: auto;
			width: 100%;
		}

		.title {
			flex-grow: 1;
			font-weight: 600;
			pointer-events: none;
		}

		.badge {
			color: #2c3338;
			font-weight: 600;
			padding: 2px 8px 3px;
		}

		.badge.blue {
			border: 1px solid #72aee6;
		}

		.icon {
			border: solid #50575e;
			border-width: 0 2px 2px 0;
			height: 8px;
			pointer-events: none;
			position: absolute;
			right: 24px;
			top: 50%;
			transform: translateY(-70%) rotate(45deg);
			width: 8px;
		}

		.qtpm-accordion-trigger[aria-expanded=true] .icon {
			transform: translateY(-30%) rotate(-135deg);
		}
	}

	.qtpm-accordion-panel {
		background: #fff;
		margin: 0;
		padding: 16px 20px;
	}
}

/* Styling for the container of cron frequency fields */
#qtpm-cron-frequency-fields-container {
	display: flex;

	>div {
		margin-right: 10px;
	}
}