/* ==========================================================================
   Trane Training Dashboard
   ========================================================================== */

.trane-dashboard {
	max-width: 900px;
	margin: 0 auto;
	padding: 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.trane-dashboard__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	width: 100%;
}

.trane-dashboard__heading {
	font-size: 1.75rem;
	margin-bottom: 0;
	color: #1a1a1a;
}

.trane-dashboard__subheading {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	color: #333;
	border-bottom: 2px solid #d71920; /* Trane red */
	padding-bottom: 0.5rem;
}

.trane-dashboard__section {
	margin-bottom: 2.5rem;
}

.trane-dashboard__empty {
	color: #666;
	font-style: italic;
	padding: 1rem 0;
}

/* Cards */

.trane-dashboard__cards {
	display: grid;
	gap: 1rem;
}

.trane-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.15s ease;
}

.trane-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trane-card--past {
	background: #fafafa;
}

.trane-card__title {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
	color: #1a1a1a;
}

.trane-card__meta {
	margin: 0 0 0.25rem;
	font-size: 0.9rem;
	color: #555;
}

.trane-card__meta span + span::before {
	content: " \00b7 ";
}

.trane-card__venue {
	margin: 0;
	font-size: 0.85rem;
	color: #777;
}

.trane-card__actions {
	flex-shrink: 0;
	margin-left: 1rem;
}

/* Buttons */

.trane-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	line-height: 1.4;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.trane-btn--primary {
	background: #d71920;
	color: #fff;
}

.trane-btn--primary:hover {
	background: #b5151b;
	color: #fff;
}

.trane-btn--secondary {
	background: transparent;
	color: #333;
	border: 1px solid #ccc;
}

.trane-btn--secondary:hover {
	background: #f5f5f5;
	color: #1a1a1a;
}

.trane-btn--cancel {
	background: transparent;
	color: #d71920;
	border: 1px solid #d71920;
}

.trane-btn--cancel:hover {
	background: #d71920;
	color: #fff;
}

.trane-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Badge */

.trane-badge {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	font-size: 0.8rem;
	border-radius: 3px;
}

.trane-badge--muted {
	background: #eee;
	color: #888;
}

/* Confirm overlay on cancel */

.trane-card--confirming .trane-card__actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

/* Responsive */

@media (max-width: 600px) {
	.trane-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.trane-card__actions {
		margin-left: 0;
		margin-top: 0.75rem;
		width: 100%;
	}

	.trane-btn {
		width: 100%;
	}
}
