/**
 * MedExamium Course Expiry Countdown — Dashboard widget styling.
 *
 * Every color/radius/shadow value below reads from MedExamium's own
 * --me-* custom properties first (falling back to a sensible default
 * only if that variable is somehow unavailable) — this add-on never
 * hardcodes a color that would look inconsistent with a site's own
 * Design Settings customization.
 */

.cec-countdown-section {
	background: var(--me-surface, #ffffff);
	border: 1px solid var(--me-border, #e3e8f0);
	border-radius: var(--me-radius, 16px);
	box-shadow: var(--me-shadow-sm, 0 2px 8px rgba(17, 24, 39, 0.06));
	padding: 22px 24px;
	margin-bottom: 24px;
}

.cec-countdown-heading {
	font-size: 16px;
	font-weight: 800;
	color: var(--me-heading, #111827);
	margin: 0 0 16px;
}

.cec-bar-row {
	margin-bottom: 16px;
}
.cec-bar-row:last-child {
	margin-bottom: 0;
}

.cec-bar-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.cec-bar-course-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--me-text, #1a2333);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cec-bar-days {
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	white-space: nowrap;
}
.cec-bar-days-green { color: var(--me-success, #16a34a); }
.cec-bar-days-blue { color: var(--me-info, #0284c7); }
.cec-bar-days-red { color: var(--me-danger, #dc2626); }

.cec-bar-track {
	position: relative;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: var(--me-bg, #f3f4f6);
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
}

.cec-bar-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease, background-color 0.4s ease;
}
.cec-bar-fill-green { background: var(--me-success, #16a34a); }
.cec-bar-fill-blue { background: var(--me-info, #0284c7); }
.cec-bar-fill-red { background: var(--me-danger, #dc2626); }

/* Responsive: a touch more breathing room on very narrow screens,
   and the name/days pair wraps gracefully instead of overlapping. */
@media (max-width: 480px) {
	.cec-countdown-section {
		padding: 18px 16px;
	}
	.cec-bar-header {
		flex-wrap: wrap;
		row-gap: 2px;
	}
	.cec-bar-course-name {
		white-space: normal;
		flex-basis: 100%;
	}
}
