@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f7f7f7;
  padding: 0 10px;
}
.wrapper{
  background: #fff;
  max-width: 450px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
              0 32px 64px -48px rgba(0,0,0,0.5);
}

/* Login & Signup Form CSS Start */
.form{
  padding: 25px 30px;
}
.form header{
  font-size: 25px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
}
.form form{
  margin: 20px 0;
}
.form form .error-text{
  color: #721c24;
  padding: 8px 10px;
  text-align: center;
  border-radius: 5px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  display: none;
}
.form form .name-details{
  display: flex;
}
.form .name-details .field:first-child{
  margin-right: 10px;
}
.form .name-details .field:last-child{
  margin-left: 10px;
}
.form form .field{
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  position: relative;
}
.form form .field label{
  margin-bottom: 2px;
}
.form form .input input{
  height: 40px;
  width: 100%;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.form form .field input{
  outline: none;
}
.form form .image input{
  font-size: 17px;
}
.form form .button input{
  height: 45px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: #333;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 13px;
}
.form form .field i{
  position: absolute;
  right: 15px;
  top: 70%;
  color: #ccc;
  cursor: pointer;
  transform: translateY(-50%);
}
.form form .field i.active::before{
  color: #333;
  content: "\f070";
}
.form .link{
  text-align: center;
  margin: 10px 0;
  font-size: 17px;
}
.form .link a{
  color: #333;
}
.form .link a:hover{
  text-decoration: underline;
}


/* Users List CSS Start */
.users{
  padding: 25px 30px;
}
.users header,
.users-list a{
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  justify-content: space-between;
}
.wrapper img{
  object-fit: cover;
  border-radius: 50%;
}
.users header img{
  height: 50px;
  width: 50px;
}
:is(.users, .users-list) .content{
  display: flex;
  align-items: center;
}
:is(.users, .users-list) .content .details{
  color: #000;
  margin-left: 20px;
}
:is(.users, .users-list) .details span{
  font-size: 18px;
  font-weight: 500;
}
.users header .logout{
  display: block;
  background: #333;
  color: #fff;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
}
.users .search{
  margin: 20px 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}
.users .search .text{
  font-size: 18px;
}
.users .search input{
  position: absolute;
  height: 42px;
  width: calc(100% - 50px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.users .search input.show{
  opacity: 1;
  pointer-events: auto;
}
.users .search button{
  position: relative;
  z-index: 1;
  width: 47px;
  height: 42px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #333;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}
.users .search button.active{
  background: #333;
  color: #fff;
}
.search button.active i::before{
  content: '\f00d';
}
.users-list{
  max-height: 350px;
  overflow-y: auto;
}
:is(.users-list, .chat-box)::-webkit-scrollbar{
  width: 0px;
}
.users-list a{
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-right: 15px;
  border-bottom-color: #f1f1f1;
}
.users-list a:last-child{
  margin-bottom: 0px;
  border-bottom: none;
}
.users-list a img{
  height: 40px;
  width: 40px;
}
.users-list a .details p{
  color: #67676a;
}
.users-list a .status-dot{
  font-size: 12px;
  color: #468669;
  padding-left: 10px;
}
.users-list a .status-dot.offline{
  color: #ccc;
}

/* Chat Area CSS Start */
.chat-area header{
  display: flex;
  align-items: center;
  padding: 18px 30px;
}
.chat-area header .back-icon{
  color: #333;
  font-size: 18px;
}
.chat-area header img{
  height: 45px;
  width: 45px;
  margin: 0 15px;
}
.chat-area header .details span{
  font-size: 17px;
  font-weight: 500;
}
.chat-box{
  position: relative;
  min-height: 500px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 30px 20px 30px;
  background: #f7f7f7;
  box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
              inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}
.chat-box .text{
  position: absolute;
  top: 45%;
  left: 50%;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.chat-box .chat{
  margin: 15px 0;
}
.chat-box .chat p{
  word-wrap: break-word;
  padding: 8px 16px;
  box-shadow: 0 0 32px rgb(0 0 0 / 8%),
              0rem 16px 16px -16px rgb(0 0 0 / 10%);
}
.chat-box .outgoing{
  display: flex;
}
.chat-box .outgoing .details{
  margin-left: auto;
  max-width: calc(100% - 130px);
}
.outgoing .details p{
  background: #333;
  color: #fff;
  border-radius: 18px 18px 0 18px;
}
.chat-box .incoming{
  display: flex;
  align-items: flex-end;
}
.chat-box .incoming > img{
  height: 35px;
  width: 35px;
}
.chat-box .incoming .details{
  margin-right: auto;
  margin-left: 10px;
  max-width: calc(100% - 130px);
}
.incoming .details p{
  background: #fff;
  color: #333;
  border-radius: 18px 18px 18px 0;
}
.hidden{
  display: none !important;
}
.typing-area{
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,247,247,0.98));
  border-top: 1px solid #ececec;
}
.typing-area .attach-btn{
  color: #333;
  width: 48px;
  height: 48px;
  border: 1px solid #e1e4e8;
  outline: none;
  background: linear-gradient(180deg, #ffffff, #f5f6f8);
  font-size: 18px;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}
.typing-area .attach-btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff, #eef1f5);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.09);
}
.typing-area .message-input-wrap{
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.typing-area .message-row{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 8px 18px rgba(15, 23, 42, 0.04);
}
.typing-area input[type="text"]{
  height: 46px;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 0;
  background: transparent;
}
.typing-area .file-preview{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 240px;
  min-width: 0;
  max-width: 240px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.08);
}
.typing-area .file-name{
  min-width: 0;
  max-width: 170px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.typing-area .clear-file-btn{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.typing-area .clear-file-btn:hover{
  background: #e2e8f0;
  color: #0f172a;
}
.typing-area .send-btn{
  color: #fff;
  width: 52px;
  height: 52px;
  border: none;
  outline: none;
  background: linear-gradient(180deg, #3b3b3b, #232323);
  font-size: 19px;
  cursor: pointer;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}
.typing-area .send-btn.active{
  opacity: 1;
  pointer-events: auto;
}
.typing-area .send-btn.active:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}
.typing-area .voice-btn{
  width: 48px;
  height: 48px;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f5f6f8);
  color: #374151;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}
.typing-area .voice-btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff, #eef1f5);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.09);
}
.typing-area .voice-btn.recording{
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
  animation: voicePulse 1.1s ease-in-out infinite;
}
.recording-hint{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 500;
}
.recording-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
}

@keyframes voicePulse{
  0%, 100%{
    transform: scale(1);
  }
  50%{
    transform: scale(1.03);
  }
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-action,
.chat-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #333;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.header-action:hover,
.chat-action:hover{
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.chat-area header{
  justify-content: space-between;
}
.chat-area header .details{
  flex: 1;
}
.chat-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.incoming-call-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}
.incoming-call-card{
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.incoming-call-avatar img{
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.incoming-call-content{
  flex: 1;
  min-width: 0;
}
.incoming-call-label{
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.incoming-call-name{
  font-size: 18px;
  color: #111827;
  margin-bottom: 4px;
}
.incoming-call-type{
  font-size: 14px;
  color: #475569;
}
.incoming-call-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.incoming-call-actions button{
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.incoming-call-reject{
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
}
.incoming-call-accept{
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.22);
}
.incoming-call-actions button:hover{
  transform: translateY(-1px);
}

.call-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}
.call-shell{
  width: 100%;
  max-width: 920px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}
.call-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7ebf0;
}
.call-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #111827;
  background: #f4f6f8;
}
.call-peer{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.call-peer img{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.call-peer-meta{
  min-width: 0;
}
.call-peer-meta h2{
  font-size: 20px;
  color: #111827;
}
.call-status{
  font-size: 14px;
  color: #64748b;
}
.call-timer{
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4f6f8;
}
.call-stage{
  position: relative;
  flex: 1;
  min-height: 470px;
  background: linear-gradient(180deg, #141821, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.call-stage video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}
.call-stage .local-video{
  width: 180px;
  height: 240px;
  inset: auto 20px 20px auto;
  z-index: 2;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}
.call-stage .remote-video{
  z-index: 1;
}
.voice-placeholder{
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
}
.call-shell.voice-mode .voice-placeholder{
  display: flex;
}
.call-shell.voice-mode .remote-video,
.call-shell.voice-mode .local-video{
  display: none;
}
.voice-avatar{
  width: 140px;
  height: 140px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.05);
}
.voice-avatar img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.voice-placeholder h3{
  font-size: 24px;
}
.voice-label{
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.call-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}
.control-btn{
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  background: #3b3b3b;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.control-btn:hover{
  transform: translateY(-1px);
}
.control-btn.active{
  background: #0f172a;
}
.end-call-btn{
  background: linear-gradient(180deg, #ef4444, #dc2626);
}
.end-call-btn:hover{
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

.calls-page{
  max-width: 560px;
}
.calls-wrapper{
  padding: 25px 30px;
}
.calls-header{
  justify-content: space-between;
}
.calls-header .details p{
  color: #6b7280;
  margin-top: 2px;
}
.calls-list{
  max-height: 520px;
  overflow-y: auto;
  padding-top: 16px;
}
.call-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef1f5;
  margin-bottom: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.call-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.call-item img{
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.call-item-details{
  flex: 1;
  min-width: 0;
}
.call-item-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.call-item-top span{
  font-weight: 600;
  color: #111827;
}
.call-item-details p{
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}
.call-status-tag{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
}
.call-status-tag.missed{
  background: #fee2e2;
  color: #b91c1c;
}
.call-status-tag.rejected{
  background: #ffe4e6;
  color: #be123c;
}
.call-status-tag.active{
  background: #dcfce7;
  color: #166534;
}
.call-status-tag.ended{
  background: #e5e7eb;
  color: #374151;
}
.empty-calls{
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
}

.chat-box .details p{
  margin-bottom: 8px;
}
.chat-attachment{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.chat-attachment.image-attachment img{
  display: block;
  max-width: 240px;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}
.chat-attachment.file-attachment{
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: inherit;
}
.outgoing .chat-attachment.file-attachment{
  background: rgba(255, 255, 255, 0.12);
}
.chat-attachment.file-attachment i{
  font-size: 22px;
}
.chat-attachment.file-attachment .file-meta{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-attachment.file-attachment .file-meta span{
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}
.chat-attachment.file-attachment .file-meta small{
  font-size: 12px;
  opacity: 0.75;
}
.chat-attachment.audio-attachment{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(320px, 100%);
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.outgoing .chat-attachment.audio-attachment{
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.chat-attachment.audio-attachment .audio-meta{
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-attachment.audio-attachment .audio-meta i{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 16px;
}
.outgoing .chat-attachment.audio-attachment .audio-meta i{
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.chat-attachment.audio-attachment .audio-copy{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-attachment.audio-attachment .audio-copy span{
  font-weight: 600;
  font-size: 14px;
}
.chat-attachment.audio-attachment .audio-copy small{
  font-size: 12px;
  opacity: 0.75;
}
.chat-attachment.audio-attachment audio{
  width: 100%;
  height: 36px;
}
.chat-attachment.audio-attachment .audio-download{
  font-size: 12px;
  color: #2563eb;
  text-decoration: underline;
}
.outgoing .chat-attachment.audio-attachment .audio-download{
  color: #dbeafe;
}

@media screen and (max-width: 768px) {
  body{
    display: block;
    min-height: 100dvh;
    padding: 0;
    background: #ffffff;
  }
  .wrapper{
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .form,
  .users,
  .chat-area{
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .chat-area{
    overflow: hidden;
  }
  .users header,
  .chat-area header{
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .users-list{
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .chat-box{
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .typing-area{
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .calls-list{
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .call-shell{
    min-height: 100dvh;
    border-radius: 0;
  }
}

/* Responive media query */
@media screen and (max-width: 450px) {
  .form, .users{
    padding: 20px;
  }
  .form header{
    text-align: center;
  }
  .form form .name-details{
    flex-direction: column;
  }
  .form .name-details .field:first-child{
    margin-right: 0px;
  }
  .form .name-details .field:last-child{
    margin-left: 0px;
  }

  .users header img{
    height: 45px;
    width: 45px;
  }
  .users header .logout{
    padding: 6px 10px;
    font-size: 16px;
  }
  :is(.users, .users-list) .content .details{
    margin-left: 15px;
  }

  .users-list a{
    padding-right: 10px;
  }

  .chat-area header{
    padding: 15px 20px;
  }
  .chat-box{
    min-height: 400px;
    padding: 10px 15px 15px 20px;
  }
  .chat-box .chat p{
    font-size: 15px;
  }
  .chat-box .outogoing .details{
    max-width: 230px;
  }
  .chat-box .incoming .details{
    max-width: 265px;
  }
  .chat-box .incoming > img{
    height: 30px;
    width: 30px;
  }
  .chat-area form{
    padding: 20px;
  }
  .typing-area{
    gap: 8px;
    padding: 12px 14px 16px;
  }
  .typing-area .attach-btn{
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 12px;
  }
  .typing-area input[type="text"]{
    height: 42px;
    font-size: 15px;
  }
  .typing-area .message-row{
    min-height: 44px;
    border-radius: 14px;
    padding: 0 12px;
    gap: 8px;
  }
  .typing-area .file-preview{
    padding: 5px 6px 5px 10px;
    flex-basis: 170px;
    max-width: 170px;
  }
  .typing-area .file-name{
    max-width: 110px;
  }
  .typing-area .clear-file-btn{
    width: 26px;
    height: 26px;
  }
  .typing-area .send-btn{
    width: 44px;
    height: 44px;
    font-size: 17px;
    border-radius: 12px;
  }
  .typing-area .voice-btn{
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .chat-attachment.image-attachment img{
    max-width: 210px;
  }
  .header-actions{
    gap: 8px;
  }
  .header-action,
  .chat-action{
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .call-shell{
    min-height: 100vh;
    border-radius: 0;
  }
  .call-topbar{
    padding: 14px 14px;
  }
  .call-peer img{
    width: 44px;
    height: 44px;
  }
  .call-peer-meta h2{
    font-size: 18px;
  }
  .call-stage{
    min-height: 360px;
  }
  .call-stage .local-video{
    width: 110px;
    height: 160px;
    inset: auto 12px 12px auto;
  }
  .call-controls{
    gap: 10px;
    padding: 14px;
  }
  .control-btn{
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .voice-avatar{
    width: 108px;
    height: 108px;
  }
  .voice-placeholder h3{
    font-size: 20px;
  }
  .calls-wrapper{
    padding: 18px;
  }
  .call-item{
    gap: 12px;
    padding: 12px;
  }
  .call-item img{
    width: 42px;
    height: 42px;
  }
  .call-item-top{
    align-items: flex-start;
    flex-direction: column;
  }
}
