:root {
  --primary-color: #3a7bd5;
  --primary-light: #f0f8ff;
  --dark-color: #2d3748;
  --gray-color: #718096;
  --light-gray: #e2e8f0;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #f7fafc;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app-header {
  text-align: center;
  margin-bottom: 2rem;
}

#app-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

#status-message {
  color: var(--gray-color);
  font-size: 0.95rem;
  transition: var(--transition);
}

#controls-area {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-group {
display: flex;
  gap: 1rem;

}

.form-control {
  flex: 1;
  min-width: 50px;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-control::placeholder {
  color: #a0aec0;
}

.btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background-color: #2c5282;
  transform: translateY(-1px);
}

.btn:disabled {
  background-color: var(--light-gray);
  color: var(--gray-color);
  cursor: not-allowed;
  transform: none;
}

#chat-container {
  flex: 1;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

#chat {
  overflow-y: auto;
  padding: 1.5rem;
}

.message {
  margin-bottom: 1rem;
  max-width: 80%;
}

.message.sent {
  margin-left: auto;
  background-color: var(--primary-light);
  border-radius: var(--border-radius) 0 var(--border-radius) var(--border-radius);
  padding: 0.75rem 1rem;
}

.message.received {
  margin-right: auto;
  background-color: #f0f0f0;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  padding: 0.75rem 1rem;
}

.message-header {
  font-size: 0.8rem;
  color: var(--gray-color);
  margin-bottom: 0.25rem;
}

.message-content {
  word-break: break-word;
}

#input-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#message {
  resize: none;
  height: 60px;
}

#app-footer {
  text-align: center;
  color: var(--gray-color);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* QR Code Modal */
#qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 90%;

}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

#qrcode {
  margin: 1rem auto;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.close-modal {
  background-color: var(--light-gray);
  color: var(--dark-color);
}

.copy-link {
  background-color: var(--success-color);
}

.room-info {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 600px) {
 
  #app-header h1 {
    font-size: 1.8rem;
  }
  

}