:root {
    --primary-color: #000000;
    --secondary-color: #C5DF7C;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --white-bg: #ffffff;
    --active-color: #2c3e50;
    --blackgray-color: #3b3b3b;
}
@font-face {
    font-family: 'SnappWeblight';
    src: url(../fonts/web/SnappWeb2.0-Light.woff) format('woff');
}

* {
    box-sizing: border-box;
    font-family: 'SnappWeblight';
  }
  
  body {
    margin: 0;
    background-color: #e7e7e7;
    direction: rtl;
  }
  
  .fa-bars:before, .fa-navicon:before{
    color: #c5df7c;
  }
  
  header {
    display: flex;
    justify-content: space-between; /* لوگو سمت چپ، منو سمت راست */
    align-items: center;
    padding: 10px 20px;
    background-color: #2f2f2f; /* رنگ اصلی */
    color: #ffffff; /* رنگ مکمل تیره برای متن */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #c5df7c; /* رنگ متن لوگو */
  }
  
  .menu-toggle {
    font-size: 1.8rem;
    color: #c5df7c; /* رنگ آیکون منو */
  }
  
  
  .sidebar {
    position: fixed;
    top: 50px;
    right: -280px;
    width: 280px;
    height: calc(100% - 50px);
    background-color: #F0F6E9; /* رنگ روشن مکمل */
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 999;
    color: #2E3A23; /* رنگ متن */
  }
  
  .menu-item:hover {
    background-color: #A4BF5D; /* رنگ مکمل متوسط برای هاور */
    color: #fff;
  }
  
  .logout-btn {
    margin-top: auto;
    background-color: #ff0000; /* رنگ مکمل تیره‌تر */
    border: none;
    color: white;
    padding: 12px 0;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
  }
  
  .logout-btn:hover {
    background-color: #2f2f2f; 
    color: #A4BF5D;
  }
  
  
  .sidebar.active {
    right: 0;
  }
  
  .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .user-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
  }
  
  .edit-icon {
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .edit-icon:hover {
    color: #007bff;
  }
  
  .menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
  }
  
  .menu-item i {
    font-size: 1.3rem;
    min-width: 20px;
    text-align: center;
  }
  

  

  
  .main-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 90px;
    background-color: #2f2f2f;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0 10px;
}
    
@media (max-width: 480px) {
            
    .main-footer {
        height: 80px;
    }
    
    .footer-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .main-action {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin-top: -30px;
    }
}
.footer-icon {
    color: var(--white-bg);
    font-size: 19px!important;
    transition: all 0.3s;
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.footer-icon:hover, 
.footer-icon.active {
    color: var(--secondary-color);
    transform: scale(1.1);
}
.main-action:hover, 
.main-action.active {
    background-color: var(--secondary-color);
    color: var(--active-color);
    transform: scale(1.15);
}


.alarm-icon {
    animation: pulse 1.5s infinite;
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.main-action {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: white;
    font-size: 30px;
    margin-top: -35px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.5);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.menu-item.active {
    background-color: var(--secondary-color);
    color: #2f2f2f;
  }
  .menu-item.active i {
    color: #2f2f2f;
  }
  

  .main-content {
    margin-top: 60px;
    margin-bottom: 100px;
    padding: 20px;
  }
  
  .tab-content {
    display: none;
    text-align: center;
  }
  
  .tab-content.active {
    display: block;
  }
  

  
  @keyframes pulse-ptt {
    0% {
      box-shadow: 0 0 0 0 rgba(197, 223, 124, 0.7);
    }
    70% {
      box-shadow: 0 0 0 30px rgba(197, 223, 124, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(197, 223, 124, 0);
    }
  }
  

  .ptt-container {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .ptt-title-box {
    margin-bottom: 35px;
    background: #c5df7c;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    animation: fadeIn 0.6s ease-in-out;
    margin: auto;
    width: 200px;
  }
  
  .ptt-title {
    font-size: 1rem;
    font-weight: bold;
    color: #2f2f2f;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
  }
  
  /* ویژوالایزر */
  .ptt-visualizer {
    position: relative;
    width: 220px;
    height: 220px;
  }
  
  .ptt-timer {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #2f2f2f;
    color: #c5df7c;
    padding: 18px 5rem;
    letter-spacing: 6px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
    transition: all 0.3s ease-in-out;
    z-index: 4;
  }
  .ptt-visualizer.recording .ptt-timer {
    display: block;
    animation: pulseTimer 1.2s infinite;
  }
  @keyframes pulseTimer {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
.ptt-circle i{
    color: #2f2f2f;
    font-size: 36px;
	    position: relative;
    display: block;
    right: 3%;
}
  .ptt-circle {
    width: 250px;
    height: 250px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 3;
    border:9px solid var(--blackgray-color);
  }
  
  .ptt-visualizer.recording .ptt-circle {
    background-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
  }
  
  #ptt-button.active .fa-microphone {
    display: none; 
  }


  .wave {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: none;
    z-index: 1;
  }
  
  .wave1 { width: 230px; height: 230px; }
  .wave2 { width: 240px; height: 240px; }
  .wave3 { width: 250px; height: 250px; }
  
  .ptt-visualizer.recording .wave {
    animation: pulseWave 1.5s infinite;
    opacity: 1;
  }
  
  @keyframes pulseWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
  }
  

  


  .sound-wave {
    position: relative;
    width: 20px;
    height: 24px;
  }

  .bar {
    position: absolute;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    border-radius: 2px;
    animation: pulse 1.2s infinite ease-in-out;
    transform-origin: bottom center;
  }

 
  .bar1 {
    left: 0;
    height: 10px;
    animation-delay: 0s;
  }
  .bar2 {
    left: 12px;
    height: 16px;
    animation-delay: 0.2s;
  }
  .bar3 {
    left: 24px;
    height: 12px;
    animation-delay: 0.4s;
  }


  .sound-wave {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #ptt-button.active .sound-wave {
    opacity: 1;
  }


/* لیست پیام‌ها با بک گراند */
.messages-list {
  max-height: 500px;
  overflow-y: auto;
  background-color: #ffffff;
  background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  box-sizing: border-box;
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 10px 20px;
  border-radius: 12px;
}

/* پیام تکی */
.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.message img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
    border: 3px solid #c5df7c;
}

.message-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 75%;
}

.message-content .text {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.message-content .time {
  font-size: 12px;
  color: #888;
  text-align: left;
}

/* باکس ارسال پیام */
.send-message-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  position: relative;
}

/* دکمه‌های ایموجی و اتچ */
.send-message-box .emoji-btn,
.send-message-box .attach-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.send-message-box .emoji-btn:hover,
.send-message-box .attach-btn:hover {
  opacity: 1;
}

/* باکس ورودی */
#messageInput {
  flex: 1;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s;
}

#messageInput:focus {
  border-color: #00a8ff;
}

/* دکمه ارسال */
.send-message-box button:last-child {
    background-color: #2f2f2f;
    color: #c5df7c;
      border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.send-message-box button:last-child:hover {
  background-color: #0090dd;
}

/* اسکرول زیبا برای پیام‌ها */
.messages-list::-webkit-scrollbar {
  width: 6px;
}

.messages-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.calls-list { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 10px; }
.call-item {
    display: flex; align-items: center; justify-content: space-between;
    background: #2f2f2f; width: 100%; padding: 10px; margin: 5px 0;
    border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
.call-icon { font-size: 20px; color: lightgreen; margin: 0 10px; }
.call-info { flex-grow: 1; text-align: right; }
.call-info strong { display: block; font-size: 16px; color: white; }
.call-info span { font-size: 14px; color: #c5df7c; }
.call-time { font-size: 14px; color: #ffffff; margin-left: 10px; }



.contacts-list {
    max-width: 400px;
    margin: 20px auto;
    font-family: "IRANSans", Tahoma, sans-serif;
  }
  
  .contact-item {
    border-bottom: 1px solid #ddd;
    background: #2f2f2f;
    border-radius: 16px;
    color: #ffffff;
    margin-bottom: 0.5rem;
  }
  
  .contact-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    gap: 10px;
    transition: background-color 0.3s ease;
    user-select: none;
  }
  

  
  .contact-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5df7c;
  }
  
  .contact-header .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 28px;
    color: #ffffff;
    position: relative;
    right: 45%;
  }
  
  .contact-item.active .contact-header .arrow {
    transform: rotate(180deg);
  }
  
  .contact-actions {
    max-height: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 10px;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  
  .contact-item.active .contact-actions {
    max-height: 60px; 
    padding: 10px;
    background: #c5df7c;
  }
  
  .contact-actions button {
    background-color: #2f2f2f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    /* cursor: pointer; */
    font-size: 12px;
    transition: background-color 0.3s ease;
    font-weight: 900;
    margin: auto;
  }
  
  .contact-actions button:hover {
    background-color: #ffffff;
    color: #2f2f2f;  }
  
  .contact-item span{
font-weight: 900;
font-size: 16px;
  }
  .contact-actions i{
    margin-left: 3px;
    font-size: 17px;
    padding: 3px 10px;
    margin-bottom: 3px;
    color: #ffffff;
  }

  .add-channel-btn {
    position: fixed;
    bottom: 6rem;
    left: 20px;
    background: #c5df7c;
    color: #2f2f2f;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}
.add-channel-btn:hover {
    background: #2f2f2f;
    color: #c5df7c;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #c5df7c;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}
.modal-content h2 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ffffff;
    font-size: 16px;
    padding-bottom: 0.5rem;
}
.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid white;
    border-radius: 5px;
    background: white;
    color: black;
    outline: none;
    font-weight: 900;
}
.modal-content button {
    background: #171717;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.modal-content button:hover {
    background: #171717;
}

.channel-list {
    padding: 20px;
}
.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #2f2f2f;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.channel-item:hover {
    background: #333;
}
.channel-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #c5df7c;
}
.channel-info {
    flex-grow: 1;
}
.channel-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    text-align: right;
    color: #c5df7c;
}
.channel-info p {
    font-size: 14px;
    color: #ffffff;
    text-align: right;
}


.channel-item i{
    margin-right: 6px;
    color: #ffffff;
}
.play-icon i{
    color: #c5df7c;
}
.call-icon i{
    color: #c5df7c;
}

.swal2-title img{
    border: 6px solid #c5df7c;
}
.swal2-confirm{
    background: #2f2f2f!important;
}
.swal2-title h3{
    font-size: 16px;
    color: #000000;
    font-weight: 900;
    margin: 0;
    padding: 0;
}
.swal2-title p{
    font-size: 16px;
     color: #2f2f2f;
    font-weight: 900;
    margin: 0;
    padding: 0;
}
.swal2-title{
    font-size: 16px;
}



  #map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    margin-top: 2rem;
  }

  .swal2-show h2{
    display: block;
    background: #c5df7c;
    padding-bottom: 1rem;
    font-weight: 900;
    font-size: 21px;
  }
@media (max-width: 600px) {
  .swal2-popup {
    font-size: 14px;
  }
  .swal2-input, .swal2-textarea {
    font-size: 14px;
    padding: 8px 10px;
  }
}

.swal2-textarea {
  min-height: 100px;
  resize: vertical;
}