/**
 * AbhinavDev Announcement Bar - Admin Studio & Live Device Preview Styles
 * Version: 1.0.0
 */

.adab-admin-wrap {
	max-width: 1280px;
	margin: 20px auto 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
}

/* Header */
.adab-admin-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	padding: 18px 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	margin-bottom: 18px;
}

.adab-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.adab-brand-badge {
	background: linear-gradient(135deg, #4338ca, #6366f1);
	color: #ffffff;
	font-weight: 700;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.adab-brand h1 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.adab-version {
	font-size: 12px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 99px;
}

.adab-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
}

.adab-status-pill.is-live {
	background: #dcfce7;
	color: #166534;
}

.adab-status-pill.is-paused {
	background: #f1f5f9;
	color: #475569;
}

.adab-status-pill .adab-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* ==========================================================================
   Sticky Live Preview Dock (Desktop & Mobile Responsive Switcher)
   ========================================================================== */
.adab-preview-dock {
	position: sticky;
	top: 42px;
	z-index: 999;
	background: #0f172a;
	border-radius: 14px;
	padding: 14px 18px 18px;
	margin-bottom: 24px;
	box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.35);
	border: 1px solid #1e293b;
}

.adab-preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	color: #f8fafc;
}

.adab-preview-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.adab-preview-title .dashicons {
	color: #818cf8;
}

.adab-preview-hint {
	font-size: 12px;
	color: #94a3b8;
	margin-left: 4px;
}

/* Device Switcher Buttons */
.adab-device-switcher {
	display: inline-flex;
	background: #1e293b;
	padding: 4px;
	border-radius: 10px;
	border: 1px solid #334155;
}

.adab-device-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	color: #cbd5e1;
	padding: 6px 14px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.adab-device-btn small {
	font-size: 11px;
	opacity: 0.7;
	font-weight: 400;
}

.adab-device-btn:hover {
	color: #ffffff;
}

.adab-device-btn.is-active {
	background: #4f46e5;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* Browser / Mobile Viewport Stage */
.adab-viewport-stage {
	display: flex;
	justify-content: center;
	background: #1e293b;
	border-radius: 10px;
	padding: 12px;
	border: 1px solid #334155;
	overflow: hidden;
}

.adab-browser-mockup {
	width: 100%;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.3s ease;
}

/* Mobile 375px Frame Mode */
.adab-viewport-stage.is-mobile .adab-browser-mockup {
	width: 375px;
	max-width: 100%;
	border-radius: 18px;
	border: 4px solid #334155;
}

.adab-browser-chrome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f1f5f9;
	padding: 7px 12px;
	border-bottom: 1px solid #e2e8f0;
}

.adab-browser-dots {
	display: flex;
	gap: 6px;
}

.adab-browser-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
}

.adab-browser-dots span:nth-child(1) { background: #f87171; }
.adab-browser-dots span:nth-child(2) { background: #fbbf24; }
.adab-browser-dots span:nth-child(3) { background: #34d399; }

.adab-browser-address {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	padding: 2px 16px;
	font-size: 11px;
	color: #64748b;
}

.adab-viewport-badge {
	font-size: 11px;
	font-weight: 600;
	color: #475569;
}

/* Simulated Site Canvas inside Preview */
.adab-site-canvas {
	position: relative;
	background: #f8fafc;
	min-height: 132px;
}

.adab-mock-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
}

.adab-mock-logo {
	width: 85px;
	height: 14px;
	background: #cbd5e1;
	border-radius: 4px;
}

.adab-mock-nav {
	display: flex;
	gap: 12px;
}

.adab-mock-nav span {
	width: 42px;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
}

.adab-viewport-stage.is-mobile .adab-mock-nav span:nth-child(n+3) {
	display: none;
}

.adab-mock-site-hero {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.adab-mock-line.is-title {
	width: 45%;
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
}

.adab-mock-line.is-subtitle {
	width: 30%;
	height: 8px;
	background: #f1f5f9;
	border-radius: 6px;
}

.adab-mock-device-notice {
	margin-top: 4px;
	font-size: 12px;
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
	padding: 4px 12px;
	border-radius: 6px;
	font-weight: 500;
}

/* ==========================================================================
   Settings Grid & Cards
   ========================================================================== */
.adab-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

@media screen and (max-width: 1024px) {
	.adab-grid {
		grid-template-columns: 1fr;
	}
}

.adab-col {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.adab-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
	overflow: hidden;
}

.adab-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.adab-card-header h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.adab-card-header h2 .dashicons {
	color: #4f46e5;
}

.adab-card-body {
	padding: 20px;
}

/* Mode Selector Cards */
.adab-field-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 10px;
	color: #334155;
}

.adab-mode-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}

.adab-mode-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 14px 10px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.18s ease;
	background: #ffffff;
}

.adab-mode-option input[type="radio"] {
	display: none;
}

.adab-mode-option:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.adab-mode-option.is-selected {
	border-color: #4f46e5;
	background: #eef2ff;
}

.adab-mode-icon {
	font-size: 20px;
	margin-bottom: 4px;
}

.adab-mode-option strong {
	font-size: 13px;
	color: #0f172a;
	margin-bottom: 2px;
}

.adab-mode-option small {
	font-size: 11px;
	color: #64748b;
	line-height: 1.3;
}

/* Conditional Sub-panels */
.adab-conditional-group {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 18px;
}

/* Messages Repeater */
.adab-messages-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.adab-helper-badge {
	font-size: 11px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 4px;
}

.adab-messages-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.adab-message-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.adab-msg-num {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	width: 24px;
}

.adab-message-item .adab-msg-input {
	flex: 1;
	width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
}

.adab-remove-msg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: #ef4444 !important;
	border-color: #fecaca !important;
	padding: 0 6px !important;
}

/* Form Layout Columns */
.adab-two-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 12px;
}

.adab-three-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 12px;
}

@media screen and (max-width: 640px) {
	.adab-two-cols,
	.adab-three-cols,
	.adab-mode-cards {
		grid-template-columns: 1fr;
	}
}

.adab-field-row label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.adab-field-row label .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #6366f1;
}

.adab-field-row input[type="text"],
.adab-field-row input[type="number"],
.adab-field-row input[type="datetime-local"],
.adab-field-row select {
	width: 100%;
	max-width: 100%;
	padding: 5px 10px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
}

/* Range Sliders */
.adab-range-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.adab-range-wrap input[type="range"] {
	flex: 1;
	accent-color: #4f46e5;
}

.adab-range-val {
	font-size: 12px;
	font-weight: 700;
	color: #4f46e5;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 4px;
	min-width: 42px;
	text-align: center;
}

/* Color Inputs */
.adab-color-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	padding: 4px 8px;
	border-radius: 6px;
}

.adab-color-input-wrap input[type="color"] {
	width: 28px;
	height: 26px;
	border: none;
	padding: 0;
	background: none;
	cursor: pointer;
}

.adab-color-input-wrap code {
	font-size: 12px;
	background: transparent;
	color: #334155;
}

/* Presets Bar */
.adab-presets-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #e2e8f0;
}

.adab-presets-bar span {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-right: 4px;
}

.adab-preset-chip {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 99px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #1e293b;
	cursor: pointer;
	transition: all 0.15s ease;
}

.adab-preset-chip:hover {
	background: #e2e8f0;
	border-color: #94a3b8;
}

/* Subcards */
.adab-subcard {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 14px;
}

.adab-subcard:last-child {
	margin-bottom: 0;
}

.adab-subcard-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

/* Toggle Switch */
.adab-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.adab-switch input {
	display: none;
}

.adab-slider {
	position: relative;
	width: 38px;
	height: 20px;
	background: #cbd5e1;
	border-radius: 99px;
	transition: 0.2s;
}

.adab-slider::before {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	left: 3px;
	bottom: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: 0.2s;
}

.adab-switch input:checked + .adab-slider {
	background: #4f46e5;
}

.adab-switch input:checked + .adab-slider::before {
	transform: translateX(18px);
}

.adab-switch-label {
	font-size: 13px;
	font-weight: 600;
}

.adab-divider {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 16px 0;
}

/* Save Bar */
.adab-save-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 14px 22px;
	border-radius: 12px;
	margin-top: 22px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.adab-save-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
}

.adab-save-info .dashicons {
	color: #4f46e5;
}

/* Community Review & Custom WP Dev Footer */
.adab-community-footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 22px;
}

@media screen and (max-width: 960px) {
	.adab-community-footer {
		grid-template-columns: 1fr;
	}
}

.adab-footer-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 22px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.adab-footer-content strong {
	display: block;
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 4px;
}

.adab-footer-content p {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
}

.adab-footer-btn-group {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.adab-footer-btn {
	white-space: nowrap;
	flex-shrink: 0;
}
