/* Design tokens are defined in design-tokens.css — do not redefine here */

/* Global Z-Index Override - Ensure navbar doesn't block modals */
.navbar {
    z-index: 1040 !important;
}

.nav-dropdown::before {
    z-index: 1041 !important;
}

.nav-dropdown-menu {
    z-index: 1042 !important;
}

.nav-submenu {
    z-index: 1043 !important;
}

.user-dropdown-menu {
    z-index: 1042 !important;
}

/* Ensure scroll-to-top button is below navbar */
.scroll-to-top {
    z-index: 1030 !important;
}

/* Ensure sidebar is below modal but above content */
.analysis-sidebar {
    z-index: 1020 !important;
}

/* Ensure all modals are above navbar */
.modal,
.plotly-modal,
.chart-modal,
div[id*="modal"],
div[class*="modal"] {
    z-index: 1050 !important;
}

/* Plotly specific modal overrides */
.plotly .modebar {
    z-index: 1051 !important;
}

/* Chart.js and other chart library modals */
.chartjs-tooltip,
.chartjs-modal,
.chart-tooltip {
    z-index: 1052 !important;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-color);
    line-height: 1.6;
    color: var(--dark-color);
    min-height: 100vh;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}