/* ==========================================================================
   SmartFarms Frontend Design System (Farmhouse Event Booking Glassmorphic CSS)
   ========================================================================== */

.sr-frontend-container {
	/* Curated Modern Variables */
	--sr-fe-primary: #00c3ff;
	--sr-fe-primary-rgb: 0, 195, 255;
	--sr-fe-secondary: #4c8cff;
	
	--sr-fe-bg-panel: rgba(22, 28, 45, 0.7);
	--sr-fe-bg-card: rgba(30, 41, 59, 0.5);
	--sr-fe-border: rgba(255, 255, 255, 0.08);
	--sr-fe-text: #f8fafc;
	--sr-fe-text-muted: #94a3b8;
	
	--sr-fe-success: #10b981;
	--sr-fe-danger: #ef4444;
	
	--sr-fe-radius-lg: 20px;
	--sr-fe-radius-md: 12px;
	--sr-fe-shadow: 0 20px 40px rgba(0,0,0,0.3);
	--sr-fe-font: 'Inter', -apple-system, sans-serif;

	font-family: var(--sr-fe-font);
	color: var(--sr-fe-text);
	background: radial-gradient(circle at top left, #0e1322, #070a13);
	padding: 40px 24px;
	border-radius: var(--sr-fe-radius-lg);
	box-shadow: var(--sr-fe-shadow);
	border: 1px solid var(--sr-fe-border);
	box-sizing: border-box;
	margin-bottom: 40px;
}

.sr-frontend-container * {
	box-sizing: border-box;
}

/* Hero Section */
.sr-hero-banner {
	text-align: center;
	padding: 40px 20px;
	margin-bottom: 40px;
	background: radial-gradient(circle at center, rgba(0, 195, 255, 0.08) 0%, transparent 70%);
}

.sr-hero-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--sr-fe-primary), var(--sr-fe-secondary));
	color: #000;
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 30px;
	margin-bottom: 15px;
	letter-spacing: 1.5px;
	box-shadow: 0 0 20px rgba(0, 195, 255, 0.35);
}

.sr-hero-title {
	font-family: 'Outfit', sans-serif !important;
	font-size: 38px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	margin: 0 0 10px 0 !important;
	letter-spacing: -1px;
	background: linear-gradient(to right, #fff 40%, var(--sr-fe-text-muted));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.sr-hero-subtitle {
	color: var(--sr-fe-text-muted);
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.5;
}

/* ==========================================================================
   Filter Bar & Search Panel
   ========================================================================== */

.sr-filter-bar {
	background: var(--sr-fe-bg-panel);
	backdrop-filter: blur(12px);
	border: 1px solid var(--sr-fe-border);
	border-radius: var(--sr-fe-radius-md);
	padding: 18px;
	margin-bottom: 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

@media (max-width: 820px) {
	.sr-filter-bar { flex-direction: column; align-items: stretch; }
}

.sr-search-input-group {
	position: relative;
	flex-grow: 1;
}
.sr-search-input-group svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sr-fe-text-muted);
}
.sr-search-input-group input {
	width: 100%;
	background: var(--sr-fe-bg-card);
	border: 1px solid var(--sr-fe-border);
	color: #fff;
	padding: 12px 16px 12px 46px;
	border-radius: 10px;
	font-size: 14px;
	outline: none;
}
.sr-search-input-group input:focus {
	border-color: var(--sr-fe-primary);
	box-shadow: 0 0 15px rgba(0, 195, 255, 0.2);
}

.sr-filter-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

@media (max-width: 680px) {
	.sr-filter-actions { flex-direction: column; align-items: stretch; }
}

.sr-select-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sr-select-wrapper select {
	background: var(--sr-fe-bg-card);
	border: 1px solid var(--sr-fe-border);
	color: #fff;
	padding: 10px 30px 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	cursor: pointer;
	outline: none;
	appearance: none;
}
.sr-select-wrapper::after {
	content: '\25BC';
	font-size: 7px;
	position: absolute;
	right: 12px;
	bottom: 14px;
	color: var(--sr-fe-text-muted);
	pointer-events: none;
}

.sr-price-slider-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
}

.sr-slider-label {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--sr-fe-text-muted);
	letter-spacing: 0.5px;
}
.sr-slider-label strong { color: var(--sr-fe-primary); }

.sr-price-slider-group input[type="range"] {
	appearance: none;
	width: 100%;
	height: 4px;
	background: var(--sr-fe-border);
	outline: none;
}
.sr-price-slider-group input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sr-fe-primary);
	cursor: pointer;
	box-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
}

/* ==========================================================================
   Farmhouse Cards Loop Grid
   ========================================================================== */

.sr-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.sr-product-card {
	background: var(--sr-fe-bg-card);
	border: 1px solid var(--sr-fe-border);
	border-radius: var(--sr-fe-radius-md);
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	backdrop-filter: blur(8px);
}

.sr-product-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 195, 255, 0.3);
	box-shadow: 0 15px 35px rgba(0, 195, 255, 0.1);
}

.sr-prod-img-wrap {
	height: 200px;
	width: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
}

.sr-prod-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	color: var(--sr-fe-primary);
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid rgba(0, 195, 255, 0.3);
}

.sr-prod-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sr-prod-body h3 {
	margin: 0 0 8px 0 !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	color: #fff;
	line-height: 1.3;
}

.sr-prod-body p {
	margin: 0 0 20px 0;
	color: var(--sr-fe-text-muted);
	font-size: 13px;
	line-height: 1.5;
}

.sr-specs-preview-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.sr-spec-pill { background: rgba(255,255,255,0.04); border: 1px solid var(--sr-fe-border); padding: 4px 10px; border-radius: 6px; font-size: 11px; color: var(--sr-fe-text-muted); }

.sr-prod-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--sr-fe-border);
}

.sr-prod-card-price {
	font-weight: 850;
	color: var(--sr-fe-primary);
	font-size: 19px;
}
.sr-prod-card-price span {
	font-size: 11px;
	color: var(--sr-fe-text-muted);
	font-weight: 500;
}

/* Spinner */
.sr-loader-spinner { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.sr-spinner-ring { display: inline-block; width: 38px; height: 38px; border: 3px solid rgba(255,255,255,0.06); border-radius: 50%; border-top-color: var(--sr-fe-primary); animation: sr-spin 1s linear infinite; margin-bottom: 12px; }
@keyframes sr-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Checkout Drawers Overlays (Client Detail Drawers)
   ========================================================================== */

.sr-drawer-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: rgba(0,0,0,0.8);
	backdrop-filter: blur(8px);
	z-index: 99999;
	display: none;
}

.sr-booking-drawer {
	position: fixed;
	top: 0; right: -510px;
	width: 500px;
	height: 100vh;
	background: #0f1524;
	border-left: 1px solid var(--sr-fe-border);
	box-shadow: -15px 0 50px rgba(0,0,0,0.7);
	z-index: 100000;
	padding: 35px;
	overflow-y: auto;
	transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 520px) {
	.sr-booking-drawer { width: 100%; right: -100%; }
}

.sr-booking-drawer.open { right: 0; }
.sr-drawer-inner-header { margin-bottom: 25px; }
.sr-drawer-inner-header h2 { font-size: 22px !important; font-weight: 800 !important; color: #fff; margin: 0 0 5px 0 !important; }
.sr-drawer-inner-header p { color: var(--sr-fe-text-muted); font-size: 13px; margin: 0; }

.sr-drawer-hero-img { height: 180px; width: 100%; border-radius: var(--sr-fe-radius-md); background-size: cover; background-position: center; margin-bottom: 25px; border: 1px solid var(--sr-fe-border); }

.sr-specs-table { width: 100%; margin-bottom: 25px; font-size: 13px; border-collapse: collapse; }
.sr-specs-table td { padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sr-specs-table td:first-child { color: var(--sr-fe-text-muted); font-weight: 600; width: 40%; }

.sr-dates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }

/* Pricing Table breakdown */
.sr-breakdown-card { background: rgba(255,255,255,0.02); border: 1px solid var(--sr-fe-border); border-radius: var(--sr-fe-radius-md); padding: 16px; margin-bottom: 25px; }
.sr-breakdown-card h4 { margin: 0 0 12px 0; font-size: 13px; text-transform: uppercase; color: var(--sr-fe-text-muted); }
.sr-breakdown-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.sr-breakdown-table td { padding: 6px 0; color: var(--sr-fe-text-muted); }
.sr-breakdown-table td:last-child { text-align: right; color: #fff; font-weight: 600; }
.sr-breakdown-table tr.total-row td { border-top: 1px solid var(--sr-fe-border); padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--sr-fe-primary); }
.sr-breakdown-table tr.deposit-row td { font-size: 11.5px; font-style: italic; padding-top: 4px; }

/* Payment check cards */
.sr-pay-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.sr-pay-card { background: var(--sr-fe-bg-card); border: 1px solid var(--sr-fe-border); border-radius: var(--sr-fe-radius-md); padding: 14px; text-align: center; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sr-pay-card span { font-size: 12.5px; font-weight: 600; }
.sr-pay-card.active { background-color: rgba(0, 195, 255, 0.05); border-color: var(--sr-fe-primary); box-shadow: 0 0 15px rgba(0, 195, 255, 0.15); }

/* ==========================================================================
   Customer Dashboard
   ========================================================================== */

.sr-dashboard-container { background: radial-gradient(circle at bottom right, #111827, #060913); }
.sr-auth-gate-card { max-width: 460px; margin: 0 auto; background: var(--sr-fe-bg-panel); border: 1px solid var(--sr-fe-border); border-radius: var(--sr-fe-radius-md); padding: 30px; text-align: center; }
.sr-auth-gate-card h2 { margin: 0 0 8px 0 !important; font-size: 20px !important; color: #fff; }
.sr-auth-gate-card p { font-size: 13.5px; color: var(--sr-fe-text-muted); margin-bottom: 25px; }
.sr-auth-form-group { display: flex; flex-direction: column; gap: 12px; }
.sr-auth-form-group input { background: var(--sr-fe-bg-card); border: 1px solid var(--sr-fe-border); color: #fff; padding: 12px; border-radius: 8px; outline: none; text-align: center; }
.sr-auth-error-msg { margin-top: 10px; color: var(--sr-fe-danger); font-size: 12.5px; }

.sr-ledger-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--sr-fe-border); }
.sr-ledger-header h3 { margin: 0 !important; color: #fff; font-size: 20px !important; }
.sr-ledger-header p { margin: 5px 0 0 0; color: var(--sr-fe-text-muted); font-size: 13px; }

.sr-bookings-ledger-list { display: flex; flex-direction: column; gap: 20px; }
.sr-ledger-card { background: var(--sr-fe-bg-card); border: 1px solid var(--sr-fe-border); border-radius: var(--sr-fe-radius-md); padding: 20px; display: grid; grid-template-columns: 100px 1fr 180px; gap: 20px; align-items: center; }

@media (max-width: 680px) {
	.sr-ledger-card { grid-template-columns: 1fr; text-align: center; }
	.sr-ledger-card-img { margin: 0 auto; }
}

.sr-ledger-card-img { height: 70px; width: 100px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--sr-fe-border); }
.sr-ledger-card-info h4 { margin: 0 0 5px 0 !important; color: #fff; font-size: 16px !important; }
.sr-ledger-card-info p { margin: 0; font-size: 12.5px; color: var(--sr-fe-text-muted); }
.sr-ledger-card-billing { text-align: right; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 680px) {
	.sr-ledger-card-billing { text-align: center; align-items: center; }
}

.sr-ledger-card-billing .price { font-size: 18px; font-weight: 850; color: var(--sr-fe-primary); }

/* Documents modal dialog */
.sr-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sr-modal-container { background: #0f1524; border: 1px solid var(--sr-fe-border); border-radius: var(--sr-fe-radius-lg); width: 100%; max-width: 600px; box-shadow: var(--sr-fe-shadow); overflow: hidden; }
.sr-modal-header { padding: 20px 24px; border-bottom: 1px solid var(--sr-fe-border); display: flex; justify-content: space-between; align-items: center; }
.sr-modal-header h3 { margin: 0 !important; font-size: 18px !important; color: #fff; }
.sr-modal-close { background: transparent; border: none; font-size: 24px; color: var(--sr-fe-text-muted); cursor: pointer; }
.sr-modal-body { padding: 24px; max-height: 400px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: var(--sr-fe-text-muted); }
.sr-modal-body h4 { color: #fff; margin: 15px 0 5px 0; }

/* Helpers */
.sr-btn-outline { background: transparent; border: 1px solid var(--sr-fe-border); color: #fff; }
.sr-btn-outline:hover { background: rgba(255,255,255,0.03); }
.sr-drawer-close { position: absolute; top: 25px; right: 25px; background: transparent; border: none; font-size: 28px; color: var(--sr-fe-text-muted); cursor: pointer; }
.sr-hidden { display: none !important; }

/* ==========================================================================
   Frontend Renter Auth Gate, Dashboard Menu, and Tab Panel Styles
   ========================================================================== */

.sr-auth-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 25px;
	border-bottom: 1px solid var(--sr-fe-border);
	padding-bottom: 15px;
}

.sr-auth-tab-btn {
	background: transparent;
	border: none;
	color: var(--sr-fe-text-muted);
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border-radius: var(--sr-fe-radius-md);
	transition: all 0.3s;
	outline: none;
}

.sr-auth-tab-btn:hover {
	color: var(--sr-fe-text);
	background: rgba(255, 255, 255, 0.03);
}

.sr-auth-tab-btn.active {
	color: #000;
	background: linear-gradient(135deg, var(--sr-fe-primary), var(--sr-fe-secondary));
	box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.sr-auth-panel {
	display: none;
}

.sr-auth-panel.active {
	display: block;
	animation: sr-fe-fade-in 0.3s ease-out;
}

@keyframes sr-fe-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Renter Ledger Dash Navigation */
.sr-ledger-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	background: rgba(9, 13, 22, 0.5);
	padding: 8px;
	border-radius: var(--sr-fe-radius-md);
	border: 1px solid var(--sr-fe-border);
	align-items: center;
}

.sr-ledger-menu-btn {
	background: transparent;
	border: none;
	color: var(--sr-fe-text-muted);
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	outline: none;
}

.sr-ledger-menu-btn:hover {
	color: var(--sr-fe-text);
	background: rgba(255, 255, 255, 0.03);
}

.sr-ledger-menu-btn.active {
	color: #000;
	background: linear-gradient(135deg, var(--sr-fe-primary), var(--sr-fe-secondary));
	box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.sr-ledger-content-panel {
	display: none;
}

.sr-ledger-content-panel.active {
	display: block;
	animation: sr-fe-fade-in 0.3s ease-out;
}

/* Form layouts on frontend dashboard */
.sr-fe-input {
	background: var(--sr-fe-bg-card);
	border: 1px solid var(--sr-fe-border);
	color: #fff;
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 13.5px;
	outline: none;
	transition: all 0.3s;
}

.sr-fe-input:focus {
	border-color: var(--sr-fe-primary);
	box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.sr-profile-feedback-msg {
	margin-top: 15px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}
.sr-profile-feedback-msg.success {
	color: var(--sr-fe-success);
}
.sr-profile-feedback-msg.error {
	color: var(--sr-fe-danger);
}

