.client-app {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.client-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.client-header {
  background: var(--primary);
  padding: 32px 24px;
  text-align: center;
  color: white;
}

.client-header i {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.client-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.client-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 16px;
}

.connection-badge.online {
  background: var(--success-bg);
  color: var(--success);
}

.connection-badge .status-dot {
  width: 8px;
  height: 8px;
}

.client-body {
  padding: 32px;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.client-footer {
  padding: 20px 32px;
  background: var(--bg-secondary);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Monitor Panel */
.monitor-view {
  padding: 24px;
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.monitor-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.monitor-avatar i {
  width: 28px;
  height: 28px;
}

.monitor-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.monitor-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: monospace;
  line-height: 1.5;
}

.video-section {
  margin-bottom: 24px;
}

.video-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.video-container {
  position: relative;
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.video-overlay i {
  width: 14px;
  height: 14px;
  color: var(--danger);
}

.video-overlay.active i {
  color: var(--success);
}

.video-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.video-controls .btn {
  flex: 1;
}

/* Alert Overlay */
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(239, 68, 68, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
  0%, 100% { background: rgba(239, 68, 68, 0.95); }
  50% { background: rgba(220, 38, 38, 0.98); }
}

.alert-icon {
  width: 80px;
  height: 80px;
  color: white;
  margin-bottom: 24px;
}

.alert-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.alert-message {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .client-app {
    padding: 16px;
  }
  
  .client-body {
    padding: 24px;
  }
  
  .monitor-header {
    flex-direction: column;
    text-align: center;
  }
}
