/**
 * Admin styles for Security Headers & Caching plugin
 *
 * @package SecurityHeadersCaching
 */

.shc-admin-wrap {
	margin: 20px 20px 20px 0;
}

.shc-admin-container {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}

.shc-admin-main {
	flex: 1;
	min-width: 0;
}

.shc-admin-sidebar {
	width: 350px;
	flex-shrink: 0;
}

.shc-header {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.shc-header-icon {
	font-size: 48px;
	margin-right: 20px;
	color: #2271b1;
}

.shc-header-icon .dashicons {
	width: 60px;
	height: 60px;
	font-size: 60px;
}

.shc-header-content h1 {
	margin: 0 0 5px 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
}

.shc-subtitle {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

.shc-admin-main form {
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.shc-admin-wrap .form-table th {
	padding: 20px 10px 20px 0;
	width: 280px;
	font-weight: 600;
}

.shc-admin-wrap .form-table td {
	padding: 15px 10px;
}

.shc-admin-wrap .form-table input[type="text"],
.shc-admin-wrap .form-table select {
	width: 100%;
	max-width: 500px;
}

.shc-admin-wrap .form-table input[type="number"] {
	width: 100px;
}

.shc-admin-wrap .form-table input[type="checkbox"] {
	margin: 0 8px 0 0;
}

.shc-admin-wrap .form-table .description {
	margin: 8px 0 0 0;
	color: #646970;
	font-size: 13px;
}

.shc-info-box {
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	padding: 20px;
	margin-bottom: 20px;
}

.shc-plugin-info p {
	margin: 0 0 15px 0;
	line-height: 1.6;
}

.shc-plugin-info p:last-child {
	margin-bottom: 0;
}

.shc-plugin-info a {
	color: #2271b1;
	text-decoration: none;
}

.shc-plugin-info a:hover {
	color: #135e96;
	text-decoration: underline;
}

.shc-download-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 8px 20px !important;
	font-size: 14px !important;
	height: auto !important;
}

.shc-download-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.shc-info-box h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	color: #1d2327;
}

.shc-info-box ul {
	margin: 0;
	padding-left: 20px;
}

.shc-info-box li {
	margin-bottom: 12px;
	line-height: 1.6;
}

.shc-info-box strong {
	color: #1d2327;
	font-weight: 600;
}

.shc-footer {
	text-align: center;
	padding: 20px;
	color: #646970;
	font-size: 13px;
}

.shc-footer a {
	color: #2271b1;
	text-decoration: none;
}

.shc-footer a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* Settings page specific styles */
#shc_enable_headers:checked ~ label {
	font-weight: 600;
}

.shc-admin-wrap .submit {
	padding: 0;
	margin-top: 20px;
}

.shc-admin-wrap .submit .button-primary {
	padding: 8px 20px;
	font-size: 14px;
	height: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
	.shc-admin-container {
		flex-direction: column;
	}

	.shc-admin-sidebar {
		width: 100%;
	}
}

@media screen and (max-width: 782px) {
	.shc-header {
		flex-direction: column;
		text-align: center;
	}

	.shc-header-icon {
		margin: 0 0 15px 0;
	}

	.shc-admin-wrap .form-table th,
	.shc-admin-wrap .form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	.shc-admin-wrap .form-table th {
		padding-bottom: 5px;
	}
}

/* Notice styling */
.shc-admin-wrap .notice {
	margin: 20px 0;
}

/* Success message styling */
.settings-error.updated {
	border-left-color: #00a32a;
}

/* Error message styling */
.settings-error.error {
	border-left-color: #d63638;
}
