:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b8ff;
    --warning-color: #ff9d00;
    --danger-color: #ff0000;
    --background-color: #0a0a1a;
    --panel-color: rgba(10, 10, 26, 0.6);
    --text-color: #ffffff;
    --border-color: #00ff9d;
    --glass-gradient: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    margin: 0;
    font-family: 'Share Tech Mono1', 'Geo1', 'Anta1', 'Goldman', 'Chakra Petch', 'Oxanium1', 'Rationale', 'Space Mono', 'Rajdhani', sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

/* Left Info Panel */
.info-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--glass-gradient);
    padding: 20px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    animation: panelAppear 0.5s ease-out;
    min-width: 300px;
    width: 300px;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 11px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0.3;
}

.info-panel h2 {
    /* font-family: 'Chakra Petch', 'Orbitron', sans-serif; */
    // color: var(--primary-color);
    color: azure;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
    position: relative;
    display: inline-block;
    text-align: center; 
    width: 100%;
}

.info-panel h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Right HUD */
.right-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hud-section {
    background: var(--glass-gradient);
    padding: 20px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: panelAppear 0.5s ease-out;
}

.hud-section h3 {
    /* font-family: 'Orbitron', sans-serif; */
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.status-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.status-label {
    /* font-family: 'Share Tech Mono', monospace; */
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.status-value {
    /* font-family: 'Orbitron', sans-serif; */
    font-size: 1.1em;
    color: var(--primary-color);
}

.status-value.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.status-value.warning {
    color: var(--warning-color);
    text-shadow: 0 0 10px var(--warning-color);
}

/* Orbital Data */
.orbital-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.data-label {
    /* font-family: 'Share Tech Mono', monospace; */
    color: var(--secondary-color);
}

.data-value {
    /* font-family: 'Orbitron', sans-serif; */
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Alerts */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    /* font-family: 'Share Tech Mono', monospace; */
}

.alert-item.warning {
    border-color: rgba(255, 157, 0, 0.3);
}

.alert-time {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.alert-msg {
    color: var(--text-color);
}

.alert-item.warning .alert-msg {
    color: var(--warning-color);
}

/* Stats and Controls */
.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.4);
    transform: translateX(5px);
}

.label {
    /* font-family: 'Share Tech Mono', monospace; */
    color: var(--secondary-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value {
    /* font-family: 'Orbitron', sans-serif; */
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--primary-color);
}

.controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.control-btn {
    /* font-family: 'Anta', 'Goldman', 'Orbitron', sans-serif; */
    font-family: 'Share Tech Mono1', 'Geo1', 'Anta1', 'Goldman1', 'Chakra Petch1', 'Oxanium1', 'Rationale1', 'Space Mono1', 'Rajdhani', sans-serif;
    background: var(--glass-gradient);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
    transform: translateY(-2px);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-right: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-top: 3px solid rgba(0, 255, 157, 0.3);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    /* font-family: 'Orbitron', sans-serif; */
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.loading-content p {
    /* font-family: 'Share Tech Mono', monospace; */
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary-color),
                     0 0 10px var(--primary-color),
                     0 0 15px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
}

@keyframes panelAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Sci-fi effects */
.glow {
    text-shadow: 0 0 10px var(--primary-color);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Add Google Font */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.category-selector {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
    padding-bottom: 8px;
}

.category-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1em;
    text-transform: uppercase;
}

.apply-btn {
    background: rgba(0, 255, 157, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.category-item:hover {
    background: rgba(0, 255, 157, 0.1);
}

.category-item.large-dataset {
    border-left: 2px solid var(--warning-color);
}

.category-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.category-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    cursor: pointer;
    flex: 1;
    font-size: 0.9em;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: rgba(0, 255, 157, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.8em;
    min-width: 24px;
    text-align: center;
}

.category-count.warning {
    background: rgba(255, 157, 0, 0.2);
    color: var(--warning-color);
}

.category-warning {
    width: 100%;
    margin-left: 24px;
    font-size: 0.7em;
    color: var(--warning-color);
    margin-top: 3px;
}

.statistics-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
    padding-bottom: 8px;
}

.stats-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1em;
    text-transform: uppercase;
}

.stats-timestamp {
    font-size: 0.7em;
    color: #aaa;
    font-family: 'Share Tech Mono', monospace;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 3px;
}

.stat-label {
    color: #aaa;
    font-size: 0.8em;
    text-transform: uppercase;
}

.stat-value {
    color: #fff;
    font-size: 1.1em;
    font-family: 'Share Tech Mono', monospace;
}

.stat-value.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Loading improvements */
#loading-message {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

/* Fullscreen button */
.control-btn .shortcut {
    font-size: 0.7em;
    opacity: 0.7;
    margin-left: 4px;
}

/* Fullscreen Mode */
body.fullscreen-mode .right-hud,
body.fullscreen-mode .info-panel {
    display: none;
}

/* Temporary notification */
.temporary-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.temporary-notification.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
} 