/* ============================================================
   Base
   ============================================================ */
.pdt-board,
.pdt-login-wrap,
.pdt-password-wrap {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #2d3748;
}

.pdt-board *,
.pdt-login-wrap *,
.pdt-password-wrap * {
	box-sizing: border-box;
}

/* ============================================================
   Top bar
   ============================================================ */
.pdt-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	flex-wrap: wrap;
	gap: 6px;
}

.pdt-top-bar__event {
	font-weight: 700;
	font-size: 1.05rem;
	color: #2d3748;
}

.pdt-top-bar__user {
	color: #4a5568;
}

.pdt-top-bar__user a {
	color: #e53e3e;
	text-decoration: none;
}

.pdt-top-bar__user a:hover {
	text-decoration: underline;
}

.pdt-empty {
	color: #718096;
	font-style: italic;
	padding: 20px 0;
}

/* ============================================================
   Zone accordion
   ============================================================ */
.pdt-zone {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
}

.pdt-zone__header {
	display: flex;
	align-items: center;
	padding: 14px 18px;
	background: #4a7c59;
	color: #fff;
	cursor: pointer;
	user-select: none;
	gap: 8px;
}

.pdt-zone__name {
	font-size: 1.05rem;
	font-weight: 700;
	flex: 1;
}

.pdt-zone__count {
	font-size: 0.85rem;
	opacity: 0.85;
	white-space: nowrap;
}

.pdt-zone__chevron {
	font-size: 0.8rem;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.pdt-zone--collapsed .pdt-zone__chevron {
	transform: rotate(-90deg);
}

.pdt-zone__body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
}

.pdt-zone--collapsed .pdt-zone__body {
	display: none;
}

/* ============================================================
   Task card
   ============================================================ */
.pdt-task {
	background: #f9fafb;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 14px;
}

.pdt-task__header {
	margin-bottom: 10px;
}

.pdt-task__name {
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 3px;
}

.pdt-task__remarks {
	font-size: 0.82rem;
	color: #718096;
	margin: 0;
	font-style: italic;
}

/* ============================================================
   Slots
   ============================================================ */
.pdt-task__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.pdt-slot {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 7px 12px;
	border-radius: 6px;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	min-width: 110px;
	line-height: 1.3;
	transition: filter 0.12s ease, transform 0.08s ease;
}

.pdt-slot:not([disabled]):active {
	transform: scale(0.96);
}

.pdt-slot[disabled] {
	cursor: default;
	opacity: 0.7;
}

.pdt-slot__time {
	font-weight: 700;
	font-size: 0.8rem;
}

.pdt-slot__badge {
	font-size: 0.75rem;
	margin-top: 2px;
}

.pdt-slot__assignee {
	font-size: 0.75rem;
	margin-top: 3px;
	font-style: italic;
	color: inherit;
	opacity: 0.85;
}

/* Free */
.pdt-board .pdt-slot--free {
	background: #c6f6d5 !important;
	color: #22543d !important;
	border-color: #9ae6b4 !important;
}
.pdt-board .pdt-slot--free:not([disabled]):hover {
	filter: brightness(0.92);
}

/* Mine */
.pdt-board .pdt-slot--mine {
	background: #bee3f8 !important;
	color: #1a365d !important;
	border-color: #90cdf4 !important;
}
.pdt-board .pdt-slot--mine:not([disabled]):hover {
	filter: brightness(0.93);
}

/* Taken by someone else */
.pdt-board .pdt-slot--taken {
	background: #fed7d7 !important;
	color: #63171b !important;
	border-color: #fc8181 !important;
}
.pdt-board .pdt-slot--taken:not([disabled]):hover {
	filter: brightness(0.94);
}

/* ============================================================
   Login & password change forms
   ============================================================ */
.pdt-login-wrap,
.pdt-password-wrap {
	display: flex;
	justify-content: center;
	padding: 30px 16px;
}

.pdt-login-form {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 28px 32px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.pdt-login-form h2 {
	margin-top: 0;
	margin-bottom: 22px;
	font-size: 1.4rem;
	text-align: center;
	color: #2d3748;
}

.pdt-form-group {
	margin-bottom: 16px;
}

.pdt-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	font-size: 0.9rem;
}

.pdt-hint {
	font-weight: 400;
	font-size: 0.8rem;
	color: #718096;
}

.pdt-form-group input[type="text"],
.pdt-form-group input[type="email"],
.pdt-form-group input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.15s;
}

.pdt-form-group input:focus {
	outline: none;
	border-color: #4a7c59;
	box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.2);
}

.pdt-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: #4a7c59;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	margin-top: 6px;
	transition: background 0.18s;
}

.pdt-btn:hover {
	background: #3d6649;
}

/* Confirm modal */
.pdt-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9999;
}

.pdt-confirm-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	max-width: 360px;
	width: calc(100% - 32px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.pdt-confirm-msg {
	margin: 0 0 16px;
	font-size: 1rem;
	color: #1a202c;
}

.pdt-confirm-warning {
	background: #fefcbf;
	color: #744210;
	border: 1px solid #f6e05e;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.88rem;
	margin: -4px 0 16px;
}

.pdt-confirm-btns {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.pdt-confirm-btns .pdt-btn {
	display: inline-block;
	width: auto;
	margin-top: 0;
	padding: 8px 18px;
}

.pdt-btn--ghost {
	background: transparent;
	color: #4a7c59;
	border: 1px solid #4a7c59;
	border-radius: 6px;
	padding: 8px 18px;
	font-size: 0.95rem;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s;
}

.pdt-btn--ghost:hover {
	background: #f0faf4;
}

/* Form footer (e.g. "Forgot password?" link below login form) */
.pdt-form-footer {
	margin-top: 14px;
	font-size: 0.88rem;
	text-align: center;
}

.pdt-form-footer a {
	color: #4a7c59;
	text-decoration: none;
}

.pdt-form-footer a:hover {
	text-decoration: underline;
}

/* Alerts */
.pdt-alert {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.9rem;
}

.pdt-alert--error {
	background: #fed7d7;
	color: #742a2a;
	border: 1px solid #fc8181;
}

.pdt-alert--success {
	background: #c6f6d5;
	color: #22543d;
	border: 1px solid #68d391;
}

/* ============================================================
   Responsive — mobile-first overrides
   ============================================================ */
@media (max-width: 600px) {
	.pdt-task__slots {
		flex-direction: column;
	}

	.pdt-slot {
		flex-direction: row;
		justify-content: space-between;
		min-width: auto;
		width: 100%;
		padding: 10px 14px;
	}

	.pdt-slot__badge {
		margin-top: 0;
	}

	.pdt-login-form {
		padding: 22px 20px;
	}
}

/* Desktop: expand all zones by default via JS */
@media (min-width: 769px) {
	.pdt-zone__body {
		display: flex; /* always visible on wide screens unless JS collapses them */
	}
}
