@font-face {
    font-family: 'Futurism';
    src: url('Futurism.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    background: url('https://portal-dev.us-east-1.onediversified.dev/images/Space.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out;
}

body.warping {
    animation: background-fade-black 0.6s ease-in forwards;
}

@keyframes background-fade-black {
    0% {
        background-color: transparent;
    }
    100% {
        background-color: black;
        background-image: none;
    }
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 8%;
}

.flight-deck-panel {
    background: rgba(220, 220, 220, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.6),
                0 0 80px rgba(100, 200, 255, 0.4),
                0 0 120px rgba(100, 200, 255, 0.2);
    backdrop-filter: blur(10px);
}

.header {
    font-family: 'Futurism', 'Orbitron', sans-serif;
    font-size: 4rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 10px;
    white-space: nowrap;
    text-transform: uppercase;
}

.subheader {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.realm-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.realm-card {
    background: white;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.realm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.realm-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 4px solid #6c757d;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    animation: pulse 2s ease-in-out infinite;
}

.status-widget.operational .status-indicator {
    background: #28a745;
    border-left-color: #28a745;
}

.status-widget.degraded .status-indicator {
    background: #ffc107;
    border-left-color: #ffc107;
}

.status-widget.down .status-indicator {
    background: #dc3545;
    border-left-color: #dc3545;
}

.status-widget.operational {
    border-left-color: #28a745;
}

.status-widget.degraded {
    border-left-color: #ffc107;
}

.status-widget.down {
    border-left-color: #dc3545;
}

.status-widget.maintenance {
    border-left-color: #64c8ff;
}

.status-widget.maintenance .status-indicator {
    background: #64c8ff;
    border-left-color: #64c8ff;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes button-pulse {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3),
                    0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3),
                    0 0 15px 5px rgba(102, 126, 234, 0.6);
    }
}

.status-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 400;
}

.realm-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    animation: button-pulse 2s ease-in-out infinite;
    position: relative;
}

.realm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(102, 126, 234, 0.3);
    filter: brightness(1.1);
    animation: none;
}

.realm-button:active {
    transform: translateY(0);
    animation: none;
}

.uptime-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #d0d0d0;
}

.uptime-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, text-shadow 0.2s;
    display: inline-block;
}

.uptime-link a:hover {
    color: #764ba2;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 15px;
    font-family: 'Rajdhani', sans-serif;
}

/* Ops Bulletin Banner */
.ops-bulletin-banner {
    border-left: 4px solid #64c8ff;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
    animation: bulletin-slide-in 0.4s ease-out;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes bulletin-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ops-bulletin-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ops-bulletin-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.ops-bulletin-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.ops-bulletin-details {
    background: rgba(0, 0, 0, 0.6);
    color: #64c8ff;
    border: 1px solid #64c8ff;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ops-bulletin-details:hover {
    background: rgba(100, 200, 255, 0.2);
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

/* Ops Bulletin Modal */
.ops-bulletin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ops-bulletin-modal.active {
    opacity: 1;
}

.ops-bulletin-modal-content {
    background: rgba(30, 30, 30, 0.98);
    border: 2px solid #64c8ff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.5),
                inset 0 0 30px rgba(0, 0, 0, 0.8);
    font-family: 'Space Mono', monospace;
    animation: modal-zoom-in 0.3s ease-out;
}

@keyframes modal-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ops-bulletin-header {
    border-left: 6px solid #64c8ff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ops-bulletin-title {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.ops-bulletin-icon-large {
    font-size: 2.5rem;
    line-height: 1;
}

.ops-bulletin-label {
    font-size: 0.7rem;
    color: #64c8ff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.ops-bulletin-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.ops-bulletin-close {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.ops-bulletin-close:hover {
    color: #64c8ff;
}

.ops-bulletin-body {
    padding: 20px;
    color: #ddd;
}

.ops-bulletin-timestamp {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
}

.ops-bulletin-status {
    font-size: 0.85rem;
    color: #64c8ff;
    margin-bottom: 15px;
    font-weight: bold;
}

.ops-bulletin-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
}

.ops-bulletin-footer {
    padding: 20px;
    border-top: 1px solid rgba(100, 200, 255, 0.3);
    text-align: center;
}

.ops-bulletin-acknowledge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.ops-bulletin-acknowledge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.warp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.warp-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.warp-content {
    text-align: center;
    color: white;
}

.warp-countdown {
    font-family: 'Orbitron', sans-serif;
    font-size: 10rem;
    font-weight: 900;
    color: #64c8ff;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.8),
                 0 0 60px rgba(100, 200, 255, 0.6),
                 0 0 90px rgba(100, 200, 255, 0.4);
    animation: countdown-pulse 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.warp-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #64c8ff;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.6);
}

@keyframes countdown-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.warp-overlay.warp-speed {
    animation: warp-speed-effect 0.8s ease-out forwards, fade-to-black 0.5s ease-in forwards;
}

@keyframes warp-speed-effect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}

@keyframes fade-to-black {
    0% {
        background: rgba(0, 0, 0, 0.98);
    }
    100% {
        background: rgba(0, 0, 0, 1);
    }
}

.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1),
                0 0 12px rgba(100, 200, 255, 0.8),
                0 0 18px rgba(100, 200, 255, 0.6);
    animation: star-streak 0.8s linear forwards;
}

@keyframes star-streak {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateZ(1000px) scale(30);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        justify-content: center;
    }
    
    .flight-deck-panel {
        max-width: 100%;
    }
    
    .header {
        font-size: 1.6rem;
    }
    
    .warp-countdown {
        font-size: 6rem;
    }
    
    .warp-message {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}
