/**
 * Persea Group Manager
 * Dashboard Styles
 */

.pgmp-dashboard {
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
	font-family: inherit;
	box-sizing: border-box;
}

.pgmp-dashboard *,
.pgmp-dashboard *::before,
.pgmp-dashboard *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.pgmp-dashboard-header {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pgmp-dashboard-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;
}

.pgmp-dashboard-title {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.pgmp-dashboard-icon {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f6fc;
	color: #2271b1;
	border-radius: 12px;
}

.pgmp-dashboard-icon .dashicons {
	font-size: 27px;
	width: 27px;
	height: 27px;
}

.pgmp-dashboard-title h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.3;
}

.pgmp-dashboard-title p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

.pgmp-dashboard-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.pgmp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.18s ease;
}

.pgmp-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.pgmp-button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff !important;
}

.pgmp-button-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff !important;
}

.pgmp-button-secondary {
	background: #fff;
	border-color: #d1d5db;
	color: #374151 !important;
}

.pgmp-button-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.pgmp-button-danger {
	background: #dc3232;
	border-color: #dc3232;
	color: #fff !important;
}

.pgmp-button-danger:hover {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff !important;
}

.pgmp-button-small {
	min-height: 34px;
	padding: 6px 11px;
	font-size: 13px;
}

.pgmp-button-large {
	min-height: 48px;
	padding: 12px 22px;
	font-size: 15px;
}

.pgmp-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

.pgmp-dashboard-body {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ---------------------------------------------------------
   TABS
--------------------------------------------------------- */

.pgmp-dashboard-tabs {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 8px;
	border-bottom: 1px solid #e5e7eb;
	background: #fafafa;
	overflow-x: auto;
	scrollbar-width: thin;
}

.pgmp-dashboard-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 10px 13px;
	border-radius: 7px;
	color: #4b5563 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.18s ease;
}

.pgmp-dashboard-tab .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.pgmp-dashboard-tab:hover {
	background: #f0f0f1;
	color: #1d2327 !important;
}

.pgmp-dashboard-tab.is-active {
	background: #2271b1;
	color: #fff !important;
}

.pgmp-dashboard-tab.is-active:hover {
	background: #135e96;
	color: #fff !important;
}

.pgmp-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 11px;
}

.pgmp-dashboard-tab.is-active .pgmp-tab-count {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.pgmp-dashboard-content {
	padding: 28px;
}

.pgmp-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}

.pgmp-section-header h3 {
	margin: 0 0 5px;
	font-size: 19px;
	line-height: 1.35;
}

.pgmp-section-header p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

.pgmp-form {
	width: 100%;
}

.pgmp-form-row {
	margin-bottom: 18px;
}

.pgmp-form-row label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.pgmp-form-control {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	background: #fff;
	color: #1d2327;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
}

.pgmp-form-control:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

textarea.pgmp-form-control {
	min-height: 110px;
	resize: vertical;
}

.pgmp-form-help {
	margin: 6px 0 0;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.pgmp-form-message {
	display: none;
	margin-top: 15px;
	padding: 11px 14px;
	border-radius: 7px;
	font-size: 13px;
	line-height: 1.5;
}

.pgmp-form-message.is-success {
	display: block;
	background: #ecfdf3;
	border: 1px solid #a7f3d0;
	color: #166534;
}

.pgmp-form-message.is-error {
	display: block;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------------------------------------------------------
   CREATE SECTIONS
--------------------------------------------------------- */

.pgmp-create-announcement,
.pgmp-history-section,
.pgmp-settings-section {
	padding: 22px;
	margin-bottom: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.pgmp-create-announcement {
	background: #f9fbfd;
}

/* ---------------------------------------------------------
   ANNOUNCEMENTS
--------------------------------------------------------- */

.pgmp-announcement-list {
	display: grid;
	gap: 15px;
}

.pgmp-announcement-card {
	display: flex;
	gap: 15px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.pgmp-announcement-author {
	flex: 0 0 45px;
}

.pgmp-announcement-author img {
	display: block;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-announcement-content {
	flex: 1;
	min-width: 0;
}

.pgmp-announcement-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 12px;
}

.pgmp-announcement-meta strong {
	color: #1d2327;
}

.pgmp-announcement-meta span {
	color: #6b7280;
}

.pgmp-announcement-content h3 {
	margin: 0 0 9px;
	font-size: 17px;
	line-height: 1.4;
}

.pgmp-announcement-text {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
}

.pgmp-announcement-text p {
	margin: 0 0 8px;
}

.pgmp-announcement-text p:last-child {
	margin-bottom: 0;
}

.pgmp-announcement-actions {
	display: flex;
	margin-top: 15px;
}

/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */

.pgmp-empty-state {
	padding: 55px 25px;
	text-align: center;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	background: #fafafa;
}

.pgmp-empty-state .dashicons {
	width: 45px;
	height: 45px;
	font-size: 45px;
	color: #9ca3af;
}

.pgmp-empty-state h3 {
	margin: 15px 0 7px;
	font-size: 18px;
}

.pgmp-empty-state p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

/* ---------------------------------------------------------
   AUDIO ROOM
--------------------------------------------------------- */

.pgmp-audio-room-card {
	position: relative;
	overflow: hidden;
	margin-bottom: 25px;
	padding: 25px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.pgmp-audio-room-live {
	border-color: #fca5a5;
}

.pgmp-audio-room-scheduled {
	border-color: #93c5fd;
}

.pgmp-audio-room-offline {
	border-color: #d1d5db;
}

.pgmp-audio-room-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 20px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.pgmp-audio-room-live .pgmp-audio-room-status {
	color: #dc2626;
}

.pgmp-audio-room-scheduled .pgmp-audio-room-status {
	color: #2563eb;
}

.pgmp-audio-room-offline .pgmp-audio-room-status {
	color: #6b7280;
}

.pgmp-live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #dc2626;
	animation: pgmp-pulse 1.5s infinite;
}

@keyframes pgmp-pulse {
	0% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.45;
		transform: scale(0.8);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.pgmp-scheduled-icon {
	display: inline-flex;
	align-items: center;
}

.pgmp-audio-room-main {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pgmp-audio-room-icon {
	width: 70px;
	height: 70px;
	flex: 0 0 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f0f6fc;
	color: #2271b1;
}

.pgmp-audio-room-icon .dashicons {
	width: 34px;
	height: 34px;
	font-size: 34px;
}

.pgmp-audio-room-details {
	flex: 1;
	min-width: 0;
}

.pgmp-audio-room-details h2 {
	margin: 0 0 7px;
	font-size: 22px;
	line-height: 1.35;
}

.pgmp-audio-room-details p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

.pgmp-audio-room-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 12px;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-audio-room-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pgmp-audio-room-meta .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.pgmp-audio-room-schedule {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	color: #2563eb;
}

.pgmp-audio-room-schedule > .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.pgmp-audio-room-schedule div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pgmp-audio-room-schedule strong {
	font-size: 12px;
}

.pgmp-audio-room-schedule span {
	color: #374151;
	font-size: 14px;
}

.pgmp-audio-room-actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.pgmp-audio-room-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

/* ---------------------------------------------------------
   SETTINGS
--------------------------------------------------------- */

.pgmp-settings-options {
	display: grid;
	gap: 10px;
}

.pgmp-setting-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.pgmp-setting-option:hover {
	background: #f9fafb;
	border-color: #cbd5e1;
}

.pgmp-setting-option input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.pgmp-setting-option-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pgmp-setting-option-content strong {
	font-size: 14px;
}

.pgmp-setting-option-content small {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.pgmp-toggle-option {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	cursor: pointer;
}

.pgmp-toggle-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pgmp-toggle-switch {
	position: relative;
	width: 42px;
	height: 24px;
	flex: 0 0 42px;
	border-radius: 20px;
	background: #d1d5db;
	transition: background 0.2s ease;
}

.pgmp-toggle-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.pgmp-toggle-option input:checked + .pgmp-toggle-switch {
	background: #2271b1;
}

.pgmp-toggle-option input:checked + .pgmp-toggle-switch::after {
	transform: translateX(18px);
}

.pgmp-toggle-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pgmp-toggle-content strong {
	font-size: 14px;
}

.pgmp-toggle-content small {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.pgmp-settings-info-row {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border-radius: 9px;
	background: #f9fafb;
}

.pgmp-settings-info-row > .dashicons {
	width: 25px;
	height: 25px;
	font-size: 25px;
	color: #2271b1;
}

.pgmp-settings-info-row strong {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.pgmp-settings-info-row p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

.pgmp-danger-zone {
	border-color: #fecaca;
	background: #fffafa;
}

.pgmp-danger-zone .pgmp-section-header h3 {
	color: #b91c1c;
}

.pgmp-danger-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px;
	border: 1px solid #fecaca;
	border-radius: 9px;
}

.pgmp-danger-action strong {
	display: block;
	margin-bottom: 4px;
	color: #991b1b;
}

.pgmp-danger-action p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
}

/* ---------------------------------------------------------
   INFO / NOTICES
--------------------------------------------------------- */

.pgmp-dashboard-info {
	margin-top: 25px;
}

.pgmp-info-box {
	padding: 18px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #eff6ff;
}

.pgmp-info-box h3 {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 7px;
	font-size: 15px;
	color: #1e40af;
}

.pgmp-info-box h3 .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.pgmp-info-box p {
	margin: 0;
	color: #374151;
	font-size: 13px;
	line-height: 1.6;
}

.pgmp-notice {
	margin: 20px 0;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.pgmp-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------------------------------------------------------
   MEMBERS
--------------------------------------------------------- */

.pgmp-members-list {
	display: grid;
	gap: 10px;
}

.pgmp-member-card {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	background: #fff;
}

.pgmp-member-avatar {
	width: 45px;
	height: 45px;
	flex: 0 0 45px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-member-info {
	flex: 1;
	min-width: 0;
}

.pgmp-member-info strong {
	display: block;
	font-size: 14px;
}

.pgmp-member-info span {
	display: block;
	margin-top: 3px;
	color: #6b7280;
	font-size: 12px;
}

.pgmp-member-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

/* ---------------------------------------------------------
   MODERATORS
--------------------------------------------------------- */

.pgmp-moderator-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.pgmp-moderator-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.pgmp-moderator-info {
	flex: 1;
}

.pgmp-moderator-info strong {
	display: block;
	font-size: 14px;
}

.pgmp-moderator-info span {
	display: block;
	margin-top: 3px;
	color: #6b7280;
	font-size: 12px;
}

/* ---------------------------------------------------------
   JOIN REQUESTS
--------------------------------------------------------- */

.pgmp-request-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.pgmp-request-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-left: auto;
}

/* ---------------------------------------------------------
   LOADING
--------------------------------------------------------- */

.pgmp-is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.65;
}

.pgmp-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pgmp-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pgmp-spin 0.7s linear infinite;
}

@keyframes pgmp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {

	.pgmp-dashboard {
		margin: 20px auto;
	}

	.pgmp-dashboard-content {
		padding: 20px;
	}

	.pgmp-dashboard-header-content {
		align-items: flex-start;
		flex-direction: column;
	}

	.pgmp-dashboard-header-actions {
		width: 100%;
	}

	.pgmp-dashboard-header-actions .pgmp-button {
		width: 100%;
	}

	.pgmp-audio-room-main {
		align-items: flex-start;
	}

}

@media (max-width: 640px) {

	.pgmp-dashboard {
		margin: 10px auto;
	}

	.pgmp-dashboard-header,
	.pgmp-dashboard-body {
		border-radius: 9px;
	}

	.pgmp-dashboard-content {
		padding: 14px;
	}

	.pgmp-dashboard-title h2 {
		font-size: 20px;
	}

	.pgmp-dashboard-tabs {
		padding: 6px;
	}

	.pgmp-dashboard-tab {
		padding: 9px 10px;
		font-size: 12px;
	}

	.pgmp-create-announcement,
	.pgmp-history-section,
	.pgmp-settings-section {
		padding: 16px;
	}

	.pgmp-announcement-card {
		padding: 15px;
	}

	.pgmp-audio-room-card {
		padding: 18px;
	}

	.pgmp-audio-room-main {
		flex-direction: column;
	}

	.pgmp-audio-room-icon {
		width: 58px;
		height: 58px;
		flex-basis: 58px;
	}

	.pgmp-audio-room-icon .dashicons {
		width: 28px;
		height: 28px;
		font-size: 28px;
	}

	.pgmp-audio-room-actions,
	.pgmp-audio-room-admin-actions {
		flex-direction: column;
	}

	.pgmp-audio-room-actions .pgmp-button,
	.pgmp-audio-room-admin-actions .pgmp-button {
		width: 100%;
	}

	.pgmp-request-card,
	.pgmp-member-card,
	.pgmp-moderator-card {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.pgmp-request-actions {
		width: 100%;
		margin-left: 0;
	}

	.pgmp-request-actions .pgmp-button {
		flex: 1;
	}

	.pgmp-danger-action {
		flex-direction: column;
		align-items: flex-start;
	}

}
/* ---------------------------------------------------------
   LIVE AGORA AUDIO ROOM
--------------------------------------------------------- */
.pgmp-live-room{max-width:1100px;margin:20px auto;padding:24px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.pgmp-live-room-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.pgmp-live-room-head h2{margin:7px 0 5px}.pgmp-live-room-head p{margin:0;color:#6b7280}.pgmp-live-badge{display:inline-flex;align-items:center;gap:7px;color:#dc2626;font-size:12px;font-weight:800}.pgmp-live-room-count{padding:8px 12px;background:#f3f4f6;border-radius:20px;font-size:13px}.pgmp-live-controls{display:flex;flex-wrap:wrap;gap:10px;padding:18px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.pgmp-live-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.pgmp-live-columns section{min-width:0}.pgmp-live-columns h3{margin:0 0 10px;font-size:16px}.pgmp-audio-people{display:grid;gap:9px}.pgmp-audio-person{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e5e7eb;border-radius:10px}.pgmp-audio-person img{width:42px;height:42px;border-radius:50%;object-fit:cover}.pgmp-audio-person>div:nth-child(2){flex:1;min-width:0}.pgmp-audio-person strong,.pgmp-audio-person small{display:block}.pgmp-audio-person small{margin-top:2px;color:#6b7280;text-transform:capitalize}.pgmp-audio-person-actions{display:flex;gap:5px;flex-wrap:wrap}.pgmp-muted-text{color:#6b7280;font-size:13px}.pgmp-is-muted{opacity:.7}@media(max-width:800px){.pgmp-live-columns{grid-template-columns:1fr}.pgmp-live-room-head{flex-direction:column}.pgmp-live-controls .pgmp-button{flex:1 1 45%}}

/* ---------------------------------------------------------
   LIVE AUDIO BANNERS
--------------------------------------------------------- */
.pgmp-front-live-wrap {
	max-width: 1200px;
	margin: 12px auto;
	padding: 0 15px;
}

.pgmp-live-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 12px 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pgmp-live-banner-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.pgmp-live-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pgmp-live-banner-text strong {
	font-size: 15px;
	line-height: 1.35;
	color: #111827;
}

.pgmp-live-banner-text span {
	font-size: 12px;
	color: #6b7280;
}

.pgmp-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 800;
	color: #dc2626;
	letter-spacing: .04em;
}

.pgmp-live-join {
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.pgmp-live-banner {
		align-items: stretch;
		flex-direction: column;
	}
	.pgmp-live-banner .pgmp-button {
		width: 100%;
	}
}

/* ---------------------------------------------------------
   v2.1.5 - HIGH VISIBILITY LIVE AUDIO CONTROLS
--------------------------------------------------------- */
.pgmp-live-room .pgmp-button,
.pgmp-live-banner .pgmp-button,
.pgmp-audio-room-card .pgmp-button {
	opacity: 1;
	visibility: visible;
	text-shadow: none;
	box-shadow: 0 2px 6px rgba(0,0,0,.14);
}

.pgmp-live-room .pgmp-button-primary,
.pgmp-live-banner .pgmp-button-primary,
.pgmp-audio-room-card .pgmp-button-primary {
	background: #2563eb !important;
	border: 2px solid #1d4ed8 !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-primary:hover,
.pgmp-live-banner .pgmp-button-primary:hover,
.pgmp-audio-room-card .pgmp-button-primary:hover {
	background: #1d4ed8 !important;
	border-color: #1e40af !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-danger,
.pgmp-audio-room-card .pgmp-button-danger,
.pgmp-end-live-room {
	background: #dc2626 !important;
	border: 2px solid #b91c1c !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-danger:hover,
.pgmp-audio-room-card .pgmp-button-danger:hover,
.pgmp-end-live-room:hover {
	background: #b91c1c !important;
	border-color: #991b1b !important;
	color: #ffffff !important;
}

.pgmp-live-room .pgmp-button-secondary {
	background: #ffffff !important;
	border: 2px solid #94a3b8 !important;
	color: #0f172a !important;
}

.pgmp-live-room .pgmp-button:disabled {
	opacity: .48 !important;
	visibility: visible !important;
	box-shadow: none;
}

#pgmp-audio-join,
#pgmp-audio-leave,
#pgmp-audio-end-room {
	min-height: 46px;
	font-weight: 800;
	padding-left: 18px;
	padding-right: 18px;
}

#pgmp-audio-end-room {
	margin-left: auto;
}

@media (max-width: 800px) {
	#pgmp-audio-end-room {
		margin-left: 0;
	}
}

/* =========================================================
   PGMP v2.1.6 – Global button + light/dark theme compatibility
   Keeps all plugin controls visible even when Astra/BuddyPress/
   Elementor or a dark theme overrides generic button styles.
========================================================= */

.pgmp-dashboard,
.pgmp-live-room,
.pgmp-live-banner,
.pgmp-audio-room-card {
	--pgmp-surface: #ffffff;
	--pgmp-surface-soft: #f8fafc;
	--pgmp-text: #111827;
	--pgmp-muted: #6b7280;
	--pgmp-border: #d1d5db;
	--pgmp-primary: #2563eb;
	--pgmp-primary-hover: #1d4ed8;
	--pgmp-primary-text: #ffffff;
	--pgmp-secondary: #ffffff;
	--pgmp-secondary-hover: #f3f4f6;
	--pgmp-secondary-text: #1f2937;
	--pgmp-danger: #dc2626;
	--pgmp-danger-hover: #b91c1c;
	--pgmp-danger-text: #ffffff;
	--pgmp-disabled: #e5e7eb;
	--pgmp-disabled-text: #6b7280;
}

/* Base button: visible even when no primary/secondary modifier exists. */
.pgmp-dashboard .pgmp-button,
.pgmp-live-room .pgmp-button,
.pgmp-live-banner .pgmp-button,
.pgmp-audio-room-card .pgmp-button,
a.pgmp-button,
button.pgmp-button,
input.pgmp-button {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: var(--pgmp-secondary, #ffffff) !important;
	background-color: var(--pgmp-secondary, #ffffff) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border: 1px solid var(--pgmp-border, #d1d5db) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
	text-shadow: none !important;
	opacity: 1;
	visibility: visible;
}

.pgmp-dashboard .pgmp-button:hover,
.pgmp-dashboard .pgmp-button:focus,
.pgmp-live-room .pgmp-button:hover,
.pgmp-live-room .pgmp-button:focus,
.pgmp-live-banner .pgmp-button:hover,
.pgmp-live-banner .pgmp-button:focus,
.pgmp-audio-room-card .pgmp-button:hover,
.pgmp-audio-room-card .pgmp-button:focus,
a.pgmp-button:hover,
a.pgmp-button:focus,
button.pgmp-button:hover,
button.pgmp-button:focus {
	background: var(--pgmp-secondary-hover, #f3f4f6) !important;
	background-color: var(--pgmp-secondary-hover, #f3f4f6) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border-color: #9ca3af !important;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* Primary actions: Create Live Room, Join, Approve, Save, Start, Add etc. */
.pgmp-dashboard .pgmp-button-primary,
.pgmp-live-room .pgmp-button-primary,
.pgmp-live-banner .pgmp-button-primary,
.pgmp-audio-room-card .pgmp-button-primary,
a.pgmp-button-primary,
button.pgmp-button-primary,
input.pgmp-button-primary {
	background: var(--pgmp-primary, #2563eb) !important;
	background-color: var(--pgmp-primary, #2563eb) !important;
	color: var(--pgmp-primary-text, #ffffff) !important;
	border-color: var(--pgmp-primary, #2563eb) !important;
	box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25) !important;
}

.pgmp-dashboard .pgmp-button-primary:hover,
.pgmp-dashboard .pgmp-button-primary:focus,
.pgmp-live-room .pgmp-button-primary:hover,
.pgmp-live-room .pgmp-button-primary:focus,
.pgmp-live-banner .pgmp-button-primary:hover,
.pgmp-live-banner .pgmp-button-primary:focus,
.pgmp-audio-room-card .pgmp-button-primary:hover,
.pgmp-audio-room-card .pgmp-button-primary:focus,
a.pgmp-button-primary:hover,
a.pgmp-button-primary:focus,
button.pgmp-button-primary:hover,
button.pgmp-button-primary:focus {
	background: var(--pgmp-primary-hover, #1d4ed8) !important;
	background-color: var(--pgmp-primary-hover, #1d4ed8) !important;
	color: #ffffff !important;
	border-color: var(--pgmp-primary-hover, #1d4ed8) !important;
}

/* Secondary controls: Mic, Raise Hand, Mute All, Back to Group etc. */
.pgmp-dashboard .pgmp-button-secondary,
.pgmp-live-room .pgmp-button-secondary,
.pgmp-live-banner .pgmp-button-secondary,
.pgmp-audio-room-card .pgmp-button-secondary,
a.pgmp-button-secondary,
button.pgmp-button-secondary {
	background: var(--pgmp-secondary, #ffffff) !important;
	background-color: var(--pgmp-secondary, #ffffff) !important;
	color: var(--pgmp-secondary-text, #1f2937) !important;
	border-color: var(--pgmp-border, #d1d5db) !important;
}

/* Destructive actions: End Live Room, Leave, Reject, Remove, Delete. */
.pgmp-dashboard .pgmp-button-danger,
.pgmp-live-room .pgmp-button-danger,
.pgmp-live-banner .pgmp-button-danger,
.pgmp-audio-room-card .pgmp-button-danger,
a.pgmp-button-danger,
button.pgmp-button-danger,
.pgmp-end-live-room,
.pgmp-end-audio-room,
.pgmp-audio-leave-button {
	background: var(--pgmp-danger, #dc2626) !important;
	background-color: var(--pgmp-danger, #dc2626) !important;
	color: var(--pgmp-danger-text, #ffffff) !important;
	border-color: var(--pgmp-danger, #dc2626) !important;
	box-shadow: 0 2px 5px rgba(220, 38, 38, 0.24) !important;
}

.pgmp-dashboard .pgmp-button-danger:hover,
.pgmp-dashboard .pgmp-button-danger:focus,
.pgmp-live-room .pgmp-button-danger:hover,
.pgmp-live-room .pgmp-button-danger:focus,
.pgmp-live-banner .pgmp-button-danger:hover,
.pgmp-live-banner .pgmp-button-danger:focus,
.pgmp-audio-room-card .pgmp-button-danger:hover,
.pgmp-audio-room-card .pgmp-button-danger:focus,
.pgmp-end-live-room:hover,
.pgmp-end-live-room:focus,
.pgmp-end-audio-room:hover,
.pgmp-end-audio-room:focus,
.pgmp-audio-leave-button:hover,
.pgmp-audio-leave-button:focus {
	background: var(--pgmp-danger-hover, #b91c1c) !important;
	background-color: var(--pgmp-danger-hover, #b91c1c) !important;
	color: #ffffff !important;
	border-color: var(--pgmp-danger-hover, #b91c1c) !important;
}

/* Disabled controls remain visible instead of becoming transparent. */
.pgmp-dashboard .pgmp-button:disabled,
.pgmp-live-room .pgmp-button:disabled,
.pgmp-live-banner .pgmp-button:disabled,
.pgmp-audio-room-card .pgmp-button:disabled,
button.pgmp-button:disabled,
input.pgmp-button:disabled {
	background: var(--pgmp-disabled, #e5e7eb) !important;
	background-color: var(--pgmp-disabled, #e5e7eb) !important;
	color: var(--pgmp-disabled-text, #6b7280) !important;
	border-color: var(--pgmp-border, #d1d5db) !important;
	box-shadow: none !important;
	opacity: 0.78 !important;
	cursor: not-allowed !important;
}

/* Keyboard focus is always visible. */
.pgmp-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35) !important;
	outline-offset: 2px !important;
}

/* Common dark-theme class names used by WordPress themes/plugins. */
body.dark-mode .pgmp-dashboard,
body.dark-mode .pgmp-live-room,
body.dark-mode .pgmp-live-banner,
body.dark-mode .pgmp-audio-room-card,
body.is-dark-theme .pgmp-dashboard,
body.is-dark-theme .pgmp-live-room,
body.is-dark-theme .pgmp-live-banner,
body.is-dark-theme .pgmp-audio-room-card,
body[data-theme="dark"] .pgmp-dashboard,
body[data-theme="dark"] .pgmp-live-room,
body[data-theme="dark"] .pgmp-live-banner,
body[data-theme="dark"] .pgmp-audio-room-card,
html[data-theme="dark"] .pgmp-dashboard,
html[data-theme="dark"] .pgmp-live-room,
html[data-theme="dark"] .pgmp-live-banner,
html[data-theme="dark"] .pgmp-audio-room-card {
	--pgmp-surface: #111827;
	--pgmp-surface-soft: #1f2937;
	--pgmp-text: #f9fafb;
	--pgmp-muted: #cbd5e1;
	--pgmp-border: #475569;
	--pgmp-primary: #3b82f6;
	--pgmp-primary-hover: #60a5fa;
	--pgmp-primary-text: #ffffff;
	--pgmp-secondary: #1f2937;
	--pgmp-secondary-hover: #334155;
	--pgmp-secondary-text: #f8fafc;
	--pgmp-danger: #ef4444;
	--pgmp-danger-hover: #f87171;
	--pgmp-danger-text: #ffffff;
	--pgmp-disabled: #374151;
	--pgmp-disabled-text: #cbd5e1;
}

/* If the visitor's OS/browser is dark and the theme follows it, PGMP follows too. */
@media (prefers-color-scheme: dark) {
	.pgmp-dashboard,
	.pgmp-live-room,
	.pgmp-live-banner,
	.pgmp-audio-room-card {
		--pgmp-surface: #111827;
		--pgmp-surface-soft: #1f2937;
		--pgmp-text: #f9fafb;
		--pgmp-muted: #cbd5e1;
		--pgmp-border: #475569;
		--pgmp-primary: #3b82f6;
		--pgmp-primary-hover: #60a5fa;
		--pgmp-secondary: #1f2937;
		--pgmp-secondary-hover: #334155;
		--pgmp-secondary-text: #f8fafc;
		--pgmp-danger: #ef4444;
		--pgmp-danger-hover: #f87171;
		--pgmp-disabled: #374151;
		--pgmp-disabled-text: #cbd5e1;
	}
}
