:root {
  --white-color: #fff;
  --bleck-color: #000;
  --text-color: #410e0b;
  --icons-color: #8c1d18;
  --bg-off: #e3e3e3;
  --bg-present: #a8c7fa;
  --bg-cemera-off: #f9dedc;
  --main-gradient: linear-gradient(135deg, #232526 0%, #414345 100%);
  --toolbar-bg: rgba(30, 30, 30, 0.95);
  --toolbar-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.main {
  position: relative;
  background: var(--main-gradient);
  height: 100vh;
  color: var(--white-color);
  min-height: 100vh;
}

.home-screen {
  font-family: Arial, sans-serif;
  height: calc(100vh - 120px);
  display: flex;
  row-gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  padding-bottom: 0;
  background: transparent;
}
.home-screen-two {
  padding-inline: 100px;
}
.screen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: rgba(255,255,255,0.01);
  transition: background 0.3s;
}

.sidebar {
  width: 260px;
  background: rgba(30,30,30,0.92);
  color: var(--white-color);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 24px 12px;
  margin-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hide-screen {
  display: none;
}
.screen-grid-v1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background-color: transparent;
}
.screen-grid-1-user {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  background-color: transparent;
}
.screen-grid-spcial {
  grid-template-columns: repeat(2, 1fr);
}
.screen-grid-v2 {
  grid-template-columns: repeat(5, 1fr);
  flex-direction: row-reverse;
}
.screen-grid-v3 {
  grid-template-columns: repeat(6, 1fr);
}

.user .local-gest,
.screen .gest {
  background-color: transparent;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  position: relative;
  flex-grow: 1;
}

.gest, .local-gest {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.2s;
}
.gest:hover, .local-gest:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.gest .guest-name, .local-gest .guest-name {
  background-color: var(--bg-off);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.gest .guest-avatar,
.local-gest .guest-avatar {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-off);
}
.user {
  position: absolute !important;
  inset-block-start: 10px;
  inset-inline-start: 30px;
  width: 250px;
  height: 160px;
  background-color: var(--bg-off);
  border-radius: 16px;
}
.not-user {
  position: static !important;
  width: 100%;
  height: 100%;
}
.only-user {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-hide {
  display: none;
}

.meeting-screen {
  background-color: var(--bleck-color);
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  row-gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.meeting-screen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meeting-toolbar {
  font-family: Arial, sans-serif;
  height: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px;
  background: var(--toolbar-bg);
  box-shadow: var(--toolbar-shadow);
  border-radius: 24px 24px 0 0;
  z-index: 10;
}

.meeting-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 30px;
}

.meeting-toolbar-right button {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  border-radius: 40%;
  cursor: pointer;
}

.meeting-toolbar-right button img {
  width: 30px;
  height: 30px;
}

.meeting-toolbar-right button .user-count {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-end: 1px;
  background-color: #515253;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meeting-toolbar-left {
  display: flex;
  align-items: center;
}

.meeting-toolbar-left a {
  text-decoration: none;
  color: var(--white-color);
  font-weight: bold;
  padding-inline: 20px;
  border-right: 2px solid var(--white-color);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
}

.meeting-toolbar-left a:last-child {
  border-right: none;
  padding-inline-end: 0;
}

.meeting-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.meeting-toolbar-center button {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333537;
  border: none;
  box-shadow: none;
  outline: none;
  border-radius: 50%;
  cursor: pointer;
}

.meeting-toolbar-center button img {
  width: 30px;
  height: 30px;
}
.meeting-toolbar-center .mic img {
  height: 60px;
  width: 35px;
}

.meeting-toolbar-center button.btn-active {
  background-color: var(--bg-cemera-off);
  border-radius: 16px;
}

.meeting-toolbar-center button.btn-sharing {
  background-color: var(--bg-present);
  border-radius: 16px;
}

.meeting-toolbar-center button.btn-screen {
  width: 68px;
}

.meeting-toolbar-center button,
.meeting-toolbar-center button.btn-active,
.meeting-toolbar-center button.btn-sharing {
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.meeting-toolbar-center button:hover {
  background: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transform: translateY(-2px) scale(1.05);
}

.meeting-toolbar-center button:active {
  background: #222;
  transform: scale(0.97);
}

.gest,
.local-gest {
  position: relative;
}

.mic-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 4px;
}

#localUser {
  width: 120px; /* Adjust as needed */
  height: 120px; /* Adjust as needed */
  overflow: hidden;
  border-radius: 8px;
  background: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#localVideoContainer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

#localVideoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.local-user-border {
  border: 4px solid #4caf50 !important; /* Green border for local user */
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}


.modal-content {
  border-radius: 16px !important;
  height: 250px;
}
.modal-body p {
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
}
.modal-footer .btn {
  border: 0;
  box-shadow: none;
  outline: none;
  font-weight: 500;
  background-color: rgb(221 39 38);
  padding-inline: 40px;
  padding-block: 9px;
}

.modal-footer .btn:hover,
.modal-footer .btn:focus {
  background-color: rgb(221 39 38 / 0.8);
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

@media (max-width: 900px) {
  .home-screen {
    flex-direction: column;
    padding: 8px;
  }
  .sidebar {
    display: none;
  }
  .meeting-toolbar {
    height: 80px;
    border-radius: 18px 18px 0 0;
    padding: 0 6px;
  }
  .screen {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .main {
    padding: 0;
  }
  .meeting-toolbar {
    height: 60px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
  }
  .screen {
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .gest .guest-name, .local-gest .guest-name {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }
  
  .remaining-card {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.2s;
  }
  
  .remaining-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  }
  
  .remaining-text {
    background-color: #333;
    color: #fff;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
  }

}

/* Hold Call Overlay Styles */
.hold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px); /* Exclude toolbar height */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 50; /* Above video content, below toolbar */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Allow toolbar interaction */
}

.hold-message {
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hold-message h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 1px;
}