/* Client page styling */
body { background: var(--bg-alt); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.client-container { width: 100%; max-width: 480px; }

.client-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.client-header { text-align: center; margin-bottom: 32px; }
.client-header .logo { display: inline-flex; margin-bottom: 24px; }
.client-header h1 { font-size: 1.5rem; margin-bottom: 8px; }
.client-header p { color: var(--text-muted); margin: 0; }

.code-input-container { margin-bottom: 24px; }

#session-code {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 16px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: "Monaco", monospace;
}

#session-code:focus {
    outline: none;
    border-color: var(--primary);
}

#session-code::placeholder { color: var(--border); letter-spacing: 16px; }

.error-message {
    background: var(--danger-light);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

.security-notice {
    margin-top: 32px;
    padding: 20px;
    background: var(--success-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--success);
}

.security-notice h4 { color: var(--success); margin-bottom: 12px; font-size: 0.95rem; }
.security-notice ul { list-style: none; margin: 0; }
.security-notice li {
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.security-notice li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.status-banner.connected { background: var(--success-light); color: var(--success); }
.status-banner.sharing { background: #fef2f2; color: #dc2626; }

.status-banner .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-banner .status-dot.pulse { animation: pulse 1.5s infinite; }

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

#share-section, #sharing-section { text-align: center; margin-bottom: 32px; }
#share-section h2 { margin-bottom: 8px; }
#share-section p { color: var(--text-muted); margin-bottom: 20px; }

.share-help { margin-top: 20px; }
.share-help details { text-align: left; }
.share-help summary {
    cursor: pointer;
    color: var(--primary);
    font-size: 0.9rem;
}
.share-help .help-content {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.share-help .help-content p { margin-bottom: 8px; }

.chat-section { border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 24px; }
.chat-section h3 { font-size: 1rem; margin-bottom: 12px; }

.chat-messages {
    height: 150px;
    overflow-y: auto;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.chat-message { margin-bottom: 8px; font-size: 0.9rem; }
.chat-message.host { color: var(--primary); }
.chat-message.system { color: var(--text-light); font-style: italic; text-align: center; }
.chat-message .time { font-size: 0.75rem; color: var(--text-light); margin-left: 8px; }

.chat-input-container { display: flex; gap: 8px; }
.chat-input-container input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
}
.chat-input-container input:focus { outline: none; border-color: var(--primary); }

#ended-screen { text-align: center; }
#ended-screen h2 { margin-bottom: 12px; }
#ended-screen p { color: var(--text-muted); margin-bottom: 24px; }
