@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--bd-primary: #8e9100;
	--bd-primary-dark: #6a6c00;
	--bd-secondary: #64748b;
	--bd-success: #10b981;
	--bd-warning: #f59e0b;
	--bd-danger: #ef4444;
	--bd-bg: #f8fafc;
	--bd-surface: #ffffff;
	--bd-text: #1e293b;
	--bd-text-light: #64748b;
	--bd-border: #e2e8f0;
	--bd-radius: 20px;
	--bd-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--bd-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
	--bd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

	/* Font Families */
	--bd-font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--bd-font-head: 'Poppins', sans-serif;
}

.bd-dashboard-wrapper {
	display: grid;
	grid-template-columns: 310px 1fr;
	gap: 50px;
	max-width: 1600px;
	margin: 50px auto;
	font-family: var(--bd-font-body);
	background: var(--bd-bg);
	min-height: 95vh;
	overflow-x: hidden;
	padding: 0 20px;
}

/* Page Entry Animation */
.bd-animate-entry {
	animation: bdSlideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	opacity: 0;
}

@keyframes bdSlideUpFade {
	from {
		opacity: 0;
		transform: translateY(25px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Sidebar Styles - Pro V15 Structure */
.bd-sidebar {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 30px;
	padding: 45px 30px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.4);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 30px;
	height: calc(100vh - 60px);
	min-height: 750px;
	z-index: 10;
	overflow: hidden;
}

.bd-sidebar-header {
	text-align: center;
	margin-bottom: 45px;
}

.bd-avatar img {
	border-radius: 50%;
	border: 6px solid #fff;
	box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
	width: 90px;
	height: 90px;
	transition: var(--bd-transition);
}

.bd-avatar img:hover {
	transform: scale(1.08) translateY(-5px);
}

.bd-user-info h3 {
	margin: 20px 0 8px;
	font-size: 1.15rem;
	color: var(--bd-text);
	font-weight: 700;
	font-family: var(--bd-font-head);
	letter-spacing: -0.3px;
}

.bd-role-badge {
	background: linear-gradient(135deg, var(--bd-primary), var(--bd-primary-dark));
	color: #fff;
	padding: 6px 20px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	display: inline-block;
	box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.bd-nav-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	justify-content: flex-start;
	padding-top: 30px;
}

.bd-nav-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 22px;
	color: #475569;
	text-decoration: none !important;
	border-radius: 16px;
	transition: var(--bd-transition);
	font-weight: 600;
	border: 1px solid transparent;
	font-size: 1rem;
}

.bd-nav-item:hover {
	background: rgba(37, 99, 235, 0.06);
	color: var(--bd-primary);
	transform: translateX(10px);
}

.bd-nav-item.active {
	background: var(--bd-primary);
	color: #fff;
	box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.4);
	transform: translateX(15px);
}

.bd-nav-item.bd-logout {
	margin-top: auto;
	color: var(--bd-danger);
	background: #fff;
	border: 1px solid #fee2e2;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.bd-nav-item.bd-logout:hover {
	background: var(--bd-danger);
	color: #fff;
	border-color: var(--bd-danger);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.bd-sidebar-footer {
	margin-top: 30px;
	text-align: center;
	font-size: 0.8rem;
	color: #94a3b8;
	padding-top: 25px;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Content Header */
.bd-header-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--bd-text);
	margin-bottom: 35px;
	display: flex;
	align-items: center;
	gap: 20px;
	font-family: var(--bd-font-head);
	letter-spacing: -1px;
}

/* Stats Improvement - Pro High contrast */
.bd-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 50px;
}

.bd-stat-card {
	background: #fff;
	color: var(--bd-text);
	padding: 40px;
	border-radius: 28px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
	position: relative;
	overflow: hidden;
	transition: var(--bd-transition);
}

.bd-stat-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 8px;
	height: 100%;
	background: var(--bd-primary);
}

.bd-stat-card:nth-child(2)::after {
	background: var(--bd-success);
}

.bd-stat-card h4 {
	color: var(--bd-text-light);
	margin: 0 0 10px;
	font-size: 0.85rem;
	font-weight: 700;
	font-family: var(--bd-font-head);
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.bd-stat-number {
	font-size: 2.5rem;
	font-weight: 800;
	font-family: var(--bd-font-head);
	color: var(--bd-text);
	line-height: 1;
}

/* Card Polish */
.bd-card {
	background: #fff;
	border-radius: 28px;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
	border: 1px solid #f1f5f9;
	margin-bottom: 40px;
	transition: var(--bd-transition);
}

.bd-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--bd-shadow-lg);
}

.bd-card h4 {
	font-family: var(--bd-font-head);
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--bd-text);
}

/* Forms - Harmony V16 */
.bd-form-group {
	margin-bottom: 30px;
}

.bd-form-group label {
	display: block;
	margin-bottom: 12px;
	font-weight: 700;
	color: var(--bd-text);
	font-family: var(--bd-font-head);
	font-size: 0.95rem;
}

.bd-form-control {
	width: 100%;
	padding: 14px 20px;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	font-size: 1rem;
	transition: var(--bd-transition);
	box-sizing: border-box;
	font-family: var(--bd-font-body);
	background: #fff;
	height: 52px;
}

.bd-form-control:focus {
	border-color: var(--bd-primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Unified Select & Date Inputs */
select.bd-form-control,
input[type="datetime-local"].bd-form-control {
	appearance: none !important;
	background-repeat: no-repeat !important;
	background-position: right 18px center !important;
	background-size: 18px !important;
	padding-right: 50px !important;
}

select.bd-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

input[type="datetime-local"].bd-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2-2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* TinyMCE / WP Editor Harmony */
.wp-editor-container {
	border: 2px solid #e2e8f0 !important;
	border-radius: 16px !important;
	overflow: hidden;
	background: #fff;
}

.mce-toolbar-grp,
.quicktags-toolbar {
	background: #f8fafc !important;
	border-bottom: 2px solid #e2e8f0 !important;
	padding: 10px !important;
}

/* Compact Action Buttons - Pill Style */
.bd-action-btn {
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: var(--bd-transition);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
}

.bd-btn-edit {
	background: #eff6ff;
	color: #2563eb;
}

.bd-btn-edit:hover {
	background: #2563eb;
	color: #fff;
	transform: translateY(-3px);
}

.bd-btn-cancel {
	background: #fff7ed;
	color: #ea580c;
}

.bd-btn-cancel:hover {
	background: #ea580c;
	color: #fff;
	transform: translateY(-3px);
}

.bd-btn-delete {
	background: #fef2f2;
	color: #dc2626;
}

.bd-btn-delete:hover {
	background: #dc2626;
	color: #fff;
	transform: translateY(-3px);
}

/* Sleek File Badge UI */
.bd-file-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #f8fafc;
	color: #475569;
	border-radius: 50px;
	text-decoration: none !important;
	font-size: 0.8rem;
	font-weight: 700;
	transition: var(--bd-transition);
	border: 1px solid #e2e8f0;
	white-space: nowrap;
}

.bd-file-badge:hover {
	background: var(--bd-primary);
	color: #fff;
	border-color: var(--bd-primary);
	transform: translateY(-2px);
}

/* Status Badge refinement */
.bd-status-badge {
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 0.72rem;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	font-weight: 800;
}

.bd-status-open {
	background: #dcfce7;
	color: #15803d;
}

.bd-status-pending {
	background: #fef9c3;
	color: #854d0e;
}

/* Grouped Submissions - Pro V17 */
.bd-group-wrapper {
	margin-bottom: 50px;
}

.bd-group-header {
	background: #f8fafc;
	padding: 20px 30px;
	border-radius: 20px 20px 0 0;
	border: 1px solid #e2e8f0;
	border-bottom: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bd-group-header h4 {
	margin: 0;
	font-family: var(--bd-font-head);
	color: var(--bd-text);
	font-size: 1.1rem;
	font-weight: 800;
}

.bd-group-meta {
	display: flex;
	gap: 15px;
	align-items: center;
}

.bd-group-table-container {
	border: 1px solid #e2e8f0;
	border-radius: 0 0 20px 20px;
	overflow: hidden;
	background: #fff;
}

/* Buyer Instructions Guide */
.bd-guide-container {
	display: grid;
	gap: 30px;
}

.bd-instruction-card {
	background: #fff;
	border-radius: 24px;
	padding: 35px;
	border: 1px solid #e2e8f0;
	display: flex;
	gap: 25px;
	transition: var(--bd-transition);
}

.bd-instruction-card:hover {
	border-color: var(--bd-primary);
	transform: translateX(10px);
}

.bd-step-number {
	width: 50px;
	height: 50px;
	background: var(--bd-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 900;
	flex-shrink: 0;
}

.bd-instruction-content h4 {
	margin: 0 0 10px;
	font-family: var(--bd-font-head);
	color: var(--bd-text);
	font-size: 1.3rem;
}

.bd-instruction-content p {
	margin: 0;
	color: var(--bd-text-light);
	line-height: 1.6;
}

@media (max-width: 1100px) {
	.bd-dashboard-wrapper {
		grid-template-columns: 1fr;
		padding: 30px;
	}

	.bd-sidebar {
		position: static;
		height: auto;
		min-height: auto;
		border-radius: 30px;
	}
}