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

body {
  font-family: Inter, Arial, sans-serif;
  background: #0d0f14;
  color: #fff;
  min-height: 100vh;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  width: 270px;
  background: #151821;
  border-right: 1px solid #242834;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 40px;
}

.section-title {
  color: #7d8494;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 10px 12px;
}

.rooms {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.room {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  color: #aeb4c2;
  background: transparent;
  text-align: left;
  transition: .2s;
}

.room:hover {
  background: #202430;
  color: white;
}

.room.active {
  background: #5b5cf0;
  color: white;
}

.room b {
  margin-left: auto;
  font-size: 12px;
  opacity: .6;
}

/* Profile */

.profile {
  margin-top: auto;
  background: #1d2029;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile strong {
  display: block;
  font-size: 14px;
}

.profile small {
  color: #6ee7a0;
  font-size: 11px;
}

.profile button {
  margin-left: auto;
  background: none;
  color: #858b9a;
  font-size: 18px;
}

/* Avatar */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #6366f1;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.avatar.big {
  width: 90px;
  height: 90px;
  font-size: 30px;
}

.avatar.blue {
  background: #0ea5e9;
}

.avatar.purple {
  background: #a855f7;
}

/* Main */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header {
  height: 82px;
  border-bottom: 1px solid #242834;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.header h1 {
  font-size: 20px;
  margin-bottom: 4px;
}

.header span {
  color: #777e8d;
  font-size: 13px;
}

.invite {
  padding: 10px 16px;
  border-radius: 9px;
  background: #222632;
  color: #fff;
}

.invite:hover {
  background: #2b3040;
}

/* Participants */

.participants {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  padding: 40px;
}

.user {
  width: 160px;
  height: 180px;
  border-radius: 16px;
  background: #171a22;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.user.speaking {
  border-color: #55d68a;
  box-shadow: 0 0 25px rgba(85, 214, 138, .15);
}

.user span {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 14px;
}

/* Connection */

.connection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7f8798;
  font-size: 13px;
  padding: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42d982;
  box-shadow: 0 0 8px #42d982;
}

/* Controls */

.controls {
  height: 100px;
  border-top: 1px solid #242834;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.control,
.leave {
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #20242e;
  color: #fff;
  transition: .2s;
}

.control span,
.leave span {
  margin-left: 6px;
}

.control:hover {
  background: #2a2f3c;
}

.control.active {
  background: #e5484d;
}

.leave {
  background: #e5484d;
}

.leave:hover {
  background: #f15a5f;
}

/* Mobile */

@media (max-width: 700px) {
  .sidebar {
    width: 200px;
  }

  .participants {
    flex-wrap: wrap;
    gap: 15px;
  }

  .user {
    width: 130px;
    height: 150px;
  }

  .avatar.big {
    width: 70px;
    height: 70px;
  }

  .header {
    padding: 0 15px;
  }

  .controls {
    flex-wrap: wrap;
    height: auto;
    padding: 15px;
  }
}
