/* ═══ Tab Navigation ═══ */

.rb-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 1.25rem;
}

.rb-tabs .tab-btn {
	padding: 1rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #6b7280;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s;
	white-space: nowrap;
}

.rb-tabs .tab-btn:hover {
	color: #E53935;
}

.rb-tabs .tab-btn.active {
	color: #E53935;
	border-bottom-color: #E53935;
}

.rb-tabs .tab-btn i {
	font-size: 0.85rem;
	margin-right: 0;
}

.rb-tab-content {
	display: none;
}

.rb-tab-content.active {
	display: block;
}

/* ═══ Availability Filter (Spot Tab Sidebar) ═══ */

.availability-filter-section {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
}

.availability-filter-section h5 {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 0.25rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.availability-filter-section h5 i {
	color: #6b7280;
}

.availability-filter-hint {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-bottom: 0.75rem;
}

.availability-filter-grid {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Days grid — prototype: day-checkbox pattern with input:checked + span */
.avail-days-grid {
	display: flex;
	justify-content: space-between;
	gap: 0.25rem;
}

.avail-days-grid .day-checkbox {
	display: flex;
	cursor: pointer;
	margin: 0;
}

.avail-days-grid .day-checkbox input {
	display: none;
}

.avail-days-grid .day-checkbox span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	background: #fff;
	color: #6b7280;
	border: 1px solid #e5e7eb;
	transition: all 0.15s;
}

.avail-days-grid .day-checkbox:hover span {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.avail-days-grid .day-checkbox input:checked + span {
	background: #16a34a;
	color: #fff;
	border-color: #15803d;
}

/* Time slots — prototype: column layout, equal width, icon above text */
.avail-times-grid {
	display: flex;
	gap: 0.375rem;
}

.avail-times-grid .time-checkbox {
	flex: 1;
	display: flex;
	cursor: pointer;
	margin: 0;
}

.avail-times-grid .time-checkbox input {
	display: none;
}

.avail-times-grid .time-checkbox span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 32px;
	padding: 0 0.5rem;
	border-radius: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	background: #fff;
	color: #6b7280;
	border: 1px solid #e5e7eb;
	transition: all 0.15s;
	width: 100%;
}

.avail-times-grid .time-checkbox span i {
	font-size: 0.8125rem;
}

.avail-times-grid .time-checkbox:hover span {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.avail-times-grid .time-checkbox input:checked + span {
	background: #16a34a;
	color: #fff;
	border-color: #15803d;
}

/* Quick actions — prototype: equal-width bordered buttons */
.avail-quick-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.avail-quick-actions button {
	flex: 1;
	height: 32px;
	padding: 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.15s;
}

.avail-quick-actions button:hover {
	background: #f3f4f6;
}

/* ═══ Results Count + Shortlist Toggle ═══ */

.rb-results-count {
	font-size: 0.875rem;
	color: #6b7280;
}

.shortlist-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.8125rem;
	cursor: pointer;
	transition: all 0.2s;
	color: #6b7280;
}

.shortlist-toggle:hover {
	border-color: #E53935;
	color: #E53935;
}

.shortlist-toggle.active {
	background: #E53935;
	border-color: #E53935;
	color: #fff;
}

.shortlist-toggle i {
	font-size: 0.75rem;
}

/* ═══ Spot Resume Card Extras ═══ */

.badge-yellow {
	background: #fefce8 !important;
	color: #713f12 !important;
}

.badge-yellow i {
	color: #d97706;
}

/* Availability trigger — prototype: pill-shaped with day initials + chevron */
.avail-row {
	margin-top: 0.5rem;
}

.avail-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 500;
	color: #6b7280;
	transition: background 0.15s, border-color 0.15s;
	position: relative;
}

.avail-trigger:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.day-initials {
	display: inline-flex;
	gap: 4px;
}

.avail-trigger .day-init {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	font-size: 0.65rem;
	font-weight: 600;
	color: #9ca3af;
	background: #f3f4f6;
}

.avail-trigger .day-init.on {
	color: #374151;
	background: #dcfce7;
}

.avail-trigger .chevron {
	font-size: 0.5rem;
	color: #9ca3af;
	transition: transform 0.2s;
}

.avail-trigger.open .chevron {
	transform: rotate(180deg);
}

/* Expanded availability panel — prototype: positioned popup with animation */
.avail-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
	padding: 1rem 1.125rem;
	width: 320px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.avail-trigger.open + .avail-panel,
.avail-panel.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.avail-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.avail-panel-title {
	font-size: 0.8rem;
	font-weight: 600;
	color: #1f2937;
}

.avail-panel-title i {
	color: #f59e0b;
	margin-right: 0.25rem;
	font-size: 0.7rem;
}

.salary-tag {
	font-size: 0.75rem;
	font-weight: 600;
	color: #713f12;
	background: #fefce8;
	padding: 0.15rem 0.5rem;
	border-radius: 9999px;
}

.avail-grid-table {
	width: 100%;
	border-collapse: collapse;
}

.avail-grid-table th {
	font-size: 0.65rem;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: center;
	padding: 0.25rem;
	padding-bottom: 0.4rem;
}

.avail-grid-table th:first-child,
.avail-grid-table td:first-child {
	text-align: left;
	font-weight: 500;
	color: #6b7280;
	width: 52px;
	font-size: 0.68rem;
}

.avail-grid-table td {
	text-align: center;
	padding: 0.25rem 0;
}

.avail-grid-table .time-label {
	text-align: left;
	font-size: 0.75rem;
	color: #6b7280;
	white-space: nowrap;
}

.avail-grid-table .time-label i {
	width: 14px;
	text-align: center;
	margin-right: 0.125rem;
	font-size: 0.7rem;
}

.avail-cell {
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 0.25rem;
	background: #f3f4f6;
}

.avail-cell.on {
	background: #dcfce7;
}

.avail-cell i {
	display: none;
}

.avail-cell.on {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.avail-cell.on i {
	display: block;
	font-size: 0.6rem;
	color: #16a34a;
}

.avail-panel-legend {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.625rem;
	padding-top: 0.5rem;
	border-top: 1px solid #f3f4f6;
	font-size: 0.68rem;
	color: #9ca3af;
}

.avail-panel-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.legend-dot.available {
	background: #dcfce7;
	border: 1px solid #86efac;
}

.legend-dot.unavailable {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

/* ═══ Invitation Dashboard ═══ */

.dashboard-stats {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 1.5rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.stat-total {
	text-align: center;
	padding-right: 2rem;
	border-right: 1px solid #e5e7eb;
}

.stat-total .number {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1f2937;
	line-height: 1;
}

.stat-total .label {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: 0.25rem;
}

.stat-total .pct {
	font-size: 0.75rem;
	color: #9ca3af;
}

.stat-circles {
	display: flex;
	gap: 2rem;
	flex: 1;
	justify-content: space-around;
	flex-wrap: wrap;
}

.stat-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Prototype: 80px circles with positioned text overlay */
.circle-progress {
	position: relative;
	width: 80px;
	height: 80px;
}

.circle-progress svg {
	transform: rotate(-90deg);
	width: 80px;
	height: 80px;
}

.circle-progress .circle-bg {
	fill: none;
	stroke: #e5e7eb;
	stroke-width: 6;
}

.circle-progress .circle-fill {
	fill: none;
	stroke-width: 6;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.5s ease;
}

.circle-progress .circle-fill.green { stroke: #22c55e; }
.circle-progress .circle-fill.yellow { stroke: #eab308; }
.circle-progress .circle-fill.gray { stroke: #9ca3af; }
.circle-progress .circle-fill.red { stroke: #ef4444; }

.circle-progress .circle-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f2937;
}

.stat-circle .stat-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #374151;
	margin-top: 0.5rem;
}

.stat-circle .stat-sublabel {
	font-size: 0.6875rem;
	color: #9ca3af;
}

/* Dashboard filters */
.dashboard-filters {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.dashboard-filters .filter-btn {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s;
}

.dashboard-filters .filter-btn:hover {
	border-color: #E53935;
	color: #E53935;
}

.dashboard-filters .filter-btn.active {
	background: #E53935;
	border-color: #E53935;
	color: #fff;
}

.dashboard-search {
	margin-left: auto;
}

.dashboard-search input {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	width: 200px;
}

.dashboard-search input:focus {
	outline: none;
	border-color: #E53935;
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Invitation table */
.invitation-table {
	width: 100%;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.invitation-table table {
	width: 100%;
	border-collapse: collapse;
}

.invitation-table thead {
	background: #f9fafb;
}

.invitation-table th {
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.invitation-table td {
	padding: 1rem;
	font-size: 0.875rem;
	color: #374151;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: middle;
}

.invitation-table tr:last-child td {
	border-bottom: none;
}

.invitation-table tr:hover {
	background: #f9fafb;
}

.candidate-cell {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.candidate-cell img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 9999px;
}

.status-sent { background: #dbeafe; color: #1e40af; }
.status-viewed { background: #fef3c7; color: #92400e; }
.status-accepted { background: #dcfce7; color: #374151; }
.status-declined { background: #fee2e2; color: #991b1b; }
.status-applied { background: #f3e8ff; color: #7c3aed; }

.invitation-actions a {
	font-size: 0.875rem;
	font-weight: 500;
	color: #E53935;
	text-decoration: none;
	margin-right: 0.75rem;
}

.invitation-actions a:hover {
	text-decoration: underline;
}

/* Dashboard pagination */
.dashboard-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.dashboard-pagination button {
	padding: 0.5rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
}

.dashboard-pagination button:hover {
	border-color: #E53935;
	color: #E53935;
}

.dashboard-pagination button.active {
	background: #E53935;
	border-color: #E53935;
	color: #fff;
}

.dashboard-loading {
	text-align: center;
	padding: 2rem;
	color: #9ca3af;
}

.dashboard-empty {
	text-align: center;
	padding: 3rem;
	color: #9ca3af;
}

.dashboard-empty i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	display: block;
}

/* ═══ Mobile Responsive ═══ */

@media (max-width: 768px) {
	.rb-tabs .tab-btn {
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}
	.rb-tabs .tab-btn span {
		display: none;
	}
	.dashboard-stats {
		flex-direction: column;
		gap: 1.5rem;
	}
	.stat-total {
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
		padding-right: 0;
		padding-bottom: 1rem;
	}
	.stat-circles {
		gap: 1rem;
	}
	.circle-progress,
	.circle-progress svg {
		width: 70px;
		height: 70px;
	}
}
