/* Reset and base styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.container { max-width: 1000px; margin: 24px auto; padding: 16px; }
.card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.card h3 { margin-top: 0; margin-bottom: 16px; color: #334155; font-size: 18px; font-weight: 600; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
button { border: none; border-radius: 8px; padding: 12px 20px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s ease; }
button.primary { background: #2563eb; color: #ffffff; }
button.warn { background: #f59e0b; color: #92400e; }
button.danger { background: #dc2626; color: #ffffff; }
button.ghost { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
input { border: 1px solid #d1d5db; border-radius: 8px; padding: 12px 16px; min-width: 240px; font-size: 14px; }
.status { display: inline-block; background: #eff6ff; color: #2563eb; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-left: 8px; }
.screen-share-container { background: #0f172a; color: #f8fafc; border: 2px solid #334155; }
.video-container { position: relative; width: 100%; min-height: 400px; background: #1e293b; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
#remoteVideo { width: 100%; height: auto; min-height: 400px; background: #000000; border-radius: 12px; display: none; object-fit: contain; }
.video-placeholder { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); color: #cbd5e1; }
.placeholder-content { text-align: center; padding: 40px; }
.placeholder-content h4 { margin: 0 0 12px 0; font-size: 20px; color: #f8fafc; }
.placeholder-content p { margin: 0 0 24px 0; color: #94a3b8; }
.loading-spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid #334155; border-radius: 50%; border-top-color: #3b82f6; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-controls { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
audio { width: 100%; background: #1e293b; border-radius: 8px; margin-top: 12px; }
.log-panel { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; font-family: monospace; font-size: 13px; line-height: 1.4; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.info-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin-top: 16px; }
.info-panel ul { margin: 0; padding-left: 20px; }
.info-panel li { margin-bottom: 8px; color: #475569; }
h1 { color: #1e293b; margin: 0 0 24px 0; font-size: 28px; font-weight: 700; }
p { margin: 8px 0; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } .container { padding: 12px; } .card { padding: 16px; } }
@media (max-width: 640px) { .row { flex-direction: column; align-items: stretch; } button { width: 100%; justify-content: center; } input { width: 100%; min-width: auto; } .video-container { min-height: 250px; } #remoteVideo { min-height: 250px; } }