/* Custom CSS Variables for Micro Cosmic Theme */
        :root {
            --primary-bg: #1A1D2D;
            --secondary-bg: #2A2F45;
            --accent-color: #A9D4D9;
            --accent-hover: #8FC4CA;
            --secondary-accent: #C774E8;
            --tertiary-accent: #F2DDA4;
            --text-primary: #F0F0F0;
            --text-secondary: rgb(237, 242, 248);
            --text-muted: #6b7280;
            --border-color: #3A4050;
            --glass-bg: rgba(42, 47, 69, 0.8);
            --glass-border: rgba(169, 212, 217, 0.1);
            --success-color: #A9D4D9;
            --warning-color: #F2DDA4;
            --error-color: #C774E8;
        }

        /* Reset some default styles */
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--primary-bg);
            color: var(--text-primary);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-weight: 400;
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
            overflow-x: hidden;
            /* Prevent horizontal scrollbar from body */
            background-image:
                radial-gradient(circle at 20% 80%, rgba(169, 212, 217, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(199, 116, 232, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(242, 221, 164, 0.05) 0%, transparent 50%);
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Montserrat', sans-serif;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        .mobile-menu-active {
            max-height: 500px;
            /* Adjust as needed */
            opacity: 1;
        }

        /* Solar System Specific Styles - Adapted to Micro Cosmic Theme */
        #solarCanvas {
            border: none;
            display: block;
            background: radial-gradient(circle at center, #1A1D2D 0%, #0F1117 100%);
            cursor: grab;
            border-radius: 8px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }


        #solarCanvas:active {
            cursor: grabbing;
        }

        /* Fullscreen canvas styles */
        #solarCanvas:fullscreen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            border-radius: 0 !important;
            border: none !important;
        }

        #solarCanvas:-webkit-full-screen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            border-radius: 0 !important;
            border: none !important;
        }

        #solarCanvas:-moz-full-screen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            border-radius: 0 !important;
            border: none !important;
        }

        #solarCanvas:-ms-fullscreen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            border-radius: 0 !important;
            border: none !important;
        }

        /* Custom styles for range input thumb - adapt colors to new theme */
        input[type="range"].slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #3b82f6;
            /* Tailwind blue-500 */
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
            margin-top: -7px;
            /* Adjust to center thumb on track */
        }

        input[type="range"].slider::-moz-range-thumb {
            width: 18px;
            /* Moz often needs slightly different sizing */
            height: 18px;
            background: #3b82f6;
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
        }

        input[type="range"].slider {
            height: 6px;
            /* Tailwind h-1.5 */
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #22c55e;
            /* green-500 */
            margin-right: 8px;
            animation: pulse 2s infinite;
        }

        .status-indicator.paused {
            background: #f59e0b;
            /* amber-500 */
            animation: none;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }


        canvas {
            border: none;
            display: block;
            background: radial-gradient(circle at center, #1A1D2D 0%, #0F1117 100%);
            cursor: grab;
            border-radius: 8px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        canvas:active {
            cursor: grabbing;
        }

        .controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px 30px;
            backdrop-filter: blur(20px);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: fit-content;
        }

        .control-label {
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
        }

        .info-panel {
            position: absolute;
            top: 150px;
            left: 30px;
            width: 280px;
            padding: 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .info-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-primary);
        }

        .info-content {
            font-size: 14px;
            line-height: 1.5;
            color: var(--text-secondary);
        }


        .zoom-panel {
            position: absolute;
            bottom: 30px;
            right: 30px;
            width: 200px;
            padding: 15px 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .zoom-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
        }



        .instructions-panel {
            position: absolute;
            bottom: 30px;
            left: 30px;
            width: 320px;
            padding: 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .instructions-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .instruction-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .instruction-key {
            background: var(--secondary-bg);
            color: var(--text-primary);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
            margin-right: 10px;
            min-width: fit-content;
            font-weight: 500;
        }

        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success-color);
            margin-right: 8px;
            animation: pulse 2s infinite;
        }

        .status-indicator.paused {
            background: var(--warning-color);
            animation: none;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        /* Responsive design */
        @media (max-width: 1400px) {
            .controls {
                flex-direction: column;
                gap: 15px;
                padding: 15px 20px;
            }

        }

        @media (max-width: 768px) {
            .app-header {
                padding: 0 20px;
                height: 70px;
            }

            .app-title {
                font-size: 20px;
            }

            .info-panel,
            .instructions-panel {
                display: none;
            }

            .zoom-panel {
                display: none;
            }

        }