/**
 * Custom User Registration Fields for Tutor LMS — Admin Styles v2.0
 */

/* ----------------------------------------------------------------
   Page wrapper
---------------------------------------------------------------- */
.tutor-cuf-wrap {
	max-width: 1280px;
}

.tutor-cuf-page-title {
	margin-bottom: 0;
	padding-top: 8px;
}

/* ----------------------------------------------------------------
   Tab nav
---------------------------------------------------------------- */
.tutor-cuf-nav-tabs {
	margin-top: 10px;
}

/* ----------------------------------------------------------------
   Panel
---------------------------------------------------------------- */
.tutor-cuf-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 28px 24px;
	border-radius: 0 0 3px 3px;
}

/* ----------------------------------------------------------------
   Form
---------------------------------------------------------------- */
.tutor-cuf-form {
	width: 100%;
}

/* ----------------------------------------------------------------
   Column grid — header + rows share the same template columns
---------------------------------------------------------------- */
.tutor-cuf-fields-header,
.tutor-cuf-row {
	display: grid;
	grid-template-columns: 1fr 180px 160px 72px 1fr 44px;
	gap: 10px;
	align-items: start;
}

/* ----------------------------------------------------------------
   Header row
---------------------------------------------------------------- */
.tutor-cuf-fields-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
	margin-bottom: 4px;
}

.tutor-cuf-th {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #50575e;
}

/* ----------------------------------------------------------------
   Field rows
---------------------------------------------------------------- */
.tutor-cuf-rows {
	min-height: 52px;
}

.tutor-cuf-row {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f1;
	transition: background 0.1s;
}

.tutor-cuf-row:hover {
	background: #fafafa;
}

/* ----------------------------------------------------------------
   Row cells
---------------------------------------------------------------- */
.tutor-cuf-td {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tutor-cuf-td input[type="text"],
.tutor-cuf-td select,
.tutor-cuf-td textarea {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

/* Required toggle — center vertically in its column */
.tutor-cuf-td-req {
	align-items: center;
	justify-content: center;
	padding-top: 4px;
}

/* Remove button column */
.tutor-cuf-td-remove {
	align-items: flex-end;
	justify-content: flex-start;
	padding-top: 2px;
}

/* ----------------------------------------------------------------
   Meta key input — monospace hint
---------------------------------------------------------------- */
.tutor-cuf-key-input {
	font-family: 'Courier New', Courier, monospace !important;
	font-size: 12.5px !important;
	color: #1d4ed8 !important;
}

/* ----------------------------------------------------------------
   Toggle switch
---------------------------------------------------------------- */
.tutor-cuf-toggle {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 20px;
	cursor: pointer;
	flex-shrink: 0;
}

.tutor-cuf-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.tutor-cuf-slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 20px;
	transition: background 0.18s;
}

.tutor-cuf-slider::before {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	transition: transform 0.18s;
}

.tutor-cuf-toggle input:checked + .tutor-cuf-slider {
	background: #2271b1;
}

.tutor-cuf-toggle input:checked + .tutor-cuf-slider::before {
	transform: translateX(18px);
}

.tutor-cuf-toggle input:focus-visible + .tutor-cuf-slider {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Select options textarea (shown only when type = select)
---------------------------------------------------------------- */
.tutor-cuf-options-wrap {
	margin-top: 6px;
}

.tutor-cuf-options-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #50575e;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tutor-cuf-options-ta {
	width: 100% !important;
	box-sizing: border-box;
	font-size: 12.5px;
	resize: vertical;
}

/* ----------------------------------------------------------------
   Remove button
---------------------------------------------------------------- */
.tutor-cuf-remove-btn.button {
	background: none;
	border-color: #d63638;
	color: #d63638;
	padding: 0 8px;
	height: 30px;
	line-height: 28px;
	font-size: 13px;
	min-width: 30px;
	transition: background 0.15s, color 0.15s;
}

.tutor-cuf-remove-btn.button:hover,
.tutor-cuf-remove-btn.button:focus {
	background: #d63638;
	color: #fff;
	border-color: #d63638;
}

/* ----------------------------------------------------------------
   Footer (add + save)
---------------------------------------------------------------- */
.tutor-cuf-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
}

.tutor-cuf-add-btn.button {
	border-style: dashed;
	color: #2271b1;
	border-color: #2271b1;
}

.tutor-cuf-add-btn.button:hover {
	background: #f0f6fc;
}

/* ----------------------------------------------------------------
   Tutor admin metabox section label
---------------------------------------------------------------- */
.tutor-cuf-metabox-section {
	padding-top: 12px;
	color: #1d2327;
	font-size: 13px;
}
