/**
 * Slotify Admin – shared design system.
 * Layout, typography, badges, buttons, tabs, inputs, chips.
 * Enqueued on all Slotify admin screens. Prefix: slotify-
 */

/* ========== A) Layout helpers ========== */
.slotify-wrap {
	max-width: 1400px;
}

.slotify-wrap .wrap {
	max-width: 100%;
}

.slotify-grid {
	display: grid;
	gap: 1rem;
}

@media screen and (min-width: 783px) {
	.slotify-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

.slotify-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.slotify-card:last-child {
	margin-bottom: 0;
}

.slotify-card-header {
	padding-bottom: 0.75rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid #dcdcde;
}

.slotify-card-header .slotify-card-title {
	margin: 0 0 0.25rem;
	font-size: 1em;
	font-weight: 600;
	color: #1d2327;
}

.slotify-card-header .slotify-card-desc {
	margin: 0;
	font-size: 12px;
	color: #646970;
	line-height: 1.4;
}

.slotify-section-title {
	margin: 1.25rem 0 0.75rem;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.slotify-section-title:first-child {
	margin-top: 0;
}

/* ========== B) Typography ========== */
.slotify-muted {
	color: #646970;
	font-size: 13px;
	line-height: 1.4;
}

.slotify-help {
	display: block;
	margin-top: 0.35rem;
	font-size: 12px;
	color: #646970;
	line-height: 1.4;
}

/* ========== C) Badges ========== */
.slotify-badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 4px;
	text-transform: capitalize;
}

.slotify-badge.is-confirmed,
.slotify-badge.slotify-confirmed {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.slotify-badge.is-pending,
.slotify-badge.slotify-pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.slotify-badge.is-cancelled,
.slotify-badge.slotify-cancelled {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.slotify-badge.is-no-show,
.slotify-badge.slotify-no-show {
	background: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

.slotify-badge.is-paid {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.slotify-badge.is-unpaid {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.slotify-badge.is-refunded {
	background: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

/* Legacy badge variants (sidebar etc.) */
.slotify-badge.slotify-badge--on,
.slotify-badge.slotify-badge--ok {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.slotify-badge.slotify-badge--off {
	background: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

.slotify-badge.slotify-badge--warning {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

/* ========== D) Buttons ========== */
.slotify-btn-primary {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}

.slotify-btn-primary:hover {
	background: #135e96;
	color: #fff;
}

.slotify-btn-secondary {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #1d2327;
	background: #f0f0f1;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}

.slotify-btn-secondary:hover {
	background: #dcdcde;
	color: #1d2327;
}

.slotify-btn-sm {
	padding: 0.25rem 0.5rem;
	font-size: 12px;
}

/* ========== E) Tabs ========== */
.slotify-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid #c3c4c7;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.slotify-tabs .slotify-tab {
	margin: 0;
	padding: 0.6rem 1rem;
	font-weight: 600;
	font-size: 13px;
	color: #50575e;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	position: relative;
	bottom: -2px;
}

.slotify-tabs .slotify-tab:hover {
	color: #1d2327;
}

.slotify-tabs .slotify-tab.slotify-tab-active,
.slotify-tabs .slotify-tab.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.slotify-tab-panel {
	display: none;
	padding: 1rem 0;
	border: 1px solid #c3c4c7;
	border-top: none;
	border-radius: 0 0 4px 4px;
	background: #f6f7f7;
}

.slotify-tab-panel.slotify-tab-panel-active,
.slotify-tab-panel.is-active {
	display: block;
}

/* ========== F) Inputs / field row ========== */
.slotify-field-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.slotify-field-row:last-child {
	margin-bottom: 0;
}

.slotify-field-row label {
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	min-width: 8em;
}

.slotify-field-row .slotify-field-control {
	flex: 1;
	min-width: 0;
}

.slotify-field-row input[type="number"],
.slotify-field-row input[type="text"],
.slotify-field-row input[type="email"],
.slotify-field-row select {
	padding: 6px 10px;
	font-size: 14px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
}

.slotify-field-row input:focus,
.slotify-field-row select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

/* Slider + number pair */
.slotify-field-row .slotify-slider-wrap {
	flex: 1;
	min-width: 140px;
	max-width: 280px;
}

.slotify-field-row .slotify-slider-wrap input[type="range"] {
	width: 100%;
	height: 6px;
}

.slotify-field-row .slotify-number-wrap {
	width: 80px;
}

.slotify-field-row .slotify-number-wrap input[type="number"] {
	width: 100%;
}

/* ========== G) Chips ========== */
.slotify-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem;
	font-size: 12px;
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #93c5fd;
	border-radius: 6px;
}

.slotify-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	font-size: 14px;
	line-height: 1;
	color: inherit;
	background: transparent;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.slotify-chip-remove:hover {
	background: rgba(0, 0, 0, 0.08);
}

/* ========== Scoped: avoid overriding global WP ========== */
#slotify_service_settings .slotify-card,
#slotify_staff_settings .slotify-card,
.slotify-bookings-wrap .slotify-card,
.slotify-dashboard-wrap .slotify-card,
.slotify-settings-wrap .slotify-card {
	/* Use shared card in Slotify contexts */
}

/* ========== Settings: shortcode card ========== */
.slotify-settings-shortcode-card .slotify-card-title {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.slotify-settings-shortcode-desc {
	margin: 0 0 0.75rem;
	font-size: 14px;
	color: #50575e;
	line-height: 1.5;
}

.slotify-settings-shortcode-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.slotify-settings-shortcode-code {
	display: inline-block;
	padding: 0.6rem 1rem;
	font-size: 15px;
	font-family: Consolas, Monaco, monospace;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	color: #1d2327;
	user-select: all;
}

.slotify-settings-shortcode-copy {
	flex-shrink: 0;
}

.slotify-settings-shortcode-help {
	margin: 0;
	font-size: 13px;
}

/* ========== Pro placeholder pages ========== */
.slotify-badge-pro {
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	vertical-align: middle;
}

.slotify-pro-placeholder-wrap {
	max-width: 640px;
}

.slotify-pro-placeholder-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 23px;
	font-weight: 400;
}

.slotify-pro-placeholder-card {
	max-width: 100%;
}

.slotify-pro-placeholder-intro {
	margin: 0 0 1.25rem;
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
}

.slotify-pro-placeholder-intro .slotify-badge-pro {
	margin-right: 0.5rem;
	vertical-align: middle;
}

.slotify-pro-placeholder-heading {
	margin: 0 0 0.75rem;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.slotify-pro-placeholder-features {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
	font-size: 14px;
	line-height: 1.6;
	color: #50575e;
}

.slotify-pro-placeholder-features li {
	margin-bottom: 0.35rem;
}

.slotify-pro-placeholder-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #dcdcde;
}

.slotify-pro-placeholder-actions .slotify-pro-cta {
	text-decoration: none;
}

.slotify-pro-learn {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
}

.slotify-pro-learn:hover {
	color: #135e96;
	text-decoration: underline;
}

/* ========== Booking detail drawer (Bookings list + Calendar) ========== */
.slotify-drawer .slotify-drawer-header {
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	padding: 1rem 1.25rem;
}

.slotify-drawer .slotify-drawer-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
}

.slotify-drawer .slotify-drawer-close {
	color: #646970;
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	border-radius: 4px;
}

.slotify-drawer .slotify-drawer-close:hover {
	color: #1d2327;
	background: rgba(0, 0, 0, 0.05);
}

.slotify-drawer-body .slotify-booking-detail-panel {
	font-size: 14px;
	line-height: 1.5;
}

.slotify-drawer-body .slotify-booking-detail-id {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #dcdcde;
}

.slotify-drawer-body .slotify-booking-detail-id-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #646970;
}

.slotify-drawer-body .slotify-booking-detail-id-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1d2327;
}

.slotify-drawer-body .slotify-booking-detail-section {
	margin-bottom: 1.25rem;
}

.slotify-drawer-body .slotify-booking-detail-section-title {
	margin: 0 0 0.5rem;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #646970;
}

.slotify-drawer-body .slotify-booking-detail-section-body,
.slotify-drawer-body .slotify-booking-detail-section-body p {
	margin: 0 0 0.25rem;
}

.slotify-drawer-body .slotify-booking-detail-section-body p:last-child {
	margin-bottom: 0;
}

.slotify-drawer-body .slotify-booking-detail-customer-name {
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.slotify-drawer-body .slotify-booking-detail-meta {
	font-size: 13px;
	color: #50575e;
}

.slotify-drawer-body .slotify-booking-detail-link {
	color: #2271b1;
	text-decoration: none;
}

.slotify-drawer-body .slotify-booking-detail-link:hover {
	color: #135e96;
	text-decoration: underline;
}

.slotify-drawer-body .slotify-booking-detail-dl {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 0.35rem 1rem;
	margin: 0;
	font-size: 13px;
}

.slotify-drawer-body .slotify-booking-detail-dl dt {
	font-weight: 500;
	color: #646970;
}

.slotify-drawer-body .slotify-booking-detail-dl dd {
	margin: 0;
	color: #1d2327;
}

.slotify-drawer-body .slotify-booking-detail-dl--compact {
	grid-template-columns: 60px 1fr;
	font-size: 12px;
	margin-top: 0.5rem;
}

.slotify-drawer-body .slotify-booking-detail-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.slotify-drawer-body .slotify-booking-detail-badges .slotify-badge {
	margin: 0;
}

.slotify-drawer-body .slotify-booking-detail-confirm-link-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.25rem;
}

.slotify-drawer-body .slotify-confirm-link-input {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	padding: 0.4rem 0.6rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #f6f7f7;
}

.slotify-drawer-body .slotify-drawer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid #dcdcde;
}

.slotify-drawer-body .slotify-drawer-actions .button {
	margin: 0;
}

.slotify-drawer-body .slotify-drawer-actions .slotify-btn-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.slotify-drawer-body .slotify-drawer-actions .slotify-btn-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.slotify-drawer-body .slotify-drawer-actions .slotify-btn-secondary {
	background: #f6f7f7;
	color: #1d2327;
	border: 1px solid #8c8f94;
}

.slotify-drawer-body .slotify-drawer-actions .slotify-btn-secondary:hover {
	background: #dcdcde;
	color: #1d2327;
	border-color: #8c8f94;
}
