:root {
    --orange-primary: #ff6b35;
    --orange-soft: rgba(255, 107, 53, 0.08);
    --orange-glow: rgba(255, 107, 53, 0.25);
    --teal: #0d9488;
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-subtle: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #fafbfc 100%);
    display: flex;
    overflow: hidden;;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BACKGROUND CANVAS Updated By RJ */
#dataCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 1;
    pointer-events: none;   /* ⭐ ADD THIS */
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(240, 244, 248, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid var(--border-subtle);
    padding: 32px 20px;
    padding-top:5px !important;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 88px;
    padding: 32px 16px;
    overflow: visible;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding: 0 8px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 10;
    margin-bottom: 7px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: opacity 0.3s ease;
}

.logo img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.logo-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    z-index: 60;
    position: relative;
}

.toggle-btn:hover {
    background: var(--orange-soft);
    color: var(--orange-primary);
    border-color: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.sidebar.collapsed .logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.nav-section {
    flex: 1;
    position: static;
    overflow: visible;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-left: 12px;
    transition: opacity 0.3s;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.sidebar ul li i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar ul li a {
    display: contents;
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.sidebar ul li.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    color: var(--orange-primary);
    border-color: rgba(255, 107, 53, 0.15);
    box-shadow: 0 1px 3px rgba(255, 107, 53, 0.1);
}

.sidebar ul li.active i {
    color: var(--orange-primary);
    transform: scale(1.1);
}

.sidebar ul li:hover {
    background: rgba(255, 107, 53, 0.04);
    color: var(--text-primary);
}

.sidebar ul li:hover i {
    color: var(--orange-primary);
}

/* INDUSTRIES MEGA MENU */
.has-submenu {
    position: relative !important;
}

/*Updated By RJ */

.has-submenu::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
}

/*Updated By RJ */
.has-submenu {
    position: relative !important;
    z-index: 200;
}

.mega-menu {
    z-index: 9999;
}

.arrow-right {
    margin-left: auto;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
}

.has-submenu:hover .arrow-right {
    color: var(--orange-primary) !important;
    transform: translateX(3px);
}

/* Mega Menu Panel */
.mega-menu {
    position: absolute;
    left: 100%;
    top: 0;
    /*Updated By RJ*/
    margin-left: 0px;
    z-index: 1000;
    min-width: 260px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
    pointer-events: none;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-menu::-webkit-scrollbar {
    width: 6px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 3px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}

.mega-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.3) rgba(255, 107, 53, 0.05);
}

.has-submenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
}

.mega-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.mega-menu-list li {
    padding: 0;
    border-radius: 0;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.mega-menu-list li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    width: 100%;
}

.mega-menu-list li:last-child a {
    border-bottom: none;
}

.mega-menu-list li a:hover {
    background: rgba(255, 107, 53, 0.04);
    color: var(--orange-primary);
    padding-left: 28px;
}

.mega-menu-list li.explore-all {
    margin-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.mega-menu-list li.explore-all a {
    color: var(--teal);
    font-weight: 600;
    border-bottom: none;
    display: flex;
    align-items: center;
    padding-top: 16px;
}

.mega-menu-list li.explore-all a:hover {
    background: rgba(13, 148, 136, 0.04);
    color: var(--teal);
}

.mega-menu-list li.explore-all a:hover::after {
    transform: translateX(4px);
}

/* Collapsed state positioning */
.sidebar.collapsed .mega-menu {
    left: 78px;
    top: auto;
    margin-top: -50px;
}

/* TEXT HIDE WHEN COLLAPSED */
.sidebar.collapsed ul li span:not(.arrow-right) {
    display: none;
}

.sidebar.collapsed ul li:not(.has-submenu)::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--text-primary);
    color: white;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.sidebar.collapsed ul li:not(.has-submenu):hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* MAIN CONTENT */
.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    z-index: 10;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 40px; */
}

.main.collapsed {
    margin-left: 88px;
    width: calc(100% - 88px);
}

.content {
    text-align: center;
    max-width: 720px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.hero-logo img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 107, 53, 0.15));
    transition: transform 0.3s ease;
}

.hero-logo:hover img {
    transform: scale(1.02);
}

/* Data Intelligence Suite */
.suite-label {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    background: linear-gradient(
        90deg,
        var(--text-muted) 0%,
        var(--text-muted) 40%,
        var(--orange-primary) 50%,
        var(--text-muted) 60%,
        var(--text-muted) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 10s linear infinite;
    letter-spacing: 0.15em;
}


/* Report Access Section */
.report-access-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
}

.report-access {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.2;
    margin: 0;
}

.static {
    color: var(--text-secondary);
    font-weight: 600;
}

.dynamic-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--orange-primary);
    font-weight: 800;
    min-width: 140px;
    text-align: left;
}

.dynamic {
    position: relative;
    background: linear-gradient(135deg, var(--orange-primary) 0%, #e85a2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--orange-primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    border-radius: 2px;
    vertical-align: text-top;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* SEARCH SECTION */
.search-container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1000; 
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.04),
        0 10px 40px -10px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.search-input-wrapper:focus-within {
    box-shadow: 
        0 0 0 4px rgba(255, 107, 53, 0.15),
        0 20px 60px -15px rgba(0,0,0,0.15);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-muted);
    font-size: 20px;
    margin-left: 24px;
    margin-right: 12px;
    transition: color 0.3s;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--orange-primary);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 20px 8px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Search Suggestions Dropdown */
#searchSuggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    text-align: left;
    display: none;
}

#searchSuggestions::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

#suggestionsList {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.suggestion-item {
    padding: 12px 24px 12px 48px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.suggestion-item:hover {
    background: #fafafa;
    color: #ff6b35;
    padding-left: 52px;
}

.suggestion-item:hover::before {
    color: #ff6b35;
}

.no-results {
    padding: 16px 24px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    list-style: none;
}

.search-btn {
    padding: 14px 48px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8a5b 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    min-width: 140px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.45);
    filter: brightness(1.05);
}

/* Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 64px;
    position: relative;
    z-index: 1; /* Lower than search container */
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
    
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--orange-primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-subtle);
        margin-top: 8px;
        display: none;
        padding-left: 48px;
    }

    .has-submenu.active .mega-menu {
        display: block;
    }
    
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 24px;
    }

    .report-access {
        font-size: 24px;
        flex-direction: column;
        gap: 4px;
    }

    .quick-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 28px;
    }
    
    #searchSuggestions {
        left: 10px;
        right: 10px;
    }
}
/* @keyframes suiteFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes suiteLetterSpacing {
    from {
        letter-spacing: 0.1em;
    }
    to {
        letter-spacing: 0.25em;
    }
} */

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}