/* ============================================
   Page Layout
============================================ */
body {
  margin: 0;
  padding: 0;

  background: linear-gradient(135deg,#eef1f4,#e3e8ee);

  font-family: "Segoe UI", Roboto, Arial, sans-serif;

  display: flex;
  flex-direction: column;   /* IMPORTANT */
  align-items: center;      /* center horizontally */
  min-height: 100vh;
}

/* ============================================
   Main App Card
============================================ */
.voice-chat-section {

  width: 100%;
  max-width: 360px;
  min-width: 280px;

  margin-top: 50px;
  padding: 20px;

  background: white;

  border-radius: 16px;

  border: 1px solid #e6e8ec;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);

  box-sizing: border-box;
}

/* ============================================
   Call Status Bar
============================================ */
.call-status {

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 2px 10px 2px;

  font-size: 13px;
  font-weight: 600;

  color: #6b7280;
}

#callStatusText {
  color: #dc3545;
}

#callTimer {
  font-family: monospace;
}

/* ============================================
   Controls Row
============================================ */
.voice-controls {

  display: flex;
  gap: 10px;

  margin-bottom: 8px;
}

/* ============================================
   Buttons
============================================ */
.tool-btn {

  flex: 1;

  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 10px;
  border: none;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.18s ease;
}

/* Icons */
.tool-btn i {
  font-size: 14px;
}

/* Call Button */
#callBtn {
  background: #28a745;
  color: white;
}

/* Hangup */
#hangUpBtn {
  background: #dc3545;
  color: white;
}

/* Mic */
#muteBtn {
  background: #28a745;
  color: white;
}

/* Mic States */
#muteBtn.mic-off {
  background: #dc3545;
}

/* Hover */
.tool-btn:hover {

  transform: translateY(-1px);

  box-shadow:
  0 5px 10px rgba(0,0,0,0.12);
}

/* Click */
.tool-btn:active {
  transform: scale(0.96);
}

/* ============================================
   Input
============================================ */
.control-row input {

  width: 100%;
  height: 42px;

  padding: 0 12px;

  border-radius: 10px;

  border: 1px solid #d6d9dc;

  font-size: 14px;

  background: #fafafa;

  transition: all 0.2s ease;

  box-sizing: border-box;
}

.control-row input:focus {

  border-color: #28a745;

  background: white;

  box-shadow: 0 0 0 2px rgba(40,167,69,0.15);

  outline: none;
}

/* ============================================
   Active Speakers
============================================ */
.active-speakers {
  
 flex-direction: row;

 align-items: center;

 justify-content: space-between;

  margin-top: 16px;

  padding: 12px;

  background: #f8f9fb;

  border-radius: 12px;

  border: 1px solid #e4e6eb;
}

/* Label */
.speaker-label {

  font-size: 13px;
  font-weight: 600;

  color: #6b7280;

  margin-bottom: 8px;

  display: flex;
  align-items: center;
  gap: 6px;
}

/* Avatar container */
.speaker-avatars {
    font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
  gap: 6px;
}

/* Avatar */
.speaker-avatar {

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background: #28a745;

  color: white;

  font-weight: bold;
  font-size: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Speaking indicator */
.speaker-avatar.speaking {

  box-shadow:
    0 0 0 3px rgba(40,167,69,0.25),
    0 0 12px rgba(40,167,69,0.6);
}

/* ============================================
   Hidden
============================================ */
#userFolder {
  display: none;
}

/* ============================================
   Mobile
============================================ */
@media (max-width:480px){

.voice-chat-section{
max-width:340px;
margin-top:25px;
}

.tool-btn{
height:44px;
}

}

/* ============================================
Network Connection SECTION
============================================ */



.status {
    margin: 5px auto;
    padding: 8px 12px;
    border-radius: 0%;
    font-weight: bold;
    display: block;
    font-size: 0.8rem;
    text-align: center;
}

.online {
    background-color: #0f0;
    color: #000;
}

.offline {
    background-color: #f00;
    color: #fff;
}

#logoff {
    background: transparent;
    border: 2px solid #f56565;
    color: #f56565;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

#logoff:hover {
    background: #f56565;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245,101,101,0.3);
}
