/**
 * Frontend Navigation Styles
 *
 * @package SchoolsScheduling
 * @author Tobalt — https://tobalt.lt
 */

/* ── Tab Navigation ─────────────────────────── */
.tobalt-schedule-nav {
	margin-bottom: 24px;
}

.tobalt-schedule-tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2px;
	border-bottom: 2px solid var(--ts-border);
}

.tobalt-schedule-tabs li {
	margin: 0;
}

.tobalt-schedule-tab {
	display: block;
	padding: 12px 24px;
	color: var(--ts-text-muted);
	text-decoration: none;
	font-family: var(--ts-font);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.01em;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color .2s ease, border-color .2s ease;
}

.tobalt-schedule-tab:hover {
	color: var(--ts-navy);
	text-decoration: none;
}

.tobalt-schedule-tab.active {
	color: var(--ts-teal);
	border-bottom-color: var(--ts-teal);
}

/* ── Selector Panels ────────────────────────── */
.tobalt-schedule-selector {
	margin-bottom: 24px;
}

.tobalt-selector-panel {
	padding: 16px 0 8px;
}

/* ── Class Grade Groups ─────────────────────── */
.tobalt-class-grade-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.tobalt-grade-label {
	font-weight: 700;
	color: var(--ts-text-muted);
	font-size: 13px;
	min-width: 40px;
	letter-spacing: 0.01em;
}

/* ── Pill Buttons (shared) ──────────────────── */
.tobalt-class-btn,
.tobalt-room-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 16px;
	background: var(--ts-card);
	border: 1.5px solid var(--ts-border);
	border-radius: 8px;
	color: var(--ts-text);
	text-decoration: none;
	font-family: var(--ts-font);
	font-weight: 600;
	font-size: 14px;
	transition: all .15s ease;
	min-width: 44px;
}

.tobalt-class-btn:hover,
.tobalt-room-btn:hover {
	border-color: var(--ts-teal);
	color: var(--ts-teal);
	text-decoration: none;
	background: rgba(13, 148, 136, .04);
}

.tobalt-class-btn.active,
.tobalt-room-btn.active {
	background: var(--ts-teal);
	border-color: var(--ts-teal);
	color: #fff;
	box-shadow: 0 2px 8px rgba(13, 148, 136, .25);
}

/* ── Search Box ─────────────────────────────── */
.tobalt-search-box {
	margin-bottom: 14px;
}

.tobalt-search-input {
	width: 100%;
	max-width: 400px;
	padding: 10px 16px;
	border: 1.5px solid var(--ts-border);
	border-radius: 8px;
	font-family: var(--ts-font);
	font-size: 14px;
	color: var(--ts-text);
	background: var(--ts-card);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tobalt-search-input::placeholder {
	color: var(--ts-text-subtle);
}

.tobalt-search-input:focus {
	border-color: var(--ts-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, .1);
}

/* ── Teacher List ───────────────────────────── */
.tobalt-teacher-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tobalt-teacher-btn {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	background: var(--ts-card);
	border: 1.5px solid var(--ts-border);
	border-radius: 20px;
	color: var(--ts-text);
	text-decoration: none;
	font-family: var(--ts-font);
	font-size: 13px;
	font-weight: 500;
	transition: all .15s ease;
}

.tobalt-teacher-btn:hover {
	border-color: var(--ts-teal);
	color: var(--ts-teal);
	text-decoration: none;
	background: rgba(13, 148, 136, .04);
}

.tobalt-teacher-btn.active {
	background: var(--ts-teal);
	border-color: var(--ts-teal);
	color: #fff;
	box-shadow: 0 2px 8px rgba(13, 148, 136, .25);
}

.tobalt-teacher-btn.hidden {
	display: none;
}

/* ── Room List ──────────────────────────────── */
.tobalt-room-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
