/**
 * Admin styles for Happy Ordering plugin.
 *
 * @package Happy_Ordering
 */

.happy-ordering-status-container,
.happy-ordering-bug-container {
	max-width: 1200px;
	margin: 20px 0;
}

.happy-ordering-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.happy-ordering-card h2,
.happy-ordering-card h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}

.happy-ordering-loading {
	text-align: center;
	padding: 20px;
	background: #f0f0f1;
	border-radius: 4px;
	margin-top: 20px;
}

.happy-ordering-loading .spinner {
	float: none;
	margin: 0 auto;
}

.happy-ordering-loading p {
	margin: 10px 0 0;
	color: #50575e;
}

#status-results {
	margin-top: 20px;
	animation: fadeIn 0.5s;
}

#status-results table {
	margin-top: 15px;
}

#status-timestamp {
	margin-top: 15px;
	font-style: italic;
}

.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-badge.operational {
	background: #d4edda;
	color: #155724;
}

.status-badge.warning {
	background: #fff3cd;
	color: #856404;
}

.status-badge.error {
	background: #f8d7da;
	color: #721c24;
}

.required {
	color: #d63638;
	font-weight: bold;
}

#bug-report-form {
	margin-top: 20px;
}

#bug-report-form textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.notice {
	padding: 12px;
	margin: 20px 0;
	border-left-width: 4px;
	border-left-style: solid;
}

.notice p {
	margin: 0.5em 0;
	padding: 2px;
}

.notice-success {
	border-left-color: #00a32a;
	background: #edfaef;
}

.notice-error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive styles */
@media screen and (max-width: 782px) {
	.happy-ordering-card {
		padding: 15px;
	}

	#status-results table {
		font-size: 14px;
	}
}
