/* Main App Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #0E1117;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

iframe {
    border: none;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: block;
}

#iframe-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #161b22;
    border-top: 1px solid #30363d;
    z-index: 10;
}

.iframe-switch-btn {
    appearance: none;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.iframe-switch-btn.active {
    background: #238636;
    border-color: #2ea043;
    color: #ffffff;
}

.iframe-switch-btn:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

#install-banner {
    padding: 0.75rem 1rem;
    text-align: center;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    z-index: 10;
}

#install-banner[hidden] {
    display: none !important;
}

#install-link {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
}

#install-link:hover {
    text-decoration: underline;
}

/* Offline Overlay Styles */
#offline-overlay {
    background-color: #0E1117; 
    z-index: 1000; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.offline-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: #a0a0a0;
}
#offline-overlay h1 {
    font-size: 2rem; 
    margin-bottom: 1rem;
}
#offline-overlay p {
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    color: #a0a0a0; 
    padding: 0 20px;
}
