/* ==========================================================================
   Gestor de Workshops Presenciais — Estilos Front-End & Painel do Professor
   ========================================================================== */

/* 1. Vitrine /category/workshops/ — Imagem Preto e Branco e Etiquetas Automáticas */
.ws-thumb-wrapper {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.ws-thumb-wrapper img {
	display: block;
	width: 100%;
	height: auto;
	transition: filter 0.35s ease, transform 0.35s ease;
}

/* Quando a data já passou ("Workshop Realizado") -> Imagem em Preto e Branco! */
.ws-status-realizado img,
.ws-thumb-realizado img {
	filter: grayscale(100%) contrast(0.95);
	opacity: 0.88;
}

.ws-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

.ws-card-badge-realizado {
	background-color: rgba(35, 35, 35, 0.92);
	color: #ffffff;
}

.ws-card-badge-esgotado {
	background-color: #c62828;
	color: #ffffff;
}

.ws-card-badge-disponivel {
	background-color: rgba(255, 255, 255, 0.95);
	color: #2c2c2c;
}

/* Badges inline no título [ws_titulo] */
.ws-inline-badge {
	display: inline-block;
	vertical-align: middle;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	margin-left: 8px;
}

.ws-inline-badge-realizado {
	background-color: #424242;
	color: #ffffff;
}

.ws-inline-badge-esgotado {
	background-color: #c62828;
	color: #ffffff;
}

/* 2. Layout Padrão Automático da Página Individual do Workshop */
.ws-default-single-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 36px;
	align-items: start;
	margin: 24px 0;
}

@media (max-width: 960px) {
	.ws-default-single-layout {
		grid-template-columns: 1fr;
	}
}

/* 3. Shortcodes de Detalhes, Preço e Datas */
.ws-sc-detalhes-box {
	background-color: #faf8f5;
	border: 1px solid #ebe5dc;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}

.ws-sc-detalhes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.ws-detalhe-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #7a6f64;
	margin-bottom: 4px;
}

.ws-detalhe-value {
	font-size: 16px;
	color: #2c2520;
}

.ws-sc-preco-valor {
	font-size: 22px;
	font-weight: 700;
	color: #3d352e;
}

.ws-sc-preco-por-dia {
	font-size: 13px;
	color: #6d6359;
}

.ws-sc-desconto-pill {
	display: inline-block;
	margin-top: 6px;
	background-color: #eef6f0;
	color: #1e5622;
	border: 1px solid #c5e1c9;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.ws-sc-datas-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0;
}

.ws-sc-data-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #e6e2dc;
	border-radius: 8px;
}

.ws-sc-data-item.is-esgotada {
	background: #f7f7f7;
	opacity: 0.7;
}

.ws-sc-data-time {
	margin-left: 10px;
	font-size: 13px;
	color: #666;
}

.ws-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.ws-pill-disponivel {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.ws-pill-esgotado {
	background-color: #ffebee;
	color: #c62828;
}

/* 4. Card de Inscrição e Lista de Interesse [ws_formulario] */
.ws-form-card {
	background: #ffffff;
	border: 1px solid #e5dfd5;
	border-radius: 14px;
	padding: 26px;
	box-shadow: 0 8px 24px rgba(44, 37, 32, 0.06);
}

.ws-form-badge-top {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 10px;
}

.ws-form-badge-top.is-realizado {
	background: #424242;
	color: #ffffff;
}

.ws-form-badge-top.is-esgotado {
	background: #c62828;
	color: #ffffff;
}

.ws-form-title {
	margin: 0 0 8px 0;
	font-size: 21px;
	color: #2c2520;
}

.ws-form-subtitle {
	margin: 0 0 20px 0;
	font-size: 14px;
	line-height: 1.55;
	color: #5f564e;
}

.ws-dates-selection-box {
	margin-bottom: 18px;
}

.ws-dates-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.ws-section-label {
	font-size: 14px;
	font-weight: 600;
	color: #2c2520;
}

.ws-select-all-days-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: #8c6239;
	cursor: pointer;
	text-decoration: underline;
}

.ws-discount-banner {
	background-color: #fdf8ee;
	border: 1px dashed #d9b26f;
	color: #6e4e16;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 10px;
}

.ws-checkbox-dates-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ws-date-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #dfd9ce;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
	background: #fdfcfa;
}

.ws-date-option:hover:not(.is-disabled) {
	border-color: #8c6239;
	background: #faf6f0;
}

.ws-date-option.is-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #f5f5f5;
}

.ws-date-option-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.ws-date-option-info small {
	font-size: 12px;
	color: #6d6359;
}

.ws-single-date-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: #faf8f5;
	border: 1px solid #e6dfd5;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 14px;
}

.ws-single-date-label {
	display: block;
	font-size: 12px;
	color: #776d63;
}

.ws-input-group {
	margin-bottom: 14px;
}

.ws-input-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #362f29;
	margin-bottom: 5px;
}

.ws-input-group input[type="text"],
.ws-input-group input[type="email"],
.ws-input-group input[type="tel"],
.ws-input-group input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid #d5cec3;
	border-radius: 8px;
	font-size: 15px;
	background: #ffffff;
	color: #2c2520;
}

.ws-input-group input:focus {
	outline: none;
	border-color: #3d352e;
	box-shadow: 0 0 0 2px rgba(61, 53, 46, 0.12);
}

.ws-price-summary-box {
	background-color: #faf8f5;
	border: 1px solid #e8e1d7;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 18px 0;
}

.ws-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	margin-bottom: 6px;
	color: #4f463e;
}

.ws-price-row:last-child {
	margin-bottom: 0;
}

.ws-discount-row {
	color: #2e7d32;
	font-weight: 600;
}

.ws-total-row {
	font-size: 16px;
	color: #2c2520;
	padding-top: 6px;
	border-top: 1px dashed #ded6ca;
}

.ws-total-val {
	font-size: 20px;
	color: #3d352e;
}

.ws-submit-btn {
	width: 100%;
	padding: 14px 20px;
	background-color: #3d352e;
	color: #ffffff;
	border: none;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.ws-submit-btn:hover {
	background-color: #26201b;
}

.ws-submit-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ws-form-disclaimer {
	margin: 10px 0 0 0;
	font-size: 12px;
	color: #6d6359;
	text-align: center;
	line-height: 1.45;
}

.ws-form-feedback {
	margin-top: 12px;
	font-size: 14px;
	border-radius: 8px;
}

.ws-form-feedback.is-error {
	background-color: #ffebee;
	color: #b71c1c;
	padding: 10px 14px;
	border: 1px solid #ffcdd2;
}

.ws-form-feedback.is-success {
	background-color: #e8f5e9;
	color: #1b5e20;
	padding: 12px 14px;
	border: 1px solid #c8e6c9;
}

/* Ecrã de Sucesso pós-inscrição */
.ws-success-box {
	text-align: center;
	padding: 10px 4px;
}

.ws-success-icon {
	font-size: 40px;
	margin-bottom: 6px;
}

.ws-success-timer-alert {
	background-color: #fff8e6;
	border: 1px solid #f0d080;
	color: #664400;
	padding: 12px 14px;
	border-radius: 9px;
	text-align: left;
	font-size: 13px;
	margin: 16px 0;
}

.ws-success-timer-alert p {
	margin: 6px 0 0 0;
}

.ws-success-payment-box {
	background-color: #eef6f0;
	border: 1px solid #c5e1c9;
	color: #1e4620;
	padding: 16px;
	border-radius: 10px;
	text-align: left;
	font-size: 14px;
}

.ws-success-payment-box h5 {
	margin: 0 0 10px 0;
	font-size: 15px;
}

.ws-success-payment-box p {
	margin: 6px 0;
}

/* 5. Painel Externo Seguro do Professor (REST API) */
.ws-prof-standalone-body {
	margin: 0;
	padding: 0;
	background-color: #f4f2ee;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2c2520;
}

.ws-prof-container {
	max-width: 820px;
	margin: 0 auto;
	padding: 24px 16px 60px;
}

.ws-prof-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0dad0;
}

.ws-prof-eyebrow {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #7a6f64;
}

.ws-prof-title {
	margin: 4px 0 0 0;
	font-size: 24px;
	color: #2c2520;
}

.ws-prof-logout-btn,
.ws-prof-refresh-btn {
	background: #ffffff;
	border: 1px solid #d5cec3;
	padding: 8px 14px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #3d352e;
}

.ws-prof-login-card {
	max-width: 440px;
	margin: 30px auto;
	background: #ffffff;
	border: 1px solid #e3ddd3;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.ws-prof-login-card h2 {
	margin-top: 0;
	font-size: 20px;
}

.ws-prof-welcome-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #e3ddd3;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 18px;
}

.ws-prof-subnote {
	display: block;
	font-size: 12px;
	color: #6d6359;
	margin-top: 2px;
}

.ws-prof-list-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ws-prof-item-card {
	background: #ffffff;
	border: 1px solid #e3ddd3;
	border-radius: 12px;
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ws-prof-item-info {
	flex: 1;
	min-width: 240px;
}

.ws-prof-item-student {
	font-size: 17px;
	font-weight: 700;
	color: #2c2520;
	margin-bottom: 4px;
}

.ws-prof-item-ws {
	font-size: 14px;
	font-weight: 600;
	color: #5c4d3c;
	margin-bottom: 4px;
}

.ws-prof-item-dates {
	font-size: 13px;
	color: #4a423b;
	margin-bottom: 6px;
}

.ws-prof-item-contact {
	font-size: 13px;
	color: #6d6359;
}

.ws-prof-item-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.ws-prof-status-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.ws-prof-status-pill.status-confirmado {
	background: #e8f5e9;
	color: #1b5e20;
}

.ws-prof-status-pill.status-cancelado {
	background: #ffebee;
	color: #b71c1c;
}

.ws-prof-status-pill.status-reservado_3h {
	background: #fff8e1;
	color: #8a5a00;
}

.ws-prof-status-pill.status-reserva_expirada {
	background: #eeeeee;
	color: #555555;
}

.ws-prof-btn-group {
	display: flex;
	gap: 8px;
}

.ws-prof-btn {
	border: none;
	padding: 9px 16px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ws-prof-btn-accept {
	background-color: #2e7d32;
	color: #ffffff;
}

.ws-prof-btn-accept:hover {
	background-color: #1b5e20;
}

.ws-prof-btn-cancel {
	background-color: #f5f5f5;
	color: #b71c1c;
	border: 1px solid #e0e0e0;
}

.ws-prof-btn-cancel:hover {
	background-color: #ffebee;
}
