/* ============================================================ Pickleball Court Booking - Frontend Styles ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
.pcb-app {
	--pcb-green: #7EC93A;
	--pcb-black: #1a1a1a;
	--pcb-mid: #555;
	--pcb-light: #f5f5f5;
	--pcb-border: #e5e5e5;
	--pcb-white: #fff;
	--pcb-booked: #7EC93A;
	--pcb-selected: #1a1a1a;
	--pcb-unavail: #d9d9d9;
	--pcb-radius: 10px;
	--pcb-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	--pcb-sidebar-w: 480px;
	font-family: 'DM Sans', -apple-system, sans-serif;
	color: var(--pcb-black);
	background: var(--pcb-light);
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.pcb-app a {
	cursor: pointer;
	color: var(--pcb-green);
	text-decoration: none;
}

.pcb-app a:hover {
	text-decoration: underline;
}

.pcb-app h2 {
	font-family: 'Syne', sans-serif;
}

.pcb-app h3 {
	font-family: 'Syne', sans-serif;
	font-size: 15px;
	margin-bottom: 12px;
}

/* ── Header ────────────────────────────────────────────────── */
.pcb-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0 10px;
	border-bottom: 1px solid var(--pcb-border);
	margin-bottom: 18px;
}

.pcb-date-display {
	font-size: 12px;
	color: var(--pcb-mid);
}

.pcb-user-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pcb-user-info .name {
	font-weight: 600;
	font-size: 13px;
}

/* ── Layout ────────────────────────────────────────────────── */
.pcb-layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.pcb-sidebar {
	flex: 0 0 var(--pcb-sidebar-w) !important;
	width: var(--pcb-sidebar-w) !important;
	min-width: var(--pcb-sidebar-w) !important;
	max-width: var(--pcb-sidebar-w) !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: sticky;
	top: 20px;
}

/* ── Calendar ──────────────────────────────────────────────── */
.pcb-calendar-widget {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	padding: 12px;
	box-shadow: var(--pcb-shadow);
}

.pcb-cal-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	margin-left: 10px;
	margin-right: 10px;
}

.pcb-cal-nav button {
	background: none;
	border: none;
	font-size: 17px;
	cursor: pointer;
	color: var(--pcb-mid);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
}

.pcb-cal-nav button:hover {
	background: var(--pcb-light);
	color: var(--pcb-black);
}

#pcb-month-label {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 13px;
}

.pcb-cal-days-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 9px;
	font-weight: 700;
	color: var(--pcb-mid);
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 4px;
}

.pcb-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
    font-size: 12px;   /* adjust size here */
    
    max-width: 28px;
    margin: 0 70 0 0;

}

.pcb-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.15s;
	border: none;
	background: none;
}

.pcb-cal-day:hover:not(.empty):not(.past) {
	background: var(--pcb-light);
}

.pcb-cal-day.today {
	font-weight: 700;
	color: var(--pcb-green);
}

.pcb-cal-day.selected {
	background: var(--pcb-black);
	color: var(--pcb-white);
	font-weight: 700;
}

.pcb-cal-day.past,
.pcb-cal-day.empty {
	color: #ccc;
	cursor: default;
}

/* ── Summary Box ───────────────────────────────────────────── */
.pcb-summary-box {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	padding: 12px;
	box-shadow: var(--pcb-shadow);
}

.pcb-summary-item {
	padding: 8px 0;
	border-bottom: 1px solid var(--pcb-border);
	font-size: 12px;
}

.pcb-summary-item:last-of-type {
	border-bottom: none;
}

.pcb-summary-item .court {
	font-weight: 600;
	margin-bottom: 2px;
}

.pcb-summary-item .date,
.pcb-summary-item .time {
	color: var(--pcb-mid);
	font-size: 11px;
}

.pcb-summary-item .amount {
	font-weight: 700;
	color: var(--pcb-green);
	float: right;
}

.pcb-summary-item .remove {
	float: right;
	margin-left: 5px;
	color: #ccc;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	border: none;
	background: none;
}

.pcb-summary-item .remove:hover {
	color: #e44;
}

.pcb-summary-total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 0 8px;
	font-family: 'Syne', sans-serif;
}

/* ── Payment Widget ────────────────────────────────────────── */
.pcb-payment-widget {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	padding: 12px;
	box-shadow: var(--pcb-shadow);
	border-top: 3px solid var(--pcb-green);
}

.pcb-payment-widget h3 {
	font-size: 13px;
	margin-bottom: 10px;
}

.pcb-pay-section {
	text-align: center;
	padding: 4px 0;
}

.pcb-pay-section-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .7px;
	color: var(--pcb-mid);
	margin-bottom: 8px;
}

.pcb-qr-image {
	display: block;
	width: 100%;
	max-width: 120px;
	margin: 0 auto 6px;
	border-radius: 6px;
	border: 1px solid var(--pcb-border);
}

.pcb-gcash-num {
	font-size: 14px;
	font-weight: 800;
	font-family: 'Syne', sans-serif;
	color: var(--pcb-green);
	letter-spacing: .5px;
	margin-bottom: 2px;
}

.pcb-gcash-acct {
	font-size: 11px;
	color: var(--pcb-mid);
	font-weight: 600;
}

.pcb-pay-divider {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #bbb;
	margin: 10px 0;
	position: relative;
}

.pcb-pay-divider::before,
.pcb-pay-divider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 38%;
	height: 1px;
	background: var(--pcb-border);
}

.pcb-pay-divider::before {
	left: 0;
}

.pcb-pay-divider::after {
	right: 0;
}

.pcb-bank-details {
	font-size: 11px;
	line-height: 1.8;
	color: var(--pcb-black);
	background: var(--pcb-light);
	border-radius: 6px;
	padding: 8px 10px;
	text-align: left;
}

.pcb-pay-note {
	font-size: 10px;
	color: var(--pcb-mid);
	text-align: center;
	margin-top: 10px;
	line-height: 1.5;
	padding-top: 8px;
	border-top: 1px solid var(--pcb-border);
}

/* ── Main Area ─────────────────────────────────────────────── */
.pcb-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pcb-timetable-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.pcb-timetable-header h2 {
	font-size: 18px;
	font-weight: 700;
}

.pcb-legend {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 11px;
	color: var(--pcb-mid);
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.legend-dot {
	width: 13px;
	height: 13px;
	border-radius: 3px;
	display: inline-block;
}

.legend-dot.booked {
	background: var(--pcb-booked);
}

.legend-dot.selected {
	background: var(--pcb-selected);
}

.legend-dot.unavailable {
	background: var(--pcb-unavail);
}

/* ── Timetable ─────────────────────────────────────────────── */
.pcb-timetable-wrapper {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	box-shadow: var(--pcb-shadow);
	overflow: hidden;
}

.pcb-timetable-scroll {
	overflow-x: auto;
}

.pcb-timetable-scroll table {
	width: 100%;
	border-collapse: collapse;
	min-width: 800px;
}

.pcb-timetable-scroll thead tr {
	background: var(--pcb-black);
	color: var(--pcb-white);
}

.pcb-timetable-scroll thead th {
	padding: 10px 6px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.pcb-timetable-scroll thead th:first-child {
	text-align: left;
	padding-left: 16px;
	width: 110px;
}

.pcb-timetable-scroll tbody td {
	border: 1px solid var(--pcb-border);
	height: 44px;
	padding: 0;
}

.pcb-timetable-scroll tbody td:first-child {
	font-weight: 600;
	font-size: 13px;
	padding: 0 12px;
	white-space: nowrap;
	background: var(--pcb-white);
	position: sticky;
	left: 0;
	z-index: 1;
	border-right: 2px solid var(--pcb-border);
}

.pcb-slot {
	width: 100%;
	height: 100%;
	cursor: pointer;
	background: var(--pcb-white);
	transition: background 0.1s;
	border: none;
}

.pcb-slot:hover {
	background: #f0f9e8;
}

.pcb-slot.booked {
	background: var(--pcb-booked);
	cursor: not-allowed;
}

.pcb-slot.selected {
	background: var(--pcb-selected);
}

.pcb-slot.unavailable {
	background: var(--pcb-unavail);
	cursor: not-allowed;
}

.pcb-slot.past {
	background: #ececec;
	cursor: not-allowed;
}

.pcb-loading {
	padding: 40px;
	text-align: center;
	color: var(--pcb-mid);
}

/* ── Buttons ───────────────────────────────────────────────── */
.pcb-btn-primary {
	display: block;
	width: 100%;
	padding: 11px 18px;
	background: var(--pcb-black);
	color: var(--pcb-white);
	border: none;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	transition: all 0.2s;
	letter-spacing: .3px;
}

.pcb-btn-primary:hover {
	background: #333;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.pcb-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.pcb-btn-secondary {
	display: block;
	width: 100%;
	padding: 9px 18px;
	background: transparent;
	color: var(--pcb-mid);
	border: 1px solid var(--pcb-border);
	border-radius: 30px;
	font-size: 13px;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	transition: all 0.2s;
	margin-top: 10px;
}

.pcb-btn-secondary:hover {
	background: var(--pcb-light);
	color: var(--pcb-black);
}

.pcb-btn-outline {
	padding: 7px 16px;
	background: transparent;
	border: 1.5px solid var(--pcb-black);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	font-family: 'DM Sans', sans-serif;
}

.pcb-btn-outline:hover {
	background: var(--pcb-black);
	color: var(--pcb-white);
}

/* ── Modals ────────────────────────────────────────────────── */
.pcb-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(4px);
}

.pcb-modal-overlay {
	position: absolute;
	inset: 0;
	background: transparent;
	cursor: pointer;
	z-index: 0;
}

.pcb-modal-box {
	position: relative;
	z-index: 1;
	background: var(--pcb-white);
	border-radius: 16px;
	padding: 34px 30px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	animation: modalIn 0.25s ease;
}

.pcb-upload-modal-wrap {
	background: rgba(0, 0, 0, .60);
	backdrop-filter: blur(4px);
}

.pcb-upload-modal-wrap .pcb-modal-box {
	position: relative;
	z-index: 10;
	pointer-events: all;
}

.pcb-upload-box {
	max-width: 460px;
}

@keyframes modalIn {
	from {
		transform: translateY(20px) scale(.97);
		opacity: 0;
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.pcb-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 17px;
	cursor: pointer;
	color: var(--pcb-mid);
	padding: 4px 6px;
	border-radius: 50%;
	transition: all 0.15s;
	line-height: 1;
}

.pcb-modal-close:hover {
	background: var(--pcb-light);
	color: var(--pcb-black);
}

.pcb-modal-logo {
	font-size: 38px;
	text-align: center;
	margin-bottom: 10px;
}

.pcb-modal-box h2 {
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 4px;
}

.pcb-modal-sub {
	text-align: center;
	color: var(--pcb-mid);
	font-size: 13px;
	margin-bottom: 22px;
}

.pcb-tab-content {
	display: none;
}

.pcb-tab-content.active {
	display: block;
}

.pcb-field-group {
	margin-bottom: 13px;
}

.pcb-field-group label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .7px;
	color: var(--pcb-mid);
	margin-bottom: 4px;
}

.pcb-field-group input {
	width: 100%;
	padding: 9px 13px;
	border: 1.5px solid var(--pcb-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: 'DM Sans', sans-serif;
	transition: border-color 0.15s;
	background: var(--pcb-light);
}

.pcb-field-group input:focus {
	outline: none;
	border-color: var(--pcb-black);
	background: var(--pcb-white);
}

.pcb-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.pcb-remember {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--pcb-mid);
	margin-bottom: 13px;
	cursor: pointer;
}

.pcb-error {
	background: #ffeaea;
	color: #c00;
	padding: 9px 13px;
	border-radius: 7px;
	font-size: 12px;
	margin-bottom: 13px;
	display: none;
}

.pcb-switch-auth {
	text-align: center;
	font-size: 12px;
	color: var(--pcb-mid);
	margin-top: 16px;
}

/* ── Upload Modal Contents ─────────────────────────────────── */
.pcb-booking-summary {
	background: var(--pcb-light);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 14px;
	font-size: 13px;
}

.pcb-booking-summary .summary-row {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}

.pcb-booking-summary .summary-total {
	border-top: 1px solid var(--pcb-border);
	margin-top: 5px;
	padding-top: 5px;
	font-weight: 700;
}

.pcb-upload-area {
	border: 2px dashed var(--pcb-border);
	border-radius: 10px;
	padding: 26px 18px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 12px;
}

.pcb-upload-area:hover,
.pcb-upload-area.drag-over {
	border-color: var(--pcb-green);
	background: #f0f9e8;
}

.pcb-upload-icon {
	font-size: 28px;
	margin-bottom: 7px;
}

.pcb-upload-area p {
	font-size: 13px;
	color: var(--pcb-mid);
}

.pcb-upload-hint {
	font-size: 11px !important;
	margin-top: 3px !important;
}

.pcb-upload-label {
	color: var(--pcb-green);
	font-weight: 600;
	cursor: pointer;
}

.pcb-upload-label:hover {
	text-decoration: underline;
}

.pcb-upload-progress {
	margin-bottom: 10px;
}

.pcb-progress-bar {
	height: 5px;
	background: var(--pcb-border);
	border-radius: 10px;
	margin-bottom: 5px;
	overflow: hidden;
}

.pcb-progress-fill {
	height: 100%;
	background: var(--pcb-green);
	border-radius: 10px;
	animation: progressAnim 1.5s infinite;
}

@keyframes progressAnim {
	0% {
		width: 10%;
	}

	50% {
		width: 80%;
	}

	100% {
		width: 95%;
	}
}

.pcb-success-icon {
	font-size: 44px;
	text-align: center;
	margin: 18px 0 10px;
}

#pcb-upload-success p {
	text-align: center;
	color: var(--pcb-mid);
	font-size: 13px;
}

/* ── My Bookings ───────────────────────────────────────────── */
.pcb-my-bookings {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	padding: 18px;
	box-shadow: var(--pcb-shadow);
}

.pcb-booking-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid var(--pcb-border);
	font-size: 13px;
	gap: 10px;
	flex-wrap: wrap;
}

.pcb-booking-card:last-child {
	border-bottom: none;
}

.pcb-booking-info .court {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 2px;
}

.pcb-booking-info .datetime {
	color: var(--pcb-mid);
	font-size: 12px;
}

.pcb-booking-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pcb-booking-amount {
	font-weight: 700;
	font-size: 14px;
	font-family: 'Syne', sans-serif;
}

.pcb-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.pcb-badge-pending {
	background: #fef3c7;
	color: #92400e;
}

.pcb-badge-approved {
	background: #d1fae5;
	color: #065f46;
}

.pcb-badge-cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.pcb-upload-proof-btn {
	font-size: 11px;
	padding: 3px 9px;
	background: var(--pcb-green);
	color: var(--pcb-white);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap;
}

/* ── Cancellation Policy ───────────────────────────────────── */
.pcb-policy {
	background: var(--pcb-white);
	border-radius: var(--pcb-radius);
	padding: 22px;
	box-shadow: var(--pcb-shadow);
	font-size: 13px;
	line-height: 1.7;
	color: var(--pcb-mid);
}

.pcb-policy h3 {
	color: var(--pcb-black);
	margin-bottom: 10px;
}

.pcb-policy p {
	margin-bottom: 10px;
}

.pcb-policy strong {
	color: var(--pcb-black);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
	.pcb-layout {
		flex-direction: column;
	}

	.pcb-sidebar {
		position: static !important;
		flex: none !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.pcb-timetable-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.pcb-row-2 {
		grid-template-columns: 1fr;
	}

	.pcb-modal-box {
		padding: 22px 18px;
	}

	.pcb-qr-image {
		max-width: 160px;
	}
}

/* ── Toast ─────────────────────────────────────────────────── */
.pcb-toast {
	position: fixed;
	bottom: 28px;
	right: 18px;
	background: var(--pcb-black);
	color: var(--pcb-white);
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 13px;
	z-index: 99999;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
	animation: toastIn 0.3s ease;
	max-width: 300px;
}

.pcb-toast.success {
	border-left: 4px solid var(--pcb-green);
}

.pcb-toast.error {
	border-left: 4px solid #ef4444;
}

@keyframes toastIn {
	from {
		transform: translateX(30px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}