/* Tutor Quiz Scheduler — front-end (participant notices + facilitator control) */

.tqs-notice,
.tqs-fac {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

/* ---- Participant status notices ---- */
.tqs-notice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 22px;
	padding: 16px 18px 16px 20px;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	background: #f7f9fc;
	border: 1px solid #e7ecf3;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.tqs-notice::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #9aa6b6;
}
.tqs-notice__title { font-size: 15px; font-weight: 600; color: #1f2a37; letter-spacing: -0.01em; }
.tqs-notice__meta { font-size: 13px; color: #66707d; }

.tqs-notice--pending { background: #fffaf0; border-color: #f3e3bf; }
.tqs-notice--pending::before { background: #e0a92e; }
.tqs-notice--pending .tqs-notice__title { color: #7a5a08; }

.tqs-notice--open { background: #f0f7ff; border-color: #cfe3fb; }
.tqs-notice--open::before { background: #2f7fe0; }
.tqs-notice--open .tqs-notice__title { color: #11487f; }

.tqs-notice--closed { background: #fff5f4; border-color: #f6d2cd; }
.tqs-notice--closed::before { background: #d6493b; }
.tqs-notice--closed .tqs-notice__title { color: #8f271c; }

.tqs-countdown {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 2px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.06);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 13px;
	color: #1f2a37;
	letter-spacing: 0.02em;
}

/* ---- Facilitator control card ---- */
.tqs-fac {
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 1px solid #e4e9f0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
}
.tqs-fac__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.tqs-fac__badge {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #9aa6b6;
	flex: 0 0 auto;
}
.tqs-fac__badge--open   { background: #18a058; box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.16); }
.tqs-fac__badge--idle   { background: #e0a92e; box-shadow: 0 0 0 4px rgba(224, 169, 46, 0.16); }
.tqs-fac__badge--sealed { background: #d6493b; box-shadow: 0 0 0 4px rgba(214, 73, 59, 0.16); }
.tqs-fac__status { font-size: 14px; font-weight: 600; color: #1f2a37; }
.tqs-fac__clock {
	margin-left: auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f1f5f9;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 13px;
	color: #334155;
}
.tqs-fac__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tqs-fac__open { display: flex; align-items: center; gap: 8px; }

.tqs-fac__btn {
	cursor: pointer;
	border: 0;
	border-radius: 10px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	line-height: 1;
	transition: transform 0.04s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.tqs-fac__btn:hover { box-shadow: 0 3px 10px rgba(16, 24, 40, 0.18); }
.tqs-fac__btn:active { transform: translateY(1px); }
.tqs-fac__btn--open   { background: #18a058; }
.tqs-fac__btn--open:hover   { background: #138a4b; }
.tqs-fac__btn--close  { background: #d6493b; }
.tqs-fac__btn--close:hover  { background: #bd3b2e; }
.tqs-fac__btn--reopen { background: #475569; }
.tqs-fac__btn--reopen:hover { background: #3b4757; }
.tqs-fac__btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }

/* Show only the controls relevant to the current state */
.tqs-fac[data-state="idle"]   .tqs-fac__btn--close,
.tqs-fac[data-state="idle"]   .tqs-fac__btn--reopen,
.tqs-fac[data-state="open"]   .tqs-fac__open,
.tqs-fac[data-state="open"]   .tqs-fac__btn--reopen,
.tqs-fac[data-state="sealed"] .tqs-fac__open,
.tqs-fac[data-state="sealed"] .tqs-fac__btn--close {
	display: none;
}
