/* ==============================================
   Simple Post Expiration — Admin UI
   ============================================== */

:root {
	--spe-accent:      #4f46e5;
	--spe-accent-dark: #3730a3;
	--spe-text:        #1d2327;
	--spe-muted:       #6d7a8a;
	--spe-border:      #dde1e7;
	--spe-bg:          #f8f9fb;
	--spe-radius:      6px;
	--spe-shadow:      0 1px 3px rgba(0,0,0,.08);
	--spe-transition:  .15s ease;
}

.spe-meta-box {
	padding: 2px 0 4px;
}

/* ----------------------------------------------
   Toggle switch
   ---------------------------------------------- */

.spe-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	margin-bottom: 14px;
}

.spe-toggle-switch {
	position: relative;
	width: 38px;
	height: 22px;
	flex-shrink: 0;
}

.spe-toggle-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.spe-toggle-slider {
	position: absolute;
	inset: 0;
	background: #c3c4c7;
	border-radius: 22px;
	transition: background var(--spe-transition);
}

.spe-toggle-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform var(--spe-transition);
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.spe-toggle-switch input:checked + .spe-toggle-slider {
	background: var(--spe-accent);
}

.spe-toggle-switch input:checked + .spe-toggle-slider::before {
	transform: translateX(16px);
}

.spe-toggle-switch input:focus-visible + .spe-toggle-slider {
	outline: 2px solid var(--spe-accent);
	outline-offset: 2px;
}

.spe-toggle-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--spe-text);
	margin-top: -2px;
}

/* ----------------------------------------------
   Fields container
   ---------------------------------------------- */

.spe-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.spe-field-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.spe-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--spe-muted);
}

/* ----------------------------------------------
   Text / datetime input
   ---------------------------------------------- */

.spe-input-wrap {
	position: relative;
}

.spe-input {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	font-size: 13px;
	color: var(--spe-text);
	background: #fff;
	border: 1px solid var(--spe-border);
	border-radius: var(--spe-radius);
	box-shadow: var(--spe-shadow);
	box-sizing: border-box;
	transition: border-color var(--spe-transition), box-shadow var(--spe-transition);
	cursor: pointer;
}

.spe-input:focus {
	outline: none;
	border-color: var(--spe-accent);
	box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.spe-input-wrap--icon .spe-input {
	padding-right: 36px;
}

.spe-input-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--spe-muted);
	pointer-events: none;
	display: flex;
	align-items: center;
}

/* ----------------------------------------------
   Select
   ---------------------------------------------- */

.spe-select-wrap {
	position: relative;
}

.spe-select {
	width: 100%;
	height: 36px;
	padding: 0 32px 0 12px;
	font-size: 13px;
	color: var(--spe-text);
	background: #fff;
	border: 1px solid var(--spe-border);
	border-radius: var(--spe-radius);
	box-shadow: var(--spe-shadow);
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color var(--spe-transition), box-shadow var(--spe-transition);
}

.spe-select:focus {
	outline: none;
	border-color: var(--spe-accent);
	box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.spe-select-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--spe-muted);
	pointer-events: none;
	display: flex;
	align-items: center;
}

/* ----------------------------------------------
   Flatpickr overrides
   ---------------------------------------------- */

.flatpickr-calendar {
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	border: 1px solid var(--spe-border);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	color: var(--spe-text);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
	background: var(--spe-accent);
	border-color: var(--spe-accent);
}

.flatpickr-day:hover {
	background: var(--spe-bg);
}

.flatpickr-day.today {
	border-color: var(--spe-accent);
}

.flatpickr-day.today:hover {
	background: var(--spe-bg);
	color: var(--spe-text);
}


.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
	background: var(--spe-bg);
}

