/* Add this CSS to your theme or custom CSS file */

.enhanced-event-modal {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.event-header {
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 1rem;
}

.event-image img {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-title {
	color: #2d3436;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.event-meta {
	font-size: 0.9rem;
}

.event-meta div {
	margin-bottom: 0.25rem;
}

.event-meta i {
	width: 16px;
	margin-right: 0.5rem;
	color: #6c757d;
}

.event-description {
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 1rem;
}

.event-description h5 {
	color: #2d3436;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.event-slots h5 {
	color: #2d3436;
	font-weight: 600;
	margin-bottom: 1rem;
}

/* Grid layout for slots - 3 columns */
.slots-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.event-slot-card {
	border: 1px solid #dee2e6 !important;
	transition: all 0.2s ease;
	background: #fff;
	padding: 1rem !important;
	margin-bottom: 0 !important;
	height: fit-content;
}

.event-slot-card:hover {
	border-color: #007bff !important;
	box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

/* Full/disabled slots styling */
.event-slot-card.slot-full {
	background-color: #f8f9fa !important;
	border-color: #dee2e6 !important;
	opacity: 0.7;
}

.event-slot-card.slot-full:hover {
	border-color: #dee2e6 !important;
	box-shadow: none;
	transform: none;
}

.event-slot-card.slot-full .slot-title {
	color: #6c757d;
}

.event-slot-card.slot-full .slot-time {
	color: #868e96 !important;
}

.slot-title {
	color: #2d3436;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 1rem;
}

.slot-time {
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}

.slot-time i {
	margin-right: 0.25rem;
}

.slot-description {
	font-size: 0.8rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

.slot-capacity {
	margin-bottom: 0.75rem;
}

.capacity-indicator {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	background-color: rgba(40, 167, 69, 0.1);
	color: #28a745;
	border: 1px solid rgba(40, 167, 69, 0.2);
}

.capacity-indicator.capacity-full {
	background-color: rgba(220, 53, 69, 0.1);
	color: #dc3545;
	border-color: rgba(220, 53, 69, 0.2);
}

.capacity-indicator svg {
	width: 14px;
	height: 14px;
	stroke-width: 2;
}

.badge {
	font-size: 0.7rem;
	padding: 0.25rem 0.4rem;
}

.signup-btn {
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
	font-weight: 500;
	transition: all 0.2s ease;
	width: 100%;
}

.signup-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.signup-btn:disabled {
	transform: none;
	box-shadow: none;
}

.signup-btn i {
	margin-right: 0.25rem;
}

/* Compact card layout */
.event-slot-card .d-flex {
	flex-direction: column !important;
}

.slot-actions {
	margin-left: 0 !important;
	margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.slots-container {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}

@media (max-width: 768px) {
	.event-header {
		flex-direction: column;
	}
	
	.event-image {
		margin-right: 0 !important;
		margin-bottom: 1rem;
		align-self: center;
	}
	
	.slots-container {
		grid-template-columns: 1fr;
	}
}

/* Loading states */
.signup-btn .fa-spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Success state */
.btn-success {
	background-color: #28a745;
	border-color: #28a745;
}

.btn-success:hover {
	background-color: #218838;
	border-color: #1e7e34;
}