/* SilverChat - Standalone Chat PWA Styles */

/* Core surface tokens at root — chat-theme.css refines these on .ss-chat-page */
:root {
    --ss-surface-0: #0e0f13;
    --ss-surface-1: #161820;
    --ss-surface-2: #1d2029;
    --ss-text-primary: #f0f1f4;
    --ss-text-secondary: #8b8fa3;
    --ss-border: rgba(255, 255, 255, 0.06);
    --ss-accent: #3b82f6;
}

@media (prefers-color-scheme: light) {
    :root {
        --ss-surface-0: #f5f6f8;
        --ss-surface-1: #ffffff;
        --ss-surface-2: #f0f1f4;
        --ss-text-primary: #111318;
        --ss-text-secondary: #64687a;
        --ss-border: rgba(0, 0, 0, 0.08);
    }
}

/* Base styles */
html, body, #app, .rz-layout {
    margin: 0;
    padding: 0;
    height: 100%;
    height: 100dvh;
    background-color: var(--ss-surface-0);
    color: var(--ss-text-primary);
}

/* Radzen body — fill remaining height, no extra padding */
.rz-body {
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    background: var(--ss-surface-0);
}

/* Not found page */
.chat-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.chat-not-found h1 {
    margin: 0;
    font-size: 2rem;
}

.chat-not-found p {
    color: var(--ss-text-secondary);
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--ss-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ss-surface-2);
    border-top: 1px solid var(--ss-border);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f44336;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
}

