/* Syndicate TV - Main Styles */

:root {
  --primary-color: #FFD700;
  --primary-hover: #FFC500;
  --secondary-color: #FF6B35;
  --accent-color: #9B59B6;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --dark-bg: #0A0A0A;
  --light-bg: #1A1A1A;
  --card-bg: #141414;
  --border-color: #333;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --text-primary: #ffffff;
  --text-secondary: #999;
  --text-gold: #FFD700;
  --shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
  --shadow-hover: 0 12px 48px rgba(255, 215, 0, 0.2);
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0A0A0A 0%, #141414 50%, #0A0A0A 100%);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Screens */
.screen {
  display: none;
  width: 100%;
  height: 100vh;
}

.screen.active {
  display: flex;
}

/* Login Screen */
#loginScreen {
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%),
              linear-gradient(135deg, #0A0A0A 0%, #141414 50%, #0A0A0A 100%);
}

.login-container {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gold-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-lg);
}

.login-container:hover::before {
  opacity: 0.05;
}

.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-section i {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.logo-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(255, 215, 0, 0.1);
}

.logo-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  width: 100%;
  justify-content: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Navbar */
.navbar {
  background: var(--card-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-brand i {
  color: var(--primary-color);
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Lobby */
#lobbyScreen {
  flex-direction: column;
}

.lobby-container {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.lobby-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.action-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 215, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%), var(--card-bg);
}

.action-card i {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.action-card h3 {
  margin-bottom: 0.5rem;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Rooms List */
.rooms-list {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.rooms-list h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

#roomsContainer {
  display: grid;
  gap: 1rem;
}

.room-item {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.room-item:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.room-name {
  font-weight: 600;
}

.room-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input {
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--primary-color);
}

/* Conference Room */
#conferenceScreen {
  flex-direction: column;
}

.conference-container {
  display: flex;
  flex: 1;
  height: 100%;
  position: relative;
}

/* Video Area (Main + Bottom Bar) */
.video-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

/* Main Video Container (Active Speaker) */
.main-video-container {
  height: 80%;
  position: relative;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0A0A0A;
}

.main-video-container .video-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
}

/* Video Bottom Bar (Thumbnails) */
.video-bottom-bar {
  height: 20%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(20, 20, 20, 0.95) 100%);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 2px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.video-bottom-bar::-webkit-scrollbar {
  height: 6px;
}

.video-bottom-bar::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 3px;
}

.video-bottom-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 3px;
}

.video-bottom-bar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

.video-thumbnail {
  position: relative;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-width: 240px;
  max-width: 240px;
  height: 100%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.video-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.video-thumbnail.active-speaker {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
}

.video-thumbnail .video-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.85) 100%);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(8px);
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Old video grid - kept for backward compatibility but hidden */
.video-grid {
  display: none;
}

@media (max-width: 768px) {
  .video-bottom-bar {
    height: 25%;
  }

  .video-thumbnail {
    min-width: 120px;
    max-width: 120px;
  }

  .main-video-container {
    height: 75%;
  }
}

.video-container {
  position: relative;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.video-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gold-gradient);
  border-radius: var(--border-radius);
  opacity: 0.3;
  z-index: -1;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

#localVideoContainer {
  border-color: var(--primary-color);
}

#localVideoContainer::before {
  opacity: 0.5;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
  min-height: 200px;
  display: block;
}

.video-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.video-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* Sidebar */
.sidebar {
  width: 320px;
  min-width: 320px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.sidebar.hidden {
  transform: translateX(100%);
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(255, 215, 0, 0.05);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

.chat-message {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
  padding: 0.875rem;
  border-radius: 12px;
  border-left: 3px solid transparent;
  animation: slideInLeft 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.chat-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-message:hover::before {
  opacity: 1;
}

.chat-message:hover {
  transform: translateX(4px);
  border-left-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.chat-message.own-message {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-left-color: var(--primary-color);
  margin-left: 2rem;
}

.chat-message.system-message {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
  border-left-color: var(--accent-color);
  text-align: center;
  font-style: italic;
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.chat-username {
  font-weight: 600;
  color: var(--text-gold);
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.2);
  letter-spacing: 0.5px;
}

.chat-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-text {
  color: var(--text-primary);
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-text a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.chat-text a:hover {
  border-bottom-color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.chat-system-text {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.chat-system-text i {
  color: var(--accent-color);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.emoji-picker-container {
  position: relative;
}

.emoji-picker-btn {
  width: 40px;
  height: 40px;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.emoji-picker-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.emoji-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.emoji-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--primary-color);
  transform: scale(1.2);
}

.chat-input input {
  flex: 1;
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
}

.chat-input button[type="submit"] {
  padding: 0.75rem 1rem;
  background: var(--gold-gradient);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Controls Bar */
/* Hide old controls bar - now using overlay */
.controls-bar {
  display: none;
}

.controls-left,
.controls-right,
.controls-center {
  display: none;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.9);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
}

.control-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.control-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.control-btn:hover::before {
  opacity: 0.3;
}

.control-btn.active {
  background: var(--success-color);
  border-color: var(--success-color);
}

.control-btn.danger {
  background: var(--danger-color);
  border-color: var(--danger-color);
}

.control-btn.muted {
  color: var(--danger-color);
  background: rgba(231, 76, 60, 0.2);
}

/* Floating Controls Overlay */
.controls-overlay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.conference-container:hover .controls-overlay:not(.always-visible) {
  opacity: 1;
}

.controls-overlay.always-visible {
  opacity: 1;
}

.controls-overlay .control-btn {
  background: rgba(20, 20, 20, 0.9);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: white;
  width: 56px;
  height: 56px;
  backdrop-filter: blur(5px);
}

.controls-overlay .control-btn:hover {
  background: rgba(255, 215, 0, 0.3);
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.controls-overlay .control-btn.muted {
  background: rgba(231, 76, 60, 0.8);
  border-color: var(--danger-color);
  color: white;
}

.controls-overlay .control-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.controls-overlay .control-btn.danger {
  background: rgba(244, 67, 54, 0.8);
}

.controls-overlay .control-btn.danger:hover {
  background: rgba(198, 40, 40, 0.9);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* Room info overlay */
.room-info-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.conference-container:hover .room-info-overlay {
  opacity: 1;
}

.room-info-overlay.always-visible {
  opacity: 1;
}

/* Participants List */
#participantsList {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--dark-bg);
  border-radius: 8px;
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.participant-info {
  flex: 1;
}

.participant-name {
  font-weight: 600;
}

.participant-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.participant-icons {
  display: flex;
  gap: 0.5rem;
}

.participant-icons i {
  color: var(--text-secondary);
}

.participant-icons i.active {
  color: var(--success-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes goldShine {
  0% {
    background-position: -100%;
  }
  100% {
    background-position: 200%;
  }
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  border-left: 4px solid transparent;
  position: relative;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.notification-enter {
  animation: none;
}

.notification-show {
  opacity: 1;
  transform: translateX(0);
}

.notification-exit {
  opacity: 0;
  transform: translateX(100%);
}

.notification i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-success {
  border-left-color: var(--success-color);
}

.notification-success i {
  color: var(--success-color);
}

.notification-error {
  border-left-color: var(--danger-color);
}

.notification-error i {
  color: var(--danger-color);
}

.notification-warning {
  border-left-color: var(--warning-color);
}

.notification-warning i {
  color: var(--warning-color);
}

.notification-info {
  border-left-color: var(--primary-color);
}

.notification-info i {
  color: var(--primary-color);
}

.notification-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.notification-close:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }

  .sidebar {
    position: absolute;
    right: -100%;
    width: 100%;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .sidebar.show {
    right: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .controls-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .controls-left,
  .controls-right {
    width: 100%;
    justify-content: center;
  }

  /* Mobile: Move controls to top to avoid covering chat */
  .controls-overlay {
    bottom: auto;
    top: 1rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .controls-overlay .control-btn {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  /* Make video thumbnails smaller on mobile */
  .video-thumbnail {
    min-width: 120px !important;
    max-width: 120px !important;
  }

  /* Adjust main video height for mobile */
  .main-video-container {
    height: 65%;
  }

  .video-bottom-bar {
    height: 35%;
  }
}

/* Soundboard */
.soundboard-modal {
  max-width: 600px;
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.sound-btn {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.sound-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%), var(--dark-bg);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.sound-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.sound-btn i {
  font-size: 2rem;
  color: var(--primary-color);
}

.sound-btn span {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .soundboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .sound-btn {
    padding: 1rem 0.75rem;
  }

  .sound-btn i {
    font-size: 1.5rem;
  }
}

/* Sound Notification */
.sound-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  color: var(--primary-color);
  padding: 2rem 3rem;
  border-radius: 20px;
  border: 3px solid var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 10000;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  animation: soundPop 1s ease-out forwards;
}

@keyframes soundPop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(0.95) rotate(-2deg);
  }
  80% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
}

/* Error Messages */
.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Emoji Overlay Animations */
.emoji-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.emoji-reaction {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.85) 100%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-size: 3rem;
  animation: emojiEnter 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100;
}

.emoji-reaction .emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.emoji-reaction .username {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Emoji Entry Animation */
@keyframes emojiEnter {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Emoji Exit Animations */
@keyframes emojiExitFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes emojiExitSlideLeft {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-200px) rotate(-20deg);
  }
}

@keyframes emojiExitSlideRight {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(200px) rotate(20deg);
  }
}

@keyframes emojiExitScaleOut {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(180deg);
  }
}

@keyframes emojiExitBounceOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    transform: translateY(-30px);
  }
  100% {
    opacity: 0;
    transform: translateY(100px) scale(0.5);
  }
}

.emoji-exit-fade {
  animation: emojiExitFade 0.5s ease-out forwards;
}

.emoji-exit-slide-left {
  animation: emojiExitSlideLeft 0.6s ease-out forwards;
}

.emoji-exit-slide-right {
  animation: emojiExitSlideRight 0.6s ease-out forwards;
}

.emoji-exit-scale-out {
  animation: emojiExitScaleOut 0.7s ease-out forwards;
}

.emoji-exit-bounce-out {
  animation: emojiExitBounceOut 0.8s ease-out forwards;
}