/**
 * Flows Sync Stylesheet
 * 
 * Styling for OAuth Connect Bars, Real-Time Diagnostic Buttons,
 * Pre-Flight Format Validation Alerts, and Visual Editor Sync.
 */

/* OAuth Connect Bar in Brand Hub */
.cc-oauth-action-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
	padding: 12px 16px;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid #334155;
	border-radius: 8px;
}

.cc-oauth-status-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cc-oauth-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #64748B;
	display: inline-block;
	transition: background 0.2s ease;
}

.cc-oauth-status-dot.connected {
	background: #10B981;
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.cc-oauth-status-dot.testing {
	background: #38BDF8;
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
	animation: cc-oauth-pulse 1s infinite alternate;
}

@keyframes cc-oauth-pulse {
	from { opacity: 0.5; }
	to { opacity: 1; }
}

.cc-oauth-status-label {
	font-size: 13px;
	font-weight: 500;
	color: #94A3B8;
}

.cc-oauth-account-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(16, 185, 129, 0.15);
	color: #10B981;
	border: 1px solid rgba(16, 185, 129, 0.3);
	font-size: 12px;
	font-weight: 600;
}

.cc-oauth-actions-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Diagnostic Test Connection Button */
.cc-oauth-test-btn {
	background: rgba(56, 189, 248, 0.1) !important;
	border-color: rgba(56, 189, 248, 0.4) !important;
	color: #38BDF8 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 12.5px !important;
	padding: 5px 12px !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
}

.cc-oauth-test-btn:hover {
	background: rgba(56, 189, 248, 0.2) !important;
	border-color: #38BDF8 !important;
	color: #BAE6FD !important;
}

/* OAuth Connect Button */
.cc-oauth-connect-btn {
	background: #5B50F6 !important;
	border-color: #5B50F6 !important;
	color: #FFFFFF !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 12.5px !important;
	padding: 5px 14px !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
}

.cc-oauth-connect-btn:hover {
	background: #4F46E5 !important;
	border-color: #4F46E5 !important;
}

/* Disconnect Button */
.cc-oauth-disconnect-btn {
	background: transparent !important;
	border-color: rgba(239, 68, 68, 0.4) !important;
	color: #EF4444 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-size: 12px !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
}

.cc-oauth-disconnect-btn:hover {
	background: rgba(239, 68, 68, 0.15) !important;
	border-color: #EF4444 !important;
}

/* Diagnostic Feedback Toast / Banner */
.cc-diagnostic-toast {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
	display: none;
}

.cc-diagnostic-toast.success {
	background: rgba(16, 185, 129, 0.15);
	border: 1px solid rgba(16, 185, 129, 0.4);
	color: #6EE7B7;
}

.cc-diagnostic-toast.error {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #FCA5A5;
}

/* Pre-Flight Format Validation Alert Modal */
.cc-preflight-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cc-preflight-dialog {
	background: #1E293B;
	border: 1px solid #334155;
	border-radius: 12px;
	width: 100%;
	max-width: 540px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.cc-preflight-header {
	padding: 18px 24px;
	background: rgba(15, 23, 42, 0.5);
	border-bottom: 1px solid #334155;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cc-preflight-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #F8FAFC;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cc-preflight-body {
	padding: 24px;
	max-height: 480px;
	overflow-y: auto;
}

.cc-preflight-item {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 13px;
	line-height: 1.45;
}

.cc-preflight-item.error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #FECACA;
}

.cc-preflight-item.warning {
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.3);
	color: #FDE68A;
}

.cc-preflight-item h5 {
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cc-preflight-item p {
	margin: 0 0 6px;
}

.cc-preflight-recommendation {
	font-size: 12px;
	opacity: 0.9;
	font-style: italic;
}

.cc-preflight-footer {
	padding: 16px 24px;
	background: rgba(15, 23, 42, 0.5);
	border-top: 1px solid #334155;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

/* Floating Channels Bar Synchronized States */
.cc-channels-panel .cc-social-pill-btn.disabled {
	opacity: 0.35 !important;
	filter: grayscale(100%) !important;
	cursor: not-allowed !important;
	pointer-events: auto !important;
	background: rgba(30, 41, 59, 0.4) !important;
	border-color: rgba(51, 65, 85, 0.4) !important;
}

.cc-channels-panel .cc-social-pill-btn.active {
	opacity: 1 !important;
	filter: none !important;
	border-color: #5B50F6 !important;
	background: rgba(91, 80, 246, 0.25) !important;
	box-shadow: 0 0 10px rgba(91, 80, 246, 0.4);
}
