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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.App {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
}

/* Full screen mode when in video call */
.App.in-call {
  height: 100vh;
  overflow: hidden;
}

/* Header Styles */
.App-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.header-content p {
  color: #666;
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.join-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

/* Name Input */
.name-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.name-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Rooms Grid */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.room-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 5px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.room-card.selected {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.room-icon {
  font-size: 2rem;
}

.room-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.room-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.room-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Join Button */
.join-button {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.join-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.join-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.app-footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Call Header (when in call) */
.call-header {
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.call-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.room-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.room-info .room-icon {
  font-size: 1.8rem;
}

.room-info h2 {
  color: #333;
  font-size: 1.5rem;
}

.leave-button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.leave-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* Video Container */
.video-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
  background: #000;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
  border: none;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.8rem;
  }

  .join-form {
    padding: 2rem;
  }

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

  .call-header .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .room-info h2 {
    font-size: 1.2rem;
  }
}
