/* BILAL OIL INDUSTRIES — GLOBAL OILSEED MARKET DASHBOARD */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
	--bilal-green-primary: #0B3D2E;
	--bilal-green-dark: #06261D;
	--bilal-green-light: #0E4B39;
	--bilal-gold: #C8A24A;
	--bilal-gold-hover: #b08d3a;
	--bilal-bg-main: #F2F5F3;
	--bilal-card-bg: #FFFFFF;
	--bilal-border: #E2E8F0;
	--bilal-text-main: #1E293B;
	--bilal-text-muted: #64748B;
	--bilal-success: #10B981;
	--bilal-danger: #EF4444;
	--bilal-warning: #F59E0B;
	--bilal-radius: 12px;
	--bilal-shadow: 0 4px 14px rgba(11, 61, 46, 0.04);
}

.bilal-dashboard-wrapper {
	display: flex;
	min-height: 100vh;
	background-color: var(--bilal-bg-main);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--bilal-text-main);
	line-height: 1.5;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bilal-dashboard-wrapper *, .bilal-dashboard-wrapper *::before, .bilal-dashboard-wrapper *::after {
	box-sizing: border-box;
}

/* MOBILE TOGGLE */
.mobile-sidebar-toggle {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	background: var(--bilal-green-primary);
	color: #FFF;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	align-items: center;
	justify-content: center;
}

/* SIDEBAR */
.dashboard-sidebar {
	width: 250px;
	flex-shrink: 0;
	background: var(--bilal-green-dark);
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
	padding: 20px 14px;
	border-right: 1px solid rgba(255,255,255,0.08);
	transition: all 0.3s ease;
	z-index: 100;
}

.sidebar-brand {
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 16px;
}

.brand-logo-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-text h2 {
	margin: 0;
	font-family: 'Outfit', sans-serif;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #FFFFFF;
	line-height: 1.1;
}

.brand-text h3 {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--bilal-gold);
	line-height: 1.1;
}

.brand-tagline {
	display: block;
	font-size: 9px;
	color: rgba(255,255,255,0.6);
	margin-top: 3px;
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-grow: 1;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.nav-item:hover {
	background: rgba(255,255,255,0.08);
	color: #FFFFFF;
}

.nav-item.active {
	background: var(--bilal-gold);
	color: var(--bilal-green-dark);
	font-weight: 700;
}

.nav-item.active .nav-icon {
	color: var(--bilal-green-dark);
}

.nav-item.has-dropdown .dropdown-arrow {
	margin-left: auto;
	font-size: 14px;
	opacity: 0.6;
}

.sidebar-decor-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 10px;
	margin-top: 16px;
	text-align: center;
}

.decor-img-wrap img {
	width: 100%;
	height: 75px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 6px;
}

.decor-text {
	font-size: 10px;
	color: rgba(255,255,255,0.75);
	margin: 0;
	line-height: 1.3;
}

.sidebar-subfooter {
	font-size: 9px;
	color: rgba(255,255,255,0.4);
	margin-top: 12px;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 10px;
}

/* MAIN CONTENT AREA */
.dashboard-main {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 28px;
	max-width: 1650px;
	margin: 0 auto;
	gap: 20px;
	overflow-x: hidden;
}

/* TOP HEADER */
.dashboard-top-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	background: var(--bilal-card-bg);
	padding: 10px 24px;
	border-radius: var(--bilal-radius);
	border: 1px solid var(--bilal-border);
	box-shadow: var(--bilal-shadow);
}

.header-actions-clean {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.header-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 20px;
	padding: 7px 14px;
	width: 360px;
	transition: all 0.2s ease;
}

.header-search-wrap:focus-within {
	border-color: var(--bilal-green-primary);
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.1);
}

.header-search-wrap input {
	border: none;
	background: transparent;
	outline: none;
	width: 100%;
	font-size: 13px;
	color: var(--bilal-text-main);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bilal-text-main);
}

.date-widget .date-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.date-main {
	font-weight: 700;
	color: var(--bilal-green-primary);
	font-size: 12px;
}

.date-sub {
	font-size: 10px;
	color: var(--bilal-text-muted);
}

.live-status-widget {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	padding: 5px 10px;
	border-radius: 20px;
	color: #065F46;
	font-weight: 600;
	font-size: 11px;
}

.pulse-dot {
	width: 7px;
	height: 7px;
	background-color: var(--bilal-success);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulseAnimation 1.6s infinite;
}

@keyframes pulseAnimation {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lang-widget, .user-profile-widget {
	border: 1px solid var(--bilal-border);
	padding: 5px 10px;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 12px;
}

.lang-widget:hover, .user-profile-widget:hover {
	background: #F8FAFC;
}

.user-profile-widget {
	font-weight: 600;
}

/* HERO BANNER */
.dashboard-hero-banner {
	background-size: cover;
	background-position: center right;
	border-radius: var(--bilal-radius);
	padding: 24px 32px;
	border: 1px solid var(--bilal-border);
	box-shadow: var(--bilal-shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.hero-tag {
	font-size: 11px;
	font-weight: 800;
	color: var(--bilal-gold);
	letter-spacing: 2px;
}

.hero-title {
	margin: 2px 0 6px 0;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--bilal-green-primary);
}

.hero-subtitle {
	margin: 0;
	font-size: 13px;
	color: var(--bilal-text-muted);
	max-width: 600px;
}

.hero-badge-slogan {
	text-align: right;
}

.hero-badge-slogan span {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--bilal-green-primary);
	font-style: italic;
	display: block;
}

.gold-underline {
	height: 3px;
	width: 50px;
	background: var(--bilal-gold);
	margin-left: auto;
	margin-top: 4px;
	border-radius: 2px;
}

/* COMMODITY CARDS GRID */
.commodity-cards-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	width: 100%;
}

.commodity-card {
	background: var(--bilal-card-bg);
	border: 1px solid var(--bilal-border);
	border-radius: var(--bilal-radius);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--bilal-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-width: 0;
}

.commodity-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(11, 61, 46, 0.08);
}

.card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 8px;

}

.commodity-header {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
}

.commodity-icon-box {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #FEF3C7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.commodity-title-wrap h3 {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--bilal-green-primary);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.commodity-source-tag {
	font-size: 9px;
	font-weight: 600;
	background: #F1F5F9;
	color: var(--bilal-text-muted);
	padding: 2px 5px;
	border-radius: 4px;
	white-space: nowrap;
}

.card-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
}

.price-value {
	font-size: 15px;
	font-weight: 800;
	color: var(--bilal-text-main);
}

.price-unit {
	font-size: 10px;
	color: var(--bilal-text-muted);
}

.price-change {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 10px;
}

.price-change.up {
	background: #ECFDF5;
	color: var(--bilal-success);
}

.price-change.down {
	background: #FEF2F2;
	color: var(--bilal-danger);
}

.card-sparkline-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.currency-unit-label {
	font-size: 9px;
	color: var(--bilal-text-muted);
	font-weight: 500;
}

.card-meta-footer {
	border-top: 1px dashed var(--bilal-border);
	padding-top: 4px;
	font-size: 8.5px;
	color: var(--bilal-text-muted);
	display: flex;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* GENERAL DASH CARD */
.dash-card {
	background: var(--bilal-card-bg);
	border: 1px solid var(--bilal-border);
	border-radius: var(--bilal-radius);
	padding: 18px;
	box-shadow: var(--bilal-shadow);
}

.card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.card-title-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.card-title-group h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--bilal-green-primary);
}

.card-header-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--bilal-green-primary);
	text-decoration: none;
}

.card-header-link:hover {
	color: var(--bilal-gold);
}

/* MID GRID 1: CHART & SIGNALS */
.dashboard-mid-grid-1 {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 16px;
}

.chart-timeframe-filters {
	display: flex;
	gap: 3px;
	background: #F1F5F9;
	padding: 3px;
	border-radius: 6px;
}

.tf-btn {
	border: none;
	background: transparent;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--bilal-text-muted);
	cursor: pointer;
	transition: all 0.2s;
}

.tf-btn.active {
	background: var(--bilal-green-primary);
	color: #FFFFFF;
}

.chart-container-wrap {
	position: relative;
	width: 100%;
	height: 250px;
}

.chart-custom-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 10px;
	font-size: 11px;
	color: var(--bilal-text-muted);
}

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

.legend-item .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

/* SIGNALS LIST */
.signals-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.signal-item {
	display: grid;
	grid-template-columns: 120px 70px 1fr;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #F8FAFC;
	border-radius: 8px;
	border: 1px solid #F1F5F9;
}

.signal-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.signal-commodity {
	font-size: 12px;
	font-weight: 600;
}

.signal-badge {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 10px;
}

.badge-bullish { background: #ECFDF5; color: var(--bilal-success); }
.badge-bearish { background: #FEF2F2; color: var(--bilal-danger); }
.badge-neutral { background: #F1F5F9; color: #475569; }

.signal-desc {
	margin: 0;
	font-size: 11px;
	color: var(--bilal-text-muted);
	line-height: 1.3;
}

/* MID GRID 2: DEVELOPMENTS & SNAPSHOT */
.dashboard-mid-grid-2 {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 16px;
}

.developments-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.dev-card {
	border: 1px solid var(--bilal-border);
	border-radius: 8px;
	overflow: hidden;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
}

.dev-thumb-wrap {
	position: relative;
	height: 90px;
}

.dev-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dev-category-tag {
	position: absolute;
	top: 6px;
	left: 6px;
	background: rgba(11, 61, 46, 0.9);
	color: var(--bilal-gold);
	font-size: 8px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 3px;
	text-transform: uppercase;
}

.dev-body {
	padding: 8px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}

.dev-title {
	margin: 0 0 4px 0;
	font-size: 11px;
	font-weight: 700;
	color: var(--bilal-green-primary);
	line-height: 1.25;
}

.dev-excerpt {
	margin: 0 0 8px 0;
	font-size: 10px;
	color: var(--bilal-text-muted);
	line-height: 1.3;
}

.dev-meta {
	font-size: 9px;
	color: #94A3B8;
}

/* SNAPSHOT TABLE */
.snapshot-table-wrap {
	overflow-x: auto;
}

.snapshot-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.snapshot-table th {
	text-align: left;
	padding: 7px 10px;
	background: #F8FAFC;
	color: var(--bilal-text-muted);
	font-weight: 600;
	border-bottom: 1px solid var(--bilal-border);
}

.snapshot-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #F1F5F9;
}

.cell-change.up { color: var(--bilal-success); font-weight: 700; }
.cell-change.down { color: var(--bilal-danger); font-weight: 700; }

/* BOTTOM GRID: NEWS, REPORTS, LINKS */
.dashboard-bottom-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 16px;
}

.news-table-wrap {
	overflow-x: auto;
}

.news-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}

.news-table th {
	text-align: left;
	padding: 7px 10px;
	background: #F8FAFC;
	color: var(--bilal-text-muted);
	font-weight: 600;
}

.news-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #F1F5F9;
}

.cell-headline a {
	color: var(--bilal-text-main);
	text-decoration: none;
	font-weight: 500;
}

.cell-headline a:hover {
	color: var(--bilal-green-primary);
	text-decoration: underline;
}

.impact-badge {
	font-size: 9px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 8px;
}

.impact-bullish { background: #ECFDF5; color: var(--bilal-success); }
.impact-bearish { background: #FEF2F2; color: var(--bilal-danger); }
.impact-neutral { background: #F1F5F9; color: #475569; }

/* REPORTS LIST */
.reports-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.report-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px;
	background: #F8FAFC;
	border: 1px solid #F1F5F9;
	border-radius: 6px;
}

.report-title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--bilal-green-primary);
}

.report-date {
	font-size: 9px;
	color: var(--bilal-text-muted);
}

.report-tag {
	font-size: 9px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 4px;
}

.tag-official { background: #E0F2FE; color: #0284C7; }
.tag-market { background: #FEF3C7; color: #D97706; }

/* QUICK LINKS */
.quick-links-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.quick-links-list a {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--bilal-text-main);
	font-size: 12px;
	font-weight: 500;
	padding: 7px 9px;
	background: #F8FAFC;
	border-radius: 6px;
	transition: background 0.2s;
}

.quick-links-list a:hover {
	background: #F1F5F9;
	color: var(--bilal-green-primary);
}

.quick-links-list .ext-icon {
	margin-left: auto;
	opacity: 0.5;
}

/* FOOTER BAR */
.dashboard-footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--bilal-card-bg);
	border: 1px solid var(--bilal-border);
	border-radius: var(--bilal-radius);
	font-size: 11px;
	color: var(--bilal-text-muted);
}

.footer-right {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--bilal-green-primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1300px) {
	.commodity-cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.developments-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1024px) {
	.dashboard-sidebar {
		position: fixed;
		left: -270px;
		top: 0;
		bottom: 0;
		z-index: 999;
	}
	.dashboard-sidebar.open {
		left: 0;
	}
	.mobile-sidebar-toggle {
		display: flex;
	}
	.dashboard-mid-grid-1, .dashboard-mid-grid-2, .dashboard-bottom-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.commodity-cards-grid {
		grid-template-columns: 1fr;
	}
	.developments-grid {
		grid-template-columns: 1fr;
	}
	.dashboard-hero-banner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.header-search-wrap {
		width: 100%;
	}
	.dashboard-top-header {
		flex-direction: column;
		align-items: stretch;
	}
}