/* Scrolling Animation Styles */
.indices-scroll {
	display: flex;
	white-space: nowrap;
	overflow: hidden;
	max-height: 400px;
	position: relative;
	width: 100%; /* Changed from width:max-content */
}

.indices-scroll .scroll-content {
	display: flex;
	animation: scrollside 40s linear infinite;
	width: max-content;
}

.index-block {
	display: inline-block;
	width: 250px;
	margin: 0 5px;
	padding: 20px;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-left: 6px solid #f44336a1;
	transition: transform 0.2s ease-in-out;
	vertical-align: top;
	flex-shrink: 0;
}

.highcharts-credits {
	display: none;
}

g[class^="raphael-group-"][class$="-creditgroup"] {
	display: none !important;
}

[pointer-events="bounding-box"] {
	display: none;
}

@keyframes scrollside {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-100%);
	}
}

/* Button Styles */
.btn-custom2 {
	background: linear-gradient(135deg, #f44336a1 0%, #1e3a8a 100%);
	color: #fff;
	padding: 10px 20px;
}

.btn-custom2:hover {
	background: linear-gradient(135deg, #1e3a8a 0%, #f44336a1 100%);
	color: #fff;
}

/* Grid Styles */
#myGrid {
	height: 500px;
	width: 100%;
}

/* Tooltip Styles */
.tooltip {
	position: absolute;
	display: none;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	pointer-events: none;
	z-index: 99999;
	white-space: nowrap;
}

.tooltip .flag {
	width: 20px;
	height: 14px;
	vertical-align: middle;
	margin-right: 5px;
}

.tooltip {
	position: absolute;
	background: #fff;
	padding: 10px;
	border-radius: 5px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	display: none;
	font-size: 14px;
}

.tooltip h3 {
	margin: 0;
	font-size: 16px;
}

/* Trade Info Styles */
.trade-info {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	text-align: center;
	align-items: center;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: radial-gradient(circle at center, aliceblue 50%, white 50%);
	margin-bottom: 20px;
	min-height: 200px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05)
		0px 4px 6px -2px;
	position: relative;
	overflow: hidden;
}

.trade-info::before, .trade-info::after {
	content: "";
	position: absolute;
	width: 200px;
	height: 200px;
	background: aliceblue;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.3s ease;
	z-index: 0;
}

.highlight {
	color: #ff9800;
	font-size: 1em;
}

.trade-info-bg {
	display: flex;
	text-align: center;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: radial-gradient(circle at center, aliceblue 50%, white 50%);
	margin-bottom: 20px;
	min-height: 150px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05)
		0px 4px 6px -2px;
	justify-content: space-around;
	align-items: center;
	position: relative;
	overflow: hidden;
}

trade-info-bg * {
	position: relative;
	z-index: 1;
}

/* General Layout Styles */
body {
	font-family: "Inter", sans-serif;
	background-color: #f8f9fa;
}

body {
	font-family: Arial, sans-serif;
}

.content {
	padding: 15px;
	text-align: left;
	padding-right: 30px;
}

.custom-nav {
	display: flex;
	justify-content: center;
	flex-wrap: nowrap;
}

.nav-tabs {
	background-color: none;
}

.page-body-wrapper {
	padding-top: 0px;
}

.box-item {
	width: 100%;
}

.container-fluid {
	padding: 20px;
}

/* Section Headers */
.section-header-country {
	background: #1e3a8a;
	color: white;
	padding: 15px 20px;
	margin: 20px 0 0 0;
	border-radius: 8px 8px 0 0;
	position: relative;
	font-style: normal;
	text-align: left;
}

.section-header-country .info-icon-country {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.section-header-country .section-number-country {
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 12px;
	border-radius: 20px;
	font-weight: bold;
	margin-right: 15px;
	display: inline-block;
}

/* Chart Containers */
#top10countrydivbar {
	width: 100%;
	height: 400px;
}

#competetiorsDiv {
	height: 400px;
}

#worldmapcommochart {
	width: 100%;
	height: 400px;
}

#topcountryDiv {
	width: 100%;
	height: 400px;
}

#countrywiseportdata {
	height: 400px;
	width: 100%;
}

/* Table Styles */
.data-table-container {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-header th {
	font-weight: 600;
	white-space: nowrap;
}

.table thead input {
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 5px;
	width: 100%;
}

.table th, .table td {
	font-size: 1rem;
	padding: 1rem;
}

.table thead .fa-filter {
	cursor: pointer;
	color: #6c757d;
}

.table tbody tr:hover {
	background-color: #f1f1f1;
}

.text-end {
	text-align: right;
}

.pagination-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	color: #6c757d;
}

.pagination-container .form-select-sm {
	width: auto;
	display: inline-block;
}

.pagination-container .btn-sm {
	padding: 5px 10px;
}

.table-caption {
	font-style: normal;
	font-size: 0.9rem;
	color: #6c757d;
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
}

.table-caption b {
	font-weight: 600;
}

/* Navigation Styles */
.nav-link-updtd.active {
	background: #1e3a8a;
	color: #fff !important;
}

section {
	padding: 0;
}

.link-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #1a1a1a;
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.link-item:hover {
	color: #2563eb;
}

.link-icon {
	color: #dc2626;
	font-size: 1.25rem;
}

/* Sidebar Styles */
.sidebar {
	width: 280px;
	min-height: 100%;
}

.nav {
	list-style: none;
}

.nav-item {
	margin-bottom: 1px;
	padding: 0 0px;
}

.nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 5px;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.nav-link:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(5px);
}

.menu-title {
	font-weight: 500;
	font-size: 14px;
}

.menu-icon {
	font-size: 18px;
	opacity: 0.8;
}

.filter-content {
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	backdrop-filter: blur(5px);
}

.btn-group {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn {
	flex: 1;
	padding: 8px 12px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 12px;
	font-weight: 500;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn:hover {
	background: #4a5568;
}

.btn-active {
	background: rgba(255, 255, 255, 0.3) !important;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-active {
	background: #1e3a8a !important;
	color: white !important;
}

.btn-inactive {
	background: rgba(255, 255, 255, 0.1);
}

.btn-inactive {
	background: #718096;
}

.custom-select {
	width: 100%;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	color: black;
	font-size: 12px;
	margin-top: 10px;
}

.custom-select option {
	background: #667eea;
	color: white;
}

.submit-btn {
	width: 100%;
	padding: 2px;
	background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 20px 0;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.submit-btn {
	width: 100%;
	padding: 12px;
	background: #4299e1;
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 20px 0;
	font-size: 14px;
}

.submit-btn:hover {
	background: #3182ce;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.progress-container {
	width: 100%;
	height: 20px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	overflow: hidden;
	position: relative;
	margin: 15px 0;
}

.progress-text {
	position: absolute;
	width: 100%;
	text-align: center;
	line-height: 20px;
	font-size: 12px;
	font-weight: 500;
	z-index: 2;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	width: 0%;
	transition: width 0.3s ease;
	border-radius: 14px;
}

.sidebar-menu {
	list-style: none;
	margin-top: 5px;
	padding: 0;
}

.sidebar-menu li {
	margin-bottom: 2px;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 13px;
}

.sidebar-menu a:hover {
	color: white;
	background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu i {
	margin-right: 10px;
	width: 16px;
}

.sidebar-menu {
	list-style: none;
	margin-top: 30px;
}

.sidebar-menu li {
	margin-bottom: 8px;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	padding: 1px 0;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 14px;
	font-weight: 500;
}

.sidebar-menu a:hover {
	color: white;
}

.sidebar-menu i {
	margin-right: 12px;
	width: 18px;
	text-align: center;
}

.hidden {
	display: none !important;
}

.commodity-type-section {
	margin-top: 10px;
}

/* Section Styles */
.section {
	margin-bottom: 20px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 8px;
	background: #718096;
}

.section-icon {
	background: #4299e1;
	border-radius: 2px;
}

.dropdown-select {
	width: 100%;
	padding: 10px 12px;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	color: #2d3748;
	font-size: 13px;
	margin-bottom: 15px;
	cursor: pointer;
}

.dropdown-select:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.selected-item {
	background: #4299e1;
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.remove-btn {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 0 5px;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.remove-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.content-area {
	flex: 1;
	padding: 20px;
	background: #f7fafc;
}

.demo-info {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Canvas and Flag Styles */
canvas {
	border: 1px solid #ccc;
	display: block;
	margin: auto;
}

.flag {
	width: 20px;
	height: 15px;
	vertical-align: middle;
	margin-right: 5px;
}

/* amCharts Tooltip Styling */
.amcharts-tooltip {
	border-radius: 8px !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
	background-color: #333 !important;
	color: #fff !important;
	padding: 10px !important;
}

/* Navbar Styles */
.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg,
	.navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl,
	.navbar>.container-xxl {
	display: flex;
	flex-wrap: inherit;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	margin: 0;
	min-width: 100%;
}