/* Unified View Styles - EVE Online Aesthetic */

/* View Container Management */
.view-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    /* Prevents clicks on hidden views */
    z-index: 10;
}

.view-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 20;
}

/* Base Canvas Container for System View */
#system-canvas-container {
    z-index: 0;
    pointer-events: auto;
    /* Ensure interactions work */
}

/* Mode Toggle Button */
#mode-toggle-container {
    position: fixed;
    top: 24px;
    left: 340px;
    /* Aligned with Starmap UI */
    z-index: 99999;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    #mode-toggle-container {
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 80%;
        /* Slightly less than 90 to leave room */
        display: flex;
        justify-content: center;
    }

    .mode-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2);
    }
}

#mode-toggle-container:hover {
    z-index: 100000;
}

.mode-toggle-btn {
    /* EVE Tactical Style */
    background: rgba(10, 20, 30, 0.85);
    border: 1px solid rgba(0, 170, 255, 0.4);
    border-left: 3px solid #00aaff;
    border-radius: 2px;

    padding: 8px 16px;
    color: #00ddff;
    font-family: 'Eurostile', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;

    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 50, 80, 0.1);
    transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
    background: rgba(10, 30, 45, 0.95);
    border-color: #00ccff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), inset 0 0 10px rgba(0, 100, 160, 0.2);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.8);
    transform: translateY(-1px);
}

.mode-toggle-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#mode-icon {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.5));
}

#mode-text {
    position: relative;
    top: 1px;
    /* Visual adjustment for font */
}

/* Loading state */
.view-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.view-container.loading::after {
    content: 'ESTABLISHING LINK...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(5, 10, 15, 0.9);
    border: 1px solid #005577;
    color: #00aaff;
    font-family: 'Eurostile', 'Segoe UI', monospace;
    letter-spacing: 2px;

    padding: 20px 40px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}