/**
 * Admin Dashboard Styles
 * Get Shouting Brand Colors:
 * - Primary: #006633 (brand-green-dark)
 * - Medium: #009933 (brand-green-medium)
 * - Light: #33CC33 (brand-green-light)
 *
 * @package GetShouting_Connector
 */

.getshouting-dashboard {
	max-width: 1200px;
}

/* Get Shouting Logo Header */
.getshouting-logo-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid #006633;
}

.getshouting-logo-header img {
	height: 40px;
	width: auto;
}

.getshouting-logo-header h1 {
	margin: 0;
	color: #006633;
	font-size: 24px;
	font-weight: 600;
}

.getshouting-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin-top: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.getshouting-card-header {
	padding: 20px;
	border-bottom: 2px solid #006633;
	background: linear-gradient(to right, #006633, #009933);
	color: #fff;
}

.getshouting-card-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.getshouting-card-body {
	padding: 20px;
}

/* Status Indicator */
.getshouting-status-indicator {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 16px;
}

.getshouting-status-indicator.connected {
	background: #e6f5e6;
	color: #006633;
	border: 2px solid #33CC33;
}

.getshouting-status-indicator.disconnected {
	background: #fff9e6;
	color: #006633;
	border: 2px solid #009933;
}

.getshouting-status-indicator .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

/* Accessibility: Focus styles for buttons */
.getshouting-actions button:focus,
.getshouting-modal-actions button:focus {
	outline: 2px solid #006633;
	outline-offset: 2px;
}

/* Accessibility: Ensure modal is accessible */
.getshouting-modal[aria-hidden="true"] {
	display: none;
}

/* Connection Details */
.getshouting-connection-details {
	margin-bottom: 20px;
}

.getshouting-connection-details p {
	margin: 8px 0;
}

/* Description */
.getshouting-description ul {
	list-style: none;
	padding-left: 0;
}

.getshouting-description li {
	padding: 5px 0;
}

/* Actions */
.getshouting-actions {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.button-hero {
	padding: 12px 30px !important;
	height: auto !important;
	font-size: 16px !important;
	background: #006633 !important;
	border-color: #006633 !important;
	color: #fff !important;
	font-weight: 600 !important;
}

.button-hero:hover {
	background: #33CC33 !important;
	border-color: #33CC33 !important;
	color: #000 !important;
}

.button-danger {
	background: #dc3545 !important;
	border-color: #dc3545 !important;
	color: #fff !important;
}

.button-danger:hover {
	background: #c82333 !important;
	border-color: #bd2130 !important;
}

/* Help Section */
.getshouting-help {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	color: #666;
}

.getshouting-help a {
	color: #006633;
	text-decoration: none;
	font-weight: 500;
}

.getshouting-help a:hover {
	color: #33CC33;
	text-decoration: underline;
}

/* Modal */
.getshouting-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.getshouting-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 30px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.getshouting-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	line-height: 20px;
	cursor: pointer;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.getshouting-modal-close:hover,
.getshouting-modal-close:focus {
	color: #000;
	outline: 2px solid #006633;
	outline-offset: 2px;
}

.getshouting-modal-content h2 {
	margin-top: 0;
}

.getshouting-modal-content label {
	display: block;
	margin: 20px 0;
}

.getshouting-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

/* Loading State */
.getshouting-loading {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #e6f5e6;
	border-top: 2px solid #006633;
	border-radius: 50%;
	animation: getshouting-spin 1s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

/* Brand-colored buttons */
.button-primary.getshouting-brand {
	background: #006633 !important;
	border-color: #006633 !important;
	color: #fff !important;
}

.button-primary.getshouting-brand:hover {
	background: #33CC33 !important;
	border-color: #33CC33 !important;
	color: #000 !important;
}

.button-secondary.getshouting-brand {
	background: #fff !important;
	border-color: #006633 !important;
	color: #006633 !important;
}

.button-secondary.getshouting-brand:hover {
	background: #e6f5e6 !important;
	border-color: #009933 !important;
	color: #006633 !important;
}

@keyframes getshouting-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

