/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f7fa;
  color: #333;
  min-height: 100vh;
}

/* ----------- Shared Form Style (Login, Register) ----------- */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.auth-container h2 {
  margin-bottom: 20px;
  text-align: center;
}

.auth-container input,
.auth-container button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.auth-container button {
  background-color: #3498db;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-container button:hover {
  background-color: #2980b9;
}

.auth-container a {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #3498db;
}

/* ----------- Dashboard Layout ----------- */
.dashboard {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #2c3e50;
  color: #fff;
  padding: 20px;
}

.sidebar h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

#userList div {
  background: #34495e;
  margin: 6px 0;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

#userList div:hover {
  background: #1abc9c;
}

/* Main section */
.main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#chatWindow {
  flex: 1;
  background: #ecf0f1;
  padding: 10px;
  border-radius: 5px;
  overflow-y: auto;
  margin-bottom: 10px;
}

/* Chat input */
#chatInput {
  padding: 10px;
  width: calc(100% - 120px);
  border-radius: 5px;
  border: 1px solid #ccc;
}

.call-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons */
button {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #2980b9;
}

button.red {
  background-color: #e74c3c;
}

button.red:hover {
  background-color: #c0392b;
}

/* Video Elements */
video {
  width: 300px;
  height: 200px;
  background: #000;
  border-radius: 5px;
  object-fit: cover;
}

.video-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Incoming Call Modal */
#incomingCall {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  text-align: center;
}

#incomingCall button {
  margin: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.message {
  background-color: #f0f8ff;
  padding: 10px;
  border: 1px solid #b0c4de;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}

.message a {
  color: #007bff;
  text-decoration: none;
}

.message a:hover {
  text-decoration: underline;
}

