/* Volunteer Training Compliance - User Status Shortcodes Styles */

/* ===== FULL STATUS DISPLAY ===== */

.vt-full-status-container {
	max-width: 900px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #333;
}

.vt-status-header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background: #467FF7;
	color: #fff;
	border-radius: 8px;
}

.vt-status-header h2 {
	margin: 0 0 10px 0;
	font-size: 28px;
	font-weight: 600;
}

.vt-status-user {
	margin: 0;
	font-size: 16px;
	opacity: 0.9;
}

.vt-status-message {
	padding: 20px;
	background: #f0f4f8;
	border-radius: 6px;
	text-align: center;
	color: #555;
	font-size: 16px;
}

.vt-status-error {
	padding: 20px;
	background: #fee;
	border-left: 4px solid #c33;
	border-radius: 6px;
	color: #c33;
	font-weight: 500;
}

/* ===== GLOBAL CERTIFICATIONS SECTION ===== */

.vt-global-certs-container {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.vt-global-certs-header {
	background: #467FF7;
	color: #fff;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.vt-global-cert-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid #e8e8e8;
	font-weight: 600;
	font-size: 14px;
}

.vt-global-cert-row:last-child {
	border-bottom: none;
}

.vt-global-cert-row.cert-row-valid {
	background: #f0fff0;
	color: #28a745;
}

.vt-global-cert-row.cert-row-expired {
	background: #fff5f5;
	color: #dc3545;
}

.vt-global-cert-row.cert-row-missing {
	background: #fffbf0;
	color: #ffb81c;
}

.vt-global-cert-name {
	flex: 1;
}

.vt-global-cert-status {
	text-align: right;
}

/* ===== ACCORDION LAYOUT ===== */

.vt-accordion-view .vt-section-container {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.vt-accordion-trigger {
	cursor: pointer;
	padding: 16px 20px;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s;
}

.vt-accordion-trigger:hover {
	background: #e9ecef;
}

.vt-accordion-icon {
	font-size: 12px;
	color: #69727d;
	transition: transform 0.2s;
}

.vt-accordion-content {
	display: none;
	padding: 0;
	border-top: 1px solid #e0e0e0;
}

.vt-accordion-content.open {
	display: block;
}

/* ===== VENUE ACCORDION SECTION ===== */

.vt-venue-section .vt-venue-header-row {
	padding: 16px 20px;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.vt-venue-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 200px;
}

.vt-venue-name-full {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.vt-summary-pill {
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	min-width: 140px;
	text-align: center;
}

.vt-summary-pill.pill-valid {
	background: #28a745;
	color: #fff;
}

.vt-summary-pill.pill-expired {
	background: #dc3545;
	color: #fff;
}

.vt-summary-pill.pill-not-started {
	background: #69727d;
	color: #fff;
}

.vt-summary-pill.pill-partial {
	background: #ffb81c;
	color: #333;
}

.vt-venue-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.vt-venue-window-compact {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	line-height: 1.2;
}

.vt-window-label {
	font-size: 11px;
	color: #69727d;
	font-weight: 500;
	text-transform: uppercase;
}

.vt-window-date {
	font-size: 13px;
	color: #333;
	font-weight: 600;
}

/* ===== TRAINING ROWS (inside accordion) ===== */

.vt-training-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.vt-training-row:last-child {
	border-bottom: none;
}

.vt-training-row.row-valid {
	background: #f8fff8;
}

.vt-training-row.row-valid .vt-training-name,
.vt-training-row.row-valid .vt-training-approval-date,
.vt-training-row.row-valid .vt-training-status {
	color: #28a745;
}

.vt-training-row.row-expired {
	background: #fff8f8;
}

.vt-training-row.row-expired .vt-training-name,
.vt-training-row.row-expired .vt-training-approval-date,
.vt-training-row.row-expired .vt-training-status {
	color: #dc3545;
}

.vt-training-row.row-missing {
	background: #fffdf5;
}

.vt-training-row.row-missing .vt-training-name,
.vt-training-row.row-missing .vt-training-approval-date,
.vt-training-row.row-missing .vt-training-status {
	color: #ffb81c;
}

.vt-training-name {
	flex: 2;
	font-weight: 500;
	font-size: 14px;
}

.vt-training-approval-date {
	flex: 1;
	font-size: 13px;
	color: #666;
	text-align: center;
}

.vt-training-status {
	flex: 1;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	text-align: right;
}

/* Header row styling */
.vt-training-row.vt-training-header {
	background: #f5f5f5;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	color: #666;
	border-bottom: 2px solid #ddd;
}

.vt-training-row.vt-training-header .vt-training-name,
.vt-training-row.vt-training-header .vt-training-approval-date,
.vt-training-row.vt-training-header .vt-training-status {
	color: #666;
}

/* ===== VENUE CARDS ===== */

.vt-venue-card {
	background: #fff;
	border-left: 5px solid #ddd;
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s;
}

.vt-venue-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vt-venue-card.compliant {
	border-left-color: #4caf50;
	background: #fafff9;
}

.vt-venue-card.non-compliant {
	border-left-color: #f44336;
	background: #fffaf9;
}

.vt-venue-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
}

.vt-venue-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	flex: 1;
}

.vt-venue-badge {
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.vt-venue-badge.compliant {
	background: #d4edda;
	color: #155724;
}

.vt-venue-badge.non-compliant {
	background: #f8d7da;
	color: #721c24;
}

.vt-venue-items {
	padding: 20px;
}

/* ===== TRAINING ITEMS ===== */

.vt-training-item {
	margin-bottom: 16px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	transition: all 0.2s;
}

.vt-training-item:last-child {
	margin-bottom: 0;
}

.vt-training-item:hover {
	background: #f8f9fa;
	border-color: #bbb;
}

.vt-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.vt-item-name {
	font-weight: 600;
	color: #333;
	font-size: 15px;
	flex: 1;
}

.vt-item-status {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	margin-left: 10px;
}

.vt-item-status.status-valid {
	background: #d4edda;
	color: #155724;
}

.vt-item-status.status-expired {
	background: #f8d7da;
	color: #721c24;
}

.vt-item-status.status-missing {
	background: #fff3cd;
	color: #856404;
}

.vt-item-status.status-underage {
	background: #d1ecf1;
	color: #0c5460;
}

.vt-item-date {
	font-size: 13px;
	color: #666;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #eee;
}

/* ===== WIDGET STYLES ===== */

.vt-widget-status-container {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vt-widget-header {
	background: #467FF7;
	color: #fff;
	padding: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.vt-widget-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.vt-widget-badge {
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.vt-widget-badge.compliant {
	background: rgba(76, 175, 80, 0.8);
}

.vt-widget-badge.non-compliant {
	background: rgba(244, 67, 54, 0.8);
}

.vt-widget-alert {
	padding: 12px 16px;
	background: #fff3cd;
	border-bottom: 1px solid #ffe5a0;
	color: #856404;
	font-size: 14px;
}

.vt-widget-alert strong {
	display: block;
	margin-bottom: 8px;
}

.vt-widget-venues {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vt-widget-venues li {
	padding: 4px 0;
	margin-left: 20px;
}

.vt-widget-venues li::before {
	content: '⚠ ';
	color: #f57f17;
	font-weight: bold;
	margin-left: -20px;
	margin-right: 6px;
}

.vt-widget-details {
	padding: 12px;
}

.vt-widget-venue {
	padding: 12px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.vt-widget-venue:last-child {
	border-bottom: none;
}

.vt-widget-venue-name {
	display: flex;
	align-items: center;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.vt-widget-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-right: 8px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
}

.vt-widget-icon.compliant {
	background: #4caf50;
}

.vt-widget-icon.non-compliant {
	background: #f44336;
}

.vt-widget-items {
	margin-left: 28px;
	padding-top: 6px;
}

.vt-widget-item {
	display: flex;
	align-items: center;
	padding: 4px 0;
	font-size: 13px;
	color: #555;
}

.vt-widget-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 8px;
	flex-shrink: 0;
}

.vt-widget-dot.status-valid {
	background: #4caf50;
}

.vt-widget-dot.status-expired {
	background: #f44336;
}

.vt-widget-dot.status-missing {
	background: #ff9800;
}

.vt-widget-dot.status-underage {
	background: #2196f3;
}

.vt-widget-label {
	flex: 1;
	word-break: break-word;
}

/* Widget Venue Summary Layout */
.vt-widget-venue-summary {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vt-venue-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.vt-venue-row:last-child {
	border-bottom: none;
}

.vt-venue-name {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	flex: 1;
	padding-right: 12px;
}

.vt-venue-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	color: #ffffff;
}

.vt-venue-pill .vt-pill-icon {
	font-size: 12px;
}

.vt-venue-pill .vt-pill-text {
	font-size: 12px;
}

.vt-venue-pill.status-valid {
	background: #28a745;
}

.vt-venue-pill.status-expiring {
	background: #fd7e14;
}

.vt-venue-pill.status-expired {
	background: #dc3545;
}

.vt-venue-pill.status-incomplete {
	background: #fd7e14;
}

.vt-venue-pill.status-not-started {
	background: #6c757d;
}

.vt-venue-pill.status-missing {
	background: #fd7e14;
}

/* Widget Items Grid (Pill Display) */
.vt-widget-items-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
}

.vt-widget-item-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: transform 0.2s, box-shadow 0.2s;
}

.vt-widget-item-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vt-widget-item-pill.status-valid {
	background: #28a745;
	color: #ffffff;
	border: none;
	font-weight: 700;
}

.vt-widget-item-pill.status-expiring {
	background: #fd7e14;
	color: #ffffff;
	border: none;
	font-weight: 700;
}

.vt-widget-item-pill.status-expired {
	background: #dc3545;
	color: #ffffff;
	border: none;
	font-weight: 700;
}

.vt-widget-item-pill.status-missing {
	background: #dc3545;
	color: #ffffff;
	border: none;
	font-weight: 700;
}

.vt-widget-item-pill.status-underage {
	background: #17a2b8;
	color: #ffffff;
	border: none;
	font-weight: 700;
}

.vt-pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	flex-shrink: 0;
}

.vt-pill-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.vt-widget-error {
	padding: 12px;
	background: #ffebee;
	border-left: 4px solid #c62828;
	border-radius: 4px;
	color: #c62828;
	font-size: 14px;
	font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
	.vt-full-status-container {
		margin: 15px 10px;
	}

	.vt-status-header {
		margin-bottom: 20px;
		padding: 15px;
	}

	.vt-status-header h2 {
		font-size: 24px;
	}

	/* Global Certifications responsive */
	.vt-global-cert-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	/* Accordion responsive */
	.vt-venue-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.vt-venue-meta {
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
		justify-content: flex-start;
	}

	.vt-venue-window-compact {
		flex-direction: row;
		gap: 6px;
	}

	.vt-venue-header-row {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 10px;
	}

	.vt-training-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.vt-venue-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.vt-venue-badge {
		margin-top: 10px;
		align-self: flex-start;
	}

	.vt-item-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.vt-item-status {
		margin-left: 0;
		margin-top: 8px;
		align-self: flex-start;
	}

	.vt-widget-status-container {
		max-width: 100%;
		margin: 0 auto;
	}
}

/* ===== PRINT STYLES ===== */

@media print {
	.vt-full-status-container,
	.vt-widget-status-container {
		box-shadow: none;
		page-break-inside: avoid;
	}

	.vt-venue-card {
		page-break-inside: avoid;
		border-left-width: 2px;
	}

	.vt-training-item {
		page-break-inside: avoid;
	}
}

/* ===== ACCESSIBILITY ===== */

.vt-widget-status-container:focus-within {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button.vt-status-button {
	padding: 10px 16px;
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 14px;
}

button.vt-status-button:hover {
	background: #5568d3;
}

button.vt-status-button:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

/* ===== HIGH DPI SUPPORT ===== */

@media (min-resolution: 2dppx) {
	.vt-venue-card,
	.vt-widget-status-container {
		border-width: 1px;
	}
}
