 body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            color: white;
            overflow: hidden;
        }

        /* Top Navigation */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            padding: 0 20px;
            z-index: 1001;
            gap: 20px;
        }

        .logo {
            font-size: 20px;
            font-weight: bold;
            color: rgba(18, 118, 158, 0.8);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-buttons {
            display: flex;
            gap: 10px;
            margin-left: auto;
        }

        .nav-button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            position: relative;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .nav-button.active {
            background: #12769ecc;
            box-shadow: 0 2px 8px rgba(33, 149, 243, 0.122);
        }

        .nav-button.dashboard {
            background: linear-gradient(45deg, #0a836b, #12769ecc);
        }

        .nav-button.dashboard:hover {
            background: linear-gradient(45deg, #0a836b, #12769ecc);
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 60px;
            left: -380px;
            width: 320px;
            height: calc(100vh - 60px);
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(15px);
            padding: 20px;
            overflow-y: auto;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            transition: left 0.3s ease;
            z-index: 1000;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;                       /* Chrome, Safari, Edge */
        }

        .sidebar::-webkit-scrollbar-thumb {
            background-color: rgba(255,255,255,0.3);
            border-radius: 3px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar-toggle {
            position: fixed;
            top: 360px;
            left: 10px;
            background: rgba(255, 255, 255, 0.8);
            border: none;
            color: rgb(0, 0, 0);
            padding: 12px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s;
            z-index: 1001;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggle:hover {
            background: rgba(18, 118, 158, 0.8);
            transform: scale(1.1);
        }

        .sidebar-toggle.open {
            left: 345px;
        }

        /* Main content area */
        .main-content {
            margin-top: 60px;
            height: calc(100vh - 60px);
            position: relative;
            transition: margin-left 0.3s ease;
        }

        .main-content.sidebar-open {
            margin-left: 320px;
        }

        /* View controls */
        .view-controls {
            position: absolute;
            top: 565px;
            right: 20px;
            z-index: 1000;
            display: flex;
            gap: 10px;
        }

        .view-toggle, .refresh-btn {
            background: rgba(255, 255, 255, 0.8);
            border: none;
            color: rgb(17, 94, 135);
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
        }

        .view-toggle:hover, .refresh-btn:hover {
            background: rgba(18, 118, 158, 0.8);
            transform: translateY(-2px);
            color: #ffffffcc;
        }

        .refresh-btn {
            padding: 12px;
            border-radius: 50%;
        }

        /* Page containers */
        .page {
            width: 100%;
            height: 100%;
            display: none;
            position: relative;
        }

        .page.active {
            display: block;
        }

        /* Ensure map containers have proper dimensions */
        #conjunctions-mapView, #elset-mapView, #sgi-mapView, #statevector-mapView {
            width: 100%;
            height: 100%;
        }

        #conjunctions-globeView, #elset-globeView, #sgi-globeView, #statevector-globeView {
            width: 100%;
            height: 100%;
        }

        .hidden {
            display: none !important;
        }

        /* Sidebar content */
        .stats {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .data-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 12px;
            margin-bottom: 10px;
            border-radius: 6px;
            border-left: 4px solid;
            cursor: pointer;
            transition: all 0.3s;
        }

        .data-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

        .data-item.selected {
            background: rgba(33, 150, 243, 0.3);
        }

        .high-risk { border-left-color: #ff4757; }
        .medium-risk { border-left-color: #ffa726; }
        .low-risk { border-left-color: #66bb6a; }
        .active-satellite { border-left-color: #2196f3; }
        .inactive-satellite { border-left-color: #757575; }

        .data-header {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .data-details {
            font-size: 12px;
            opacity: 0.8;
        }

        .filter-section {
            margin-bottom: 20px;
        }

        .filter-section h3 {
            margin-bottom: 10px;
            color: #178cbacc;
        }

        .filter-input {
            width: 100%;
            padding: 8px;
            border: none;
            border-radius: 4px;
            background: rgba(18, 118, 158, 0.1);
            color: white;
            margin-bottom: 10px;
        }

        .filter-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .filter-buttons {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .filter-button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: background 0.3s;
        }

        .filter-button.active {
            background: #086855;
        }

        .filter-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.8);
            padding: 30px;
            border-radius: 10px;
        }

        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid #12769ecc;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error {
            color: #ff4757;
            text-align: center;
            padding: 20px;
            background: rgba(255, 71, 87, 0.1);
            border-radius: 8px;
            margin: 20px 0;
        }

        .tooltip {
            background: rgba(255, 255, 255, 0.9);
            padding: 10px;
            font-size: 12.5px;
            max-width: 180px;
        }

        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #12769ecc;
            font-size: 24px;
        }

        h2 {
            color: #086855;
            font-size: 18px;
            margin-bottom: 15px;
        }

        /* Leaflet control positioning */
        .leaflet-control-container {
            z-index: 990;
        }

        .leaflet-top {
            top: 20px;
        }