/**
 * Customer Area Stylesheet - Vendor Directory
 */

:root {
	--vd-cust-primary: #2563eb;
	--vd-cust-primary-hover: #1d4ed8;
	--vd-cust-success: #16a34a;
	--vd-cust-danger: #dc2626;
	--vd-cust-warning: #d97706;
	--vd-cust-gray-50: #f8fafc;
	--vd-cust-gray-100: #f1f5f9;
	--vd-cust-gray-200: #e2e8f0;
	--vd-cust-gray-300: #cbd5e1;
	--vd-cust-gray-600: #475569;
	--vd-cust-gray-700: #334155;
	--vd-cust-gray-900: #0f172a;
	--vd-cust-radius: 8px;
	--vd-cust-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	--vd-cust-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Alert Banners */
.vd-customer-alert,
.vd-customer-notice {
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: var(--vd-cust-radius);
	font-size: 14px;
	line-height: 1.5;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vd-customer-alert a {
	font-weight: 600;
	text-decoration: underline;
}
.vd-customer-alert ul {
	margin: 0;
	padding-left: 20px;
}
.vd-alert-warning {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}
.vd-alert-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}
.vd-alert-danger {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.vd-alert-info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}
.vd-customer-notice-close {
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	margin-left: 12px;
}
.vd-customer-notice-close:hover {
	opacity: 1;
}

/* Customer Registration Form */
.vd-customer-reg-wrapper {
	max-width: 480px;
	margin: 40px auto;
	padding: 0 16px;
}
.vd-customer-reg-card {
	background: #ffffff;
	border: 1px solid var(--vd-cust-gray-200);
	border-radius: var(--vd-cust-radius);
	box-shadow: var(--vd-cust-shadow-md);
	padding: 32px 28px;
}
.vd-customer-reg-header {
	text-align: center;
	margin-bottom: 24px;
}
.vd-customer-reg-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--vd-cust-gray-900);
	margin: 0 0 8px;
}
.vd-customer-reg-subtitle {
	font-size: 14px;
	color: var(--vd-cust-gray-600);
	margin: 0;
}
.vd-customer-reg-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	color: var(--vd-cust-gray-600);
}
.vd-customer-reg-footer a {
	color: var(--vd-cust-primary);
	font-weight: 600;
}

/* Customer Dashboard Container */
.vd-customer-container {
	max-width: 1000px;
	margin: 30px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: var(--vd-cust-gray-900);
}

/* Header Card */
.vd-cust-header {
	background: #ffffff;
	border: 1px solid var(--vd-cust-gray-200);
	border-radius: var(--vd-cust-radius);
	padding: 24px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: var(--vd-cust-shadow);
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}
.vd-cust-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}
.vd-cust-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--vd-cust-primary);
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vd-cust-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--vd-cust-gray-900);
}
.vd-cust-email {
	font-size: 14px;
	color: var(--vd-cust-gray-600);
	margin: 0;
}
.vd-cust-logout-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: var(--vd-cust-gray-100);
	color: var(--vd-cust-gray-700);
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid var(--vd-cust-gray-200);
	transition: all 0.15s ease;
}
.vd-cust-logout-btn:hover {
	background: #fee2e2;
	color: var(--vd-cust-danger);
	border-color: #fca5a5;
}

/* Tabs Navigation */
.vd-cust-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid var(--vd-cust-gray-200);
	margin-bottom: 24px;
	overflow-x: auto;
}
.vd-cust-tab-btn {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--vd-cust-gray-600);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -2px;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.vd-cust-tab-btn:hover {
	color: var(--vd-cust-primary);
}
.vd-cust-tab-active {
	color: var(--vd-cust-primary) !important;
	border-bottom-color: var(--vd-cust-primary) !important;
}
.vd-cust-badge-count {
	display: inline-block;
	background: var(--vd-cust-gray-200);
	color: var(--vd-cust-gray-700);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
}
.vd-cust-tab-active .vd-cust-badge-count {
	background: #dbeafe;
	color: var(--vd-cust-primary);
}

/* Panels */
.vd-cust-panel {
	display: none;
}
.vd-cust-panel-active {
	display: block;
}

/* Cards & Content */
.vd-cust-card {
	background: #ffffff;
	border: 1px solid var(--vd-cust-gray-200);
	border-radius: var(--vd-cust-radius);
	box-shadow: var(--vd-cust-shadow);
	padding: 28px;
}
.vd-cust-card-header {
	margin-bottom: 24px;
	border-bottom: 1px solid var(--vd-cust-gray-100);
	padding-bottom: 16px;
}
.vd-cust-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--vd-cust-gray-900);
}
.vd-cust-card-subtitle {
	font-size: 14px;
	color: var(--vd-cust-gray-600);
	margin: 0;
}

/* Empty State */
.vd-cust-empty-state {
	text-align: center;
	padding: 48px 24px;
}
.vd-cust-empty-icon {
	font-size: 40px;
	display: block;
	margin-bottom: 12px;
}
.vd-cust-empty-state h4 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}
.vd-cust-empty-state p {
	font-size: 14px;
	color: var(--vd-cust-gray-600);
	max-width: 440px;
	margin: 0 auto 20px;
}

/* Responsive Table */
.vd-cust-table-responsive {
	overflow-x: auto;
}
.vd-cust-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: left;
}
.vd-cust-table th {
	background: var(--vd-cust-gray-50);
	color: var(--vd-cust-gray-700);
	font-weight: 600;
	padding: 12px 16px;
	border-bottom: 2px solid var(--vd-cust-gray-200);
	white-space: nowrap;
}
.vd-cust-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--vd-cust-gray-200);
	vertical-align: middle;
}
.vd-cust-table tr:hover {
	background: #fdfdfd;
}
.vd-link-title {
	color: var(--vd-cust-gray-900);
	text-decoration: none;
}
.vd-link-title:hover {
	color: var(--vd-cust-primary);
	text-decoration: underline;
}
.vd-link-sub {
	color: var(--vd-cust-primary);
	text-decoration: none;
}
.vd-link-sub:hover {
	text-decoration: underline;
}
.vd-msg-snippet {
	max-width: 260px;
	color: var(--vd-cust-gray-600);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vd-table-date {
	white-space: nowrap;
	font-size: 13px;
	color: var(--vd-cust-gray-600);
}
.vd-badge {
	display: inline-block;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
	white-space: nowrap;
}
.vd-badge-success {
	background: #dcfce7;
	color: #166534;
}
.vd-badge-warning {
	background: #fef3c7;
	color: #92400e;
}

/* Saved Businesses Grid */
.vd-saved-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.vd-saved-card {
	background: #ffffff;
	border: 1px solid var(--vd-cust-gray-200);
	border-radius: var(--vd-cust-radius);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}
.vd-saved-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vd-cust-shadow-md);
}
.vd-saved-card-media {
	position: relative;
	height: 140px;
	background: var(--vd-cust-gray-100);
	overflow: hidden;
}
.vd-saved-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vd-saved-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	background: var(--vd-cust-gray-100);
}
.vd-saved-remove-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--vd-cust-gray-600);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}
.vd-saved-remove-btn:hover {
	background: #fee2e2;
	color: var(--vd-cust-danger);
}
.vd-saved-card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.vd-saved-cat {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--vd-cust-primary);
	margin-bottom: 4px;
}
.vd-saved-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
}
.vd-saved-name a {
	color: var(--vd-cust-gray-900);
	text-decoration: none;
}
.vd-saved-name a:hover {
	color: var(--vd-cust-primary);
}
.vd-saved-meta {
	font-size: 13px;
	color: var(--vd-cust-gray-600);
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.vd-saved-meta a {
	color: inherit;
	text-decoration: none;
}
.vd-saved-card-actions {
	margin-top: auto;
	padding-top: 12px;
}

/* Bookmark Button in Public Cards & Single Pages */
.vd-bookmark-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid var(--vd-cust-gray-300);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: var(--vd-cust-gray-700);
	transition: all 0.15s ease;
}
.vd-bookmark-btn:hover {
	border-color: #ef4444;
	color: #ef4444;
	background: #fff5f5;
}
.vd-bookmark-btn.vd-bookmarked {
	border-color: #ef4444;
	background: #fef2f2;
	color: #dc2626;
}

/* Form Styles */
.vd-form-group {
	margin-bottom: 18px;
}
.vd-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--vd-cust-gray-700);
	margin-bottom: 6px;
}
.vd-required {
	color: var(--vd-cust-danger);
}
.vd-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid var(--vd-cust-gray-300);
	border-radius: 6px;
	box-sizing: border-box;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vd-input:focus {
	outline: none;
	border-color: var(--vd-cust-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.vd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.15s ease;
}
.vd-btn-primary {
	background: var(--vd-cust-primary);
	color: #ffffff;
}
.vd-btn-primary:hover {
	background: var(--vd-cust-primary-hover);
	color: #ffffff;
}
.vd-btn-secondary {
	background: var(--vd-cust-gray-100);
	color: var(--vd-cust-gray-700);
	border-color: var(--vd-cust-gray-300);
}
.vd-btn-secondary:hover {
	background: var(--vd-cust-gray-200);
	color: var(--vd-cust-gray-900);
}
.vd-btn-danger {
	background: #dc2626;
	color: #ffffff;
}
.vd-btn-danger:hover {
	background: #b91c1c;
	color: #ffffff;
}
.vd-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
}
.vd-btn-block {
	width: 100%;
}

/* Password & Logout */
.vd-cust-divider {
	border: 0;
	border-top: 1px solid var(--vd-cust-gray-200);
	margin: 32px 0;
}
.vd-cust-logout-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--vd-cust-gray-50);
	padding: 20px 24px;
	border-radius: var(--vd-cust-radius);
	border: 1px solid var(--vd-cust-gray-200);
}
.vd-logout-info h4 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--vd-cust-gray-900);
}
.vd-logout-info p {
	font-size: 13px;
	color: var(--vd-cust-gray-600);
	margin: 0;
}

@media (max-width: 640px) {
	.vd-cust-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.vd-cust-logout-section {
		flex-direction: column;
		align-items: flex-start;
	}
	.vd-saved-grid {
		grid-template-columns: 1fr;
	}
}

