/* src/pages/MeetingPage.css */
.meeting-page {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}

.meeting-header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #34495e;
  min-height: 60px;
  z-index: 100;
}

.meeting-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.meeting-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.moderator-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.participant-badge {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.jitsi-container {
  flex: 1;
  width: 100%;
  height: calc(100vh - 60px);
  background: #000;
}

/* Loading States */
.meeting-loading,
.meeting-error {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.loading-spinner {
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.meeting-loading h2,
.meeting-error h2 {
  margin: 20px 0 10px;
  font-size: 24px;
  font-weight: 600;
}

.meeting-loading p,
.meeting-error p {
  margin: 10px 0;
  font-size: 16px;
  opacity: 0.9;
}

.error-content {
  padding: 40px;
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-close {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.btn-close:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Jitsi Component Styles */
.jitsi-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.jitsi-container {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

.connection-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s ease;
}

.connection-indicator.connecting {
  background: rgba(243, 156, 18, 0.9);
  color: white;
  animation: pulse 2s infinite;
}

.connection-indicator.connected {
  background: rgba(39, 174, 96, 0.9);
  color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .meeting-header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    min-height: auto;
  }
  
  .meeting-header h3 {
    font-size: 16px;
    text-align: center;
  }
  
  .meeting-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .jitsi-container {
    height: calc(100vh - 80px);
  }
  
  .error-content,
  .loading-content {
    padding: 20px;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .meeting-header {
    padding: 10px;
  }
  
  .meeting-header h3 {
    font-size: 14px;
  }
  
  .meeting-info {
    font-size: 12px;
  }
  
  .moderator-badge,
  .participant-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}
