
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            overflow-y: auto;
            height: auto;
        }

        .header {
            background: linear-gradient(90deg, rgba(171, 255, 247, 1) 0%, rgba(207, 255, 250, 1) 35%, rgba(153, 238, 255, 1) 100%);
            color: #B95E45;
            padding: 8px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo {
            width: auto;
            min-width: 0;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            overflow: hidden;
            gap: 10px;
        }

        .logo img {
            width: auto;
            height: 100%;
            max-height: 42px;
            object-fit: contain;
        }

        .header-text h1 {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .header-text p {
            font-size: 18px;
            opacity: 0.9;
        }

        .gov-emblem {
            width: 80px;
            height: 60px;
        }

        .mobile-menu-btn {
            display: none;
            position: relative;
            z-index: 1001;
            background: transparent;
            color: #111827;
            border: none;
            border-radius: 8px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 20px;
        }

        

        .mobile-menu-btn:disabled {
            display: none;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .search-section {
            background: white;
            padding: 20px 0;
            border-bottom: 3px solid #e5e7eb;
        }

        .search-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .search-box {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            height: auto;
            flex-wrap: wrap;
        }

        .search-input {
            flex: 1;
            min-width: 200px;
            padding: 5px;
            border: 2px solid #d1d5db;
            border-radius: 6px;
            font-size: 16px;
        }

        .search-btn {
            background: #1e3a8a;
            color: white;
            border: none;
            padding: 5px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s;
            white-space: nowrap;
        }

        .search-btn:hover {
            background: #1e40af;
        }

        .search-btn.description-btn {
            background: #059669;
        }

        .search-btn.description-btn:hover {
            background: #047857;
        }

        .search-btn.export-btn {
            background: #7c3aed;
        }

        .search-btn.export-btn:hover {
            background: #6d28d9;
        }

        .filter-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .filter-group select {
            width: 100%;
            padding: 5px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            background: white;
        }

        #yearSelect {
            background: #065f46;
            color: white;
            border-radius: 12px;
            padding: 5px 24px;
        }

        .year-filter.active {
            display: block;
            padding: 10px;
        }

        .content-wrapper {
            max-width: 100%;
            margin: 0 auto;
            padding: 10px 20px;
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 20px;
            min-height: calc(100vh - var(--header-h, 60px));
            overflow: visible;
        }

        .sidebar {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow-y: auto;
            position: sticky;
            top: 10px;
            max-height: calc(100vh - 20px);
            align-self: start;
        }

        .sidebar-close {
            display: none;
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6b7280;
            z-index: 1002;
        }

        .sidebar-close:hover {
            color: #1e3a8a;
        }

        .sidebar h3 {
            color: #1e3a8a;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .category-list {
            list-style: none;
        }

        .category-list li {
            padding: 8px 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .category-list a {
            color: #374151;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

        .category-list a:hover {
            color: #1e3a8a;
        }

        .main-content {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: visible;
            height: auto;
            padding: 10px 20px;
        }

        .content-header {
            background: transparent;
            padding: 12px 0;
            border-bottom: none;
            margin-bottom: 4px;
        }

        .content-header h2 {
            color: #1e3a8a;
            margin-bottom: 10px;
        }

        .content-header .subtitle {
            color: #047857;
            font-size: 14px;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .info-banner {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
            color: white;
            padding: 14px 20px;
            margin-bottom: 16px;
            border-radius: 12px;
        }

        .info-banner h4 {
            margin-bottom: 4px;
            font-size: 16px;
            font-weight: 700;
        }

        .info-banner p {
            font-size: 13px;
            line-height: 1.5;
            margin: 0;
            opacity: 0.85;
        }

        .results-info {
            color: #6b7280;
            font-size: 14px;
        }

        .product-grid {
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
        }

        /* when the grid switches to results view we also hide the pagination
           control at the bottom; the JS will still update it if/when there are
           pages to display, but for the initial blank state it should not be
           visible. */
        .product-grid.hide-on-results + .pagination,
        .product-grid.hide-on-results ~ .pagination {
            display: none;
        }

        .product-card {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            background: white;
        }
        .product-card img {
            display: block;
            max-width: 100%;
            height: auto;
        }

        .product-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(30, 58, 138, 0.12);
        }

        /* when the grid has been switched to show products/results (second view) we
           don't want to render the card thumbnails themselves; only the table and
           statistics are relevant.  adding/removing this class from JS ensures the
           segment‑summary cards on the initial dashboard are unaffected. */
        .product-grid.hide-on-results .product-card {
            display: none;
        }

        .product-header {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            padding: 16px;
            border-bottom: 1px solid #e2e8f0;
        }

        .product-title {
            font-size: 16px;
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 5px;
        }

        .product-category {
            font-size: 12px;
            color: #059669;
            background: #d1fae5;
            padding: 2px 8px;
            border-radius: 12px;
            display: inline-block;
        }

        .product-body {
            padding: 15px;
        }

        .product-description {
            color: #4b5563;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .product-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        .detail-item {
            font-size: 12px;
        }

        .detail-label {
            color: #6b7280;
            font-weight: 500;
        }

        .detail-value {
            color: #374151;
            margin-top: 2px;
        }

        .product-actions {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: background 0.3s;
	    margin:5px;
        }

        .btn-primary {
            background: #1e3a8a;
            color: white;
        }

        .btn-primary:hover {
            background: #1e40af;
        }

        .btn-secondary {
            background: #6b7280;
            color: white;
        }

        .btn-secondary:hover {
            background: #4b5563;
        }

        .pagination {
            padding: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .page-btn {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            background: white;
            color: #374151;
            text-decoration: none;
            border-radius: 4px;
            transition: background 0.3s;
        }

        .page-btn:hover,
        .page-btn.active {
            background: #1e3a8a;
            color: white;
        }

        .footer {
            background: #1f2937;
            color: white;
            padding: 40px 0;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }

        .status-badge {
            font-size: 10px;
            padding: 7px 6px;
            border-radius: 4px;
            color: white;
            display: inline-block;
            margin: 5px 5px 5px 0px;
        }

        .status-available {
            background: #059669;
        }

        .status-development {
            background: #d97706;
        }

        .status-licensed {
            background: #7c3aed;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #6b7280;
        }

        .error {
            text-align: center;
            padding: 40px;
            color: #dc2626;
        }

        .disclaimer-box {
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #7c2d12;
            border-radius: 8px;
            padding: 16px 18px;
            margin: 16px 20px;
        }

        .disclaimer-box h4 {
            margin-bottom: 8px;
            font-size: 16px;
            color: #9a3412;
        }

        .disclaimer-box p {
            font-size: 14px;
            line-height: 1.6;
        }

        /* Dropdown styles for the enzyme filter */
        .enzyme-filter-section {
            background: white;
            padding: 5px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            position: sticky;
            top: 10px;
            max-height: calc(100vh - 20px);
            overflow-y: auto;
            align-self: start;
        }

        .filter-dropdown {
            margin-bottom: 15px;
            border: 1px solid #505050;
            border-radius: 8px;
            overflow: hidden;
        }

        .dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: #f8fafc;
            cursor: pointer;
            transition: background 0.3s;
        }

        .dropdown {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .dropdown-header:hover {
            background: #f1f5f9;
        }

        .dropdown-header h3 {
            text-decoration: underline;
            color: #1e3a8a;
            margin: 0;
            font-size: 18px;
        }

        .dropdown-header h4 {
            text-decoration: underline;
            color: #059669;
            margin: 0;
            font-size: 14px;
            font-weight: normal;
        }

        .dropdown-arrow {
            font-size: 16px;
            color: #6b7280;
            transition: transform 0.3s;
        }

        .dropdown-content {
            display: none;
            padding: 4px;
            background: white;
            border-top: 1px solid #e5e7eb;
        }

        .dropdown-content.open {
            display: block;
        }

        .filter-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .enzyme-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .enzyme-btn {
            background: #f8fafc;
            border: 2px solid #e5e7eb;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            font-size: 14px;
        }

        .enzyme-btn:hover {
            background: #1e3a8a;
            color: white;
            border-color: #1e3a8a;
        }

        .enzyme-btn.active {
            background: #059669;
            color: white;
            border-color: #059669;
        }

        #loadingOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5em;
            color: #fff;
            padding: 20px;
        }

        .loader::before {
            content: '';
            display: inline-block;
            width: 32px;
            height: 32px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 12px;
        }

        #resultCount {
            font-weight: 600;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .navbar {
            display: flex;
            align-items: center;
            background-color: #2C3343;
            padding: 10px 20px;
            color: #000;
            flex-wrap: wrap;
            position: relative;
        }

        .title {
            font-size: 16px;
            margin-right: auto;
        }

        .nav-links {
            margin: 5px 0 0 0;
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-links a {
            color: #000;
            text-decoration: none;
            padding: 5px 8px;
            font-size: 13px;
            transition: background 0.3s;
            border-bottom: 2px solid transparent;
        }

        .login-button a {
            background-color: #8103A4;
            padding: 8px 12px;
            color: white;
            border: 1px solid white;
            text-decoration: none;
            border-radius: 3px;
        }

        .login-button a:hover {
            background-color: #66028A;
        }

        .cart-section {
            display: flex;
            align-items: center;
            margin-left: 10px;
        }

        .cart-icon {
            position: relative;
            font-size: 22px;
            margin-right: 5px;
            background: white;
            color: #8103A4;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #8103A4;
            color: white;
            font-size: 12px;
            padding: 2px 5px;
            border-radius: 10px;
        }

        .interest-text {
            font-size: 12px;
            margin-left: 5px;
        }


        .dropdown-toggle {
            cursor: pointer;
            padding: 8px 10px;
            color: #000;
            text-decoration: none;
            border-bottom: 2px solid transparent;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 60%;
            background-color: white;
            min-width: 150px;
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        .dropdown-menu a {
            color: #000;
            padding: 10px 15px;
            display: block;
            text-decoration: none;
            font-size: 14px;
        }

        .dropdown-menu a:hover {
            background-color: #f1f1f1;
        }

        .dropdown.open .dropdown-menu {
            display: block;
        }

        #backToTopBtn {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 30px;
            z-index: 1002;
            border: none;
            outline: none;
            background-color: #1e3a8a;
            color: white;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 24px;
            line-height: 1;
        }

        #backToTopBtn:hover {
            background-color: #1e40af;
        }

        @media (min-width: 568px) {
            .mobile-menu-btn { display: none; }
        }

        @media (max-width: 768px) {
.search-dropdown{
padding:5px;}
	    .main-content{
		padding: 10px 5px;
	    }.product-grid {
		padding:5px;
	    }
            .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }

            .content-wrapper {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 10px 5px 20px 5px;
                height: auto;
                overflow: visible;
            }

            body {
                overflow: auto;
                height: auto;
            }

            .main-content {
                height: auto;
                overflow: visible;
            }

            .sidebar {
                position: fixed;
                top: 0;
                left: -100%;
                width: 280px;
                height: 100vh;
                z-index: 1000;
                transition: left 0.3s ease;
                border-radius: 0;
                overflow-y: auto;
            }
            .enzyme-filter-section{
                height: auto;
            }
            .sidebar.open {
                left: 0;
            }

            .sidebar-overlay.active {
                display: block;
            }

            .sidebar-close {
                display: block;
            }

            .product-grid {
                grid-template-columns: 1fr;
            }

            .header-text h1 {
                font-size: 18px;
            }

            .header-text p {
                font-size: 14px;
            }

            .search-box {
                flex-wrap: wrap;
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .search-input {
                flex: 1 1 100%;
                width: 100%;
            }

            /* Ensure all controls inside search box fill width on mobile */
            .search-box > * {
                width: 100%;
                box-sizing: border-box;
            }

            .search-btn {
                padding: 10px 16px;
                font-size: 14px;
                margin-bottom: 5px;
                width: 100%;
            }

            .search-note {
                display: block;
                margin-top: 6px;
                clear: both;
            }
            /* Collapse nav links into a neat multi-line list on mobile */
            .nav-links {
                width: 100%;
                justify-content: center;
                align-items: center;
                padding-right: 0;
                gap: 8px;
                flex-direction: column;
                padding-top: 8px;
                padding-bottom: 8px;
            }
            .nav-links a,
            .nav-links button {
                padding: 8px 12px;
                font-size: 14px;
            }

            /* Tighter header and logos on mobile */
            .header { padding: 12px 0; }
            .logo { height: 44px; width: auto; }
            .logo-section img { max-height: 40px; height: auto; width: auto; }
        }

        @media (max-width: 480px) {
            .info-banner-content{
                width: 280px;
            }
            .sidebar {
                width: 100%;
                left: -100%;
            }

            .logo {
                height: 40px;
                font-size: 16px;
            }
	    .logo-section img {
        	max-height: 30px;
	    }
            .gov-emblem {
                width: 60px;
                height: 45px;
            }

            .search-box {
                gap: 8px;
            }

            .search-box > * {
                width: 100%;
                box-sizing: border-box;
            }
        }

        /* Statistics Section Styles */
        .statistics-container {
            background: #f8fafc;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            margin-bottom: 20px;
            padding: 16px 12px;
        }

        .chart-container {
            margin-bottom: 24px;
            text-align: center;
            height: auto;
            max-width: 100%;
            background: white;
            border-radius: 12px;
            padding: 16px 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .chart-container h3 {
            color: #1e3a8a;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        /* Pie chart container: use full width */
        #pieChartContainer {
            max-width: 100%;
            width: 100%;
        }

        /* Pie layout: chart and legend side-by-side */
        .pie-flex {
            display: flex;
            align-items: center;
            gap: 20px;
            justify-content: flex-start;
            flex-direction: row;
            flex-wrap: nowrap;
        }

        .pie-canvas {
            flex: 0 0 380px;
            width: 380px;
            height: 380px;
        }

        #pieLegend {
            flex: 1 1 auto;
            min-width: 0;
            text-align: left;
            overflow: visible;
        }

        #pieLegend ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #pieLegend li {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 2px 0;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.2s;
            font-size: 0.78rem;
            line-height: 1.25;
            cursor: pointer;
        }

        #pieLegend li:hover {
            background: #f1f5f9;
        }

        .legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
            display: inline-block;
            flex-shrink: 0;
        }

        /* Fix height for yearly import charts */
        #valueChartContainer,
        #qtyChartContainer {
            height: 320px;
            max-width: 100%;
            position: relative;
            overflow: hidden;
        }

        /* Place the two yearly charts side by side */
        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            align-items: stretch;
        }

        .charts-row .chart-container {
            max-width: 100%;
        }

        .country-classification {
            padding: 10px;
        }

        .country-classification h3 {
            color: #1e3a8a;
            margin: 20px 0 10px 0;
            font-size: 18px;
        }

        .table-container {
            overflow-x: auto;
        }

        #countryTable {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        #countryTable th,
        #countryTable td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }

        #countryTable th {
            background-color: #f8fafc;
            font-weight: 600;
            color: #374151;
        }

        #countryTable tr:hover {
            background-color: #f9fafb;
        }

        #countryTable td:nth-child(1) {
            font-weight: 600;
            color: #1e3a8a;
        }

        #countryTable td:nth-child(3) {
            font-weight: 600;
            color: #059669;
        }

        @media (max-width: 768px) {
            .statistics-container {
                padding: 15px;
            }

            #countryTable th,
            #countryTable td {
                padding: 8px;
                font-size: 14px;
            }
        }

        #viewToggleBtn {
            margin-top: 10px;
            padding: 6px 12px;
            font-size: 14px;
            cursor: pointer;
            background: #1e3a8a;
            color: white;
            border: none;
            padding: 5px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s;
            white-space: nowrap;
        }

        /* Growth Analysis Styles */
        .growth-analysis {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .growth-metrics {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .growth-metric {
            text-align: center;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-width: 120px;
        }

        .metric-label {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .metric-value {
            font-size: 18px;
            font-weight: 700;
            color: #1e3a8a;
        }

        .growth-arrow {
            font-size: 24px;
            color: #6b7280;
            font-weight: bold;
        }

        .growth-indicator {
            text-align: center;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            min-width: 140px;
        }

        .indicator-label {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .indicator-value {
            font-size: 16px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .growth-status-growing {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .growth-status-declining {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .growth-status-stable {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fed7aa;
        }

        .growth-description {
            font-size: 14px;
            line-height: 1.5;
            color: #374151;
        }

        /* Summary Boxes Styles */
        .summary-boxes {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }

        .summary-box {
            border: none;
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 18px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
        }

        .summary-box::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            opacity: 0.08;
            transform: translate(30%, -30%);
        }

        .summary-box:nth-child(1) {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-left: 4px solid #3b82f6;
        }
        .summary-box:nth-child(1)::before { background: #3b82f6; }

        .summary-box:nth-child(2) {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border-left: 4px solid #059669;
        }
        .summary-box:nth-child(2)::before { background: #059669; }

        .summary-box:nth-child(3) {
            background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
            border-left: 4px solid #8b5cf6;
        }
        .summary-box:nth-child(3)::before { background: #8b5cf6; }

        .summary-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .summary-icon {
            font-size: 28px;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            flex-shrink: 0;
        }

        .summary-box:nth-child(1) .summary-icon {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
        }
        .summary-box:nth-child(2) .summary-icon {
            background: linear-gradient(135deg, #065f46 0%, #059669 100%);
            color: white;
        }
        .summary-box:nth-child(3) .summary-icon {
            background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
            color: white;
        }

        .summary-content {
            flex: 1;
        }

        .summary-label {
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 6px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-value {
            font-size: 26px;
            font-weight: 800;
            color: #1e293b;
            line-height: 1.2;
        }

        @media (max-width: 768px) {
            .summary-boxes {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .summary-box {
                padding: 16px;
            }

            .summary-icon {
                width: 48px;
                height: 48px;
                font-size: 22px;
            }

            .summary-value {
                font-size: 20px;
            }
        }

        @media (max-width: 768px) {
	    .header-content {
   		display: block;
		padding:0 10px;
	   }
	    .logo-section {
		justify-content: space-between;
	    }
            .pie-canvas {
                flex: 0 0 260px;
                width: 260px;
                height: 260px;
            }

            .chart-container {
                max-width: 100%;
                padding: 12px;
                height: auto;
            }

            .charts-row {
                grid-template-columns: 1fr;
            }

            #valueChartContainer,
            #qtyChartContainer {
                height: 220px;
            }

            .pie-flex {
                flex-direction: column;
                align-items: center;
                flex-wrap: nowrap;
            }

            #pieLegend {
                max-width: 100%;
                width: 100%;
            }

            #pieLegend li {
                font-size: 0.75rem;
            }

            .statistics-container {
                padding: 12px;
            }
        }

        /* Extra small phones */
        @media (max-width: 600px) {
            #valueChartContainer,
            #qtyChartContainer { height: 180px; }
        }

        /* Pie header with back button and breadcrumb */
        .pie-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .pie-back-btn,
        #pieBackBtn {
            background: #065f46;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 6px 18px;
            font-size: 13px;
            cursor: pointer;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .pie-back-btn:hover,
        #pieBackBtn:hover {
            background: #047857;
        }

        /* Breadcrumb trail */
        .pie-breadcrumb {
            font-size: 0.82rem;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 2px;
            flex-wrap: wrap;
        }

        .pie-breadcrumb .crumb-link {
            color: #1e3a8a;
            cursor: pointer;
            text-decoration: underline;
            transition: color 0.2s;
        }

        .pie-breadcrumb .crumb-link:hover {
            color: #3b82f6;
        }

        .pie-breadcrumb .crumb-sep {
            color: #9ca3af;
            margin: 0 2px;
        }

        .pie-breadcrumb .crumb-current {
            color: #374151;
            font-weight: 600;
        }

        /* Total bar below pie */
        .pie-total-bar {
            text-align: center;
            padding: 10px 16px;
            margin-top: 8px;
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border: 1px solid #bbf7d0;
            border-radius: 10px;
            font-size: 0.92rem;
            color: #166534;
        }

        .pie-total-bar strong {
            color: #065f46;
        }

        /* General table styling */
        #topCountriesTable {
            width: 100%;
            max-width: 1000px;
            /* Limits table width for better readability */
            margin: 20px auto;
            /* Centers the table with some margin */
            border-collapse: collapse;
            /* Removes gaps between cells */
            font-family: Arial, sans-serif;
            /* Clean, professional font */
            background-color: #ffffff;
            /* White background for the table */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            /* Subtle shadow for depth */
            border-radius: 8px;
            /* Rounded corners */
            overflow: hidden;
            /* Ensures rounded corners apply to content */
        }

        /* Table header styling */
        #topCountriesTable thead {
            background-color: #1e3a8a;
            /* Dark blue background for header */
            color: #ffffff;
            /* White text for contrast */
        }

        #topCountriesTable th {
            padding: 14px 12px;
            /* Comfortable padding */
            text-align: left;
            /* Left-align text for readability */
            font-size: 16px;
            /* Slightly larger font for headers */
            font-weight: 700;
            /* Bold headers */
            text-transform: uppercase;
            /* Uppercase for emphasis */
        }

        /* Table body styling */
        #topCountriesTable tbody tr {
            border-bottom: 1px solid #e5e7eb;
            /* Light gray border for separation */
            transition: background-color 0.2s ease;
            /* Smooth hover transition */
        }

        /* Alternating row colors */
        #topCountriesTable tbody tr:nth-child(even) {
            background-color: #f9fafb;
            /* Light gray for even rows */
        }

        /* Hover effect for rows */
        #topCountriesTable tbody tr:hover {
            background-color: #e5e7eb;
            /* Slightly darker gray on hover */
        }

        /* Cell styling */
        #topCountriesTable td {
            padding: 12px;
            /* Consistent padding */
            font-size: 14px;
            /* Readable font size */
            color: #1f2937;
            /* Dark gray text for body */
        }

        /* Specific styling for rank and country (override inline styles) */
        #topCountriesTable td:nth-child(1),
        #topCountriesTable td:nth-child(2) {
            font-weight: 600;
            color: #1e3a8a !important;
            /* Maintains dark blue color */
        }

        /* Specific styling for import value (override inline styles) */
        #topCountriesTable td:nth-child(3) {
            font-weight: 600;
            color: #059669 !important;
            /* Maintains green color */
        }

        /* Responsive design for smaller screens */
        @media (max-width: 768px) {
	   #yearSelect {
		padding:5px 0px;
	    }
            #topCountriesTable {
                font-size: 14px;
                /* Slightly smaller font for mobile */
            }

            #topCountriesTable th,
            #topCountriesTable td {
                padding: 10px;
                /* Reduced padding for smaller screens */
                font-size: 12px;
                /* Smaller font size */
            }

            /* Optional: Hide less critical columns on small screens */
            #topCountriesTable th:nth-child(4),
            #topCountriesTable td:nth-child(4),
            #topCountriesTable th:nth-child(5),
            #topCountriesTable td:nth-child(5) {
                display: none;
                /* Hides Quantity and Import Count columns */
            }
        }

        /* Ensure table is scrollable on very small screens */
        @media (max-width: 600px) {
            #topCountriesTable {
                display: block;
                overflow-x: auto;
                /* Horizontal scroll for small screens */
                white-space: nowrap;
                /* Prevents text wrapping */
            }
        }

