body {
  font-family: sans-serif;
  text-align: center;
  background: #f2f2f2;
  padding: 2rem;
}

input, button {
  padding: 0.5rem;
  margin: 0.5rem;
}

.video-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

video {
  width: 45%;
  border: 2px solid #333;
  border-radius: 8px;
}


.button {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.button:hover {
  background-color: #2980b9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

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

.header nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #3498db;
  font-weight: bold;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.sidebar {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.user-list li {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.videochat-area {
  flex: 2 1 600px;
}

.video-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

video {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 2px solid #ccc;
}

.end-button {
  background-color: #e74c3c;
  color: white;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.chat-box {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.chat-messages {
  height: 150px;
  overflow-y: auto;
  background: #fff;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
}

.incoming-call {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
}
