/* File: ./wp-content/plugins/wdm-workshop-customization/public/css/my-workshops.css */
.wdm-my-workshops {
	margin: 20px 0;
}

.wdm-my-workshops h2 {
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: 600;
}

/* HTML Tabs Styles */
.wdm-my-workshops .wdm-workshops-tabs {
	display: flex !important;
	margin-bottom: 0 !important;
	gap: 0 !important;
	border-bottom: 1px solid #c3c4c7 !important;
}

.wdm-my-workshops .wdm-tab-button {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid #c3c4c7 !important;
	border-left: 1px solid #c3c4c7 !important;
	border-right: 1px solid #c3c4c7 !important;
	padding: 12px 24px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #646970 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
	margin-bottom: -1px !important;
	margin-left: -1px !important;
	position: relative !important;
	z-index: 1 !important;
}

.wdm-my-workshops .wdm-tab-button:first-child {
	margin-left: 0 !important;
}

.wdm-my-workshops .wdm-tab-button:not(:last-child) {
	border-right: 1px solid #c3c4c7 !important;
}

.wdm-my-workshops .wdm-tab-button:hover {
	color: #126289 !important;
	background-color: transparent !important;
}

.wdm-my-workshops .wdm-tab-button.wdm-tab-active {
	color: #126289 !important;
	background-color: #fff !important;
	border-bottom: 1px solid #fff !important;
	z-index: 2 !important;
}

.wdm-my-workshops .wdm-tab-panel {
	display: none !important;
	border: 1px solid #c3c4c7 !important;
	border-top: none !important;
	padding: 20px !important;
	background-color: #fff !important;
	margin-top: 0 !important;
	margin-bottom: 20px !important;
	position: relative !important;
	z-index: 0 !important;
}

.wdm-my-workshops .wdm-tab-panel.wdm-tab-panel-active {
	display: block !important;
}

.wdm-workshop-message {
	padding: 10px 15px;
	margin-bottom: 20px;
	border-radius: 5px;
	font-weight: 500;
	display: none; /* Hidden by default, shown by JS */
}

.wdm-workshop-message--success {
	background-color: #d1fae5; /* Green-100 */
	color: #065f46; /* Green-800 */
	border: 1px solid #34d399; /* Green-400 */
}

.wdm-workshop-message--error {
	background-color: #fee2e2; /* Red-100 */
	color: #991b1b; /* Red-800 */
	border: 1px solid #f87171; /* Red-400 */
}

.wdm-workshop-message--info {
	background-color: #e0f2fe; /* Blue-100 */
	color: #0c4a6e; /* Blue-800 */
	border: 1px solid #60a5fa; /* Blue-400 */
}

/* Table Styles */
.wdm-workshops-table-wrapper {
	overflow-x: auto;
	margin-bottom: 0;
}

.wdm-workshops-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.wdm-workshops-table thead {
	background-color: #f6f7f7;
}

.wdm-workshops-table th {
	padding: 12px 15px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	border-bottom: 2px solid #c3c4c7;
}

.wdm-workshops-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #dcdcde;
	font-size: 14px;
	color: #2c3338;
	vertical-align: middle;
}

.wdm-workshops-table tbody tr:last-child td {
	border-bottom: none;
}

.wdm-workshops-table tbody tr:hover {
	background-color: #f6f7f7;
}

.wdm-workshops-table tbody tr.wdm-workshop-past {
	opacity: 0.75;
}

.wdm-workshops-table tbody tr.wdm-workshop-past:hover {
	opacity: 0.9;
}

.wdm-workshops-table .wdm-workshop-name {
	font-weight: 600;
	color: #1d2327;
}

.wdm-workshops-table .wdm-workshop-date {
	color: #646970;
}

.wdm-workshops-table .wdm-workshop-times,
.wdm-workshops-table .wdm-workshop-duration {
	color: #646970;
}

.wdm-workshops-table .wdm-workshop-actions {
	white-space: nowrap;
}

.wdm-workshops-table .wdm-no-workshops {
	text-align: center;
	padding: 30px 15px;
	color: #646970;
	font-style: italic;
}

.wdm-leave-workshop-button {
	background-color: #126289;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
}

.wdm-leave-workshop-button:hover:not(:disabled) {
	background-color: #0f4d6f;
	transform: translateY(-1px);
}

.wdm-leave-workshop-button:active:not(:disabled) {
	transform: translateY(0);
}

.wdm-leave-workshop-button:disabled {
	background-color: #9ca3af; /* Gray-400 */
	cursor: not-allowed;
	opacity: 0.6;
}

.wdm-workshop-closed {
	color: #6b7280; /* Gray-500 */
	font-size: 14px;
	font-style: italic;
}

/* Pagination Styles */
.wdm-workshops-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	padding: 15px 0 0 0;
}

.wdm-pagination-link {
	display: inline-block;
	padding: 8px 16px;
	background-color: #126289;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.wdm-pagination-link:hover {
	background-color: #0f4d6f;
	color: #fff;
	text-decoration: none;
}

.wdm-pagination-info {
	font-size: 14px;
	color: #646970;
	font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
	.wdm-workshops-table-wrapper {
		overflow-x: scroll;
	}

	.wdm-workshops-table {
		min-width: 600px;
	}

	.wdm-workshops-table th,
	.wdm-workshops-table td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.wdm-workshops-pagination {
		flex-direction: column;
		gap: 10px;
	}

	.wdm-pagination-link {
		width: 100%;
		text-align: center;
	}
}
