/* SilverChat - Standalone Chat PWA Styles */

:root {
    --chat-primary: #1b6ec2;
    --chat-accent: #0d6efd;
    --chat-bg: #f8f9fa;
    --chat-surface: #ffffff;
    --chat-text: #212529;
    --chat-text-muted: #6c757d;
    --chat-border: #dee2e6;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --chat-bg: #121212;
        --chat-surface: #1e1e1e;
        --chat-text: #e0e0e0;
        --chat-text-muted: #9e9e9e;
        --chat-border: #333333;
    }
}

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--chat-bg);
    color: var(--chat-text);
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
}

.chat-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-logo {
    height: 32px;
    width: auto;
}

.chat-title {
    margin: 0;
    font-weight: 600;
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--chat-text-muted);
}

.powered-by a {
    color: var(--chat-primary);
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* 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(--chat-text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--chat-primary);
    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(--chat-surface);
    border-top: 1px solid var(--chat-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;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-header {
        padding: 0 0.5rem;
    }

    .chat-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}
