@font-face {
    font-family: 'SnappWeblight';
    src: url(../fonts/web/SnappWeb2.0-Regular.woff) format('woff');
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'SnappWeblight'; }
body { font-family: 'SnappWeblight'; direction: rtl; text-align: center; background: #121212; color: white; overflow-x: hidden; }
.header {
    display: flex; justify-content: space-between; align-items: center;
    background: #1c1c1c; color: white; padding: 10px 20px;
}
.user-info { display: flex; align-items: center; }
.user-info img { width: 40px; border-radius: 50%; margin-left: 10px; }
.status { width: 10px; height: 10px; background: #00ff00; border-radius: 50%; margin-left: 5px; }
.menu { position: relative; cursor: pointer; }
.menu-content {
    display: none; position: absolute; left: 0; background: #1c1c1c; color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: 5px; padding: 10px;width: 150px;z-index: 9999;
}
.menu-content div { padding: 5px 10px; cursor: pointer; }
.menu-content div:hover { background: #333; }

.container {
    display: flex; width: 100%; transition: transform 0.4s ease-in-out;
}
.tab-content { 
    width: 100vw; flex-shrink: 0; padding: 20px; min-height: 80vh; 
    display: none; 
}
.tab-content.active {
    display: block; 
}
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1c1c1c; display: flex; justify-content: space-around; align-items: center;
    padding: 10px 0; border-top: 2px solid #444;
}
.nav-item {
    flex: 1; text-align: center; cursor: pointer; padding: 10px; font-size: 12px;
    transition: all 0.3s; position: relative;
}
.nav-item.active {
    color: orange;
}
.nav-item.active::after {
    content: ""; position: absolute; bottom: -5px; left: 50%;
    width: 8px; height: 8px; background: orange; border-radius: 50%;
    transform: translateX(-50%);
}

.ptt-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 80vh;
}

.timer { margin-top: 20px; font-size: 20px; visibility: hidden; }

.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: #1c1c1c; 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: gray; }
.call-time { font-size: 14px; color: gray; margin-left: 10px; }

.play-icon {
    font-size: 24px;
    cursor: pointer;
    color: orange;
}
.play-icon.play-true i {
    color: lime; 
}
.fa-solid, .fas {
    font-size: 24px;
}
.user-actions .fa-solid, .fas {
    font-size: 16px;
}

.messages-list {
    scrollbar-width: thin; 
    scrollbar-color: orange #1c1c1c;
}

.messages-list::-webkit-scrollbar {
    width: 8px; 
}

.messages-list::-webkit-scrollbar-track {
    background: #1c1c1c; 
    border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: orange; 
    border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: #e69500; 
}

       
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    height: calc(80vh - 120px); 
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%; 
}

.message img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    background: rgba(28, 28, 28, 0.8); 
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    backdrop-filter: blur(5px); 
    flex-grow: 1; 
}

.message-content .text {
    font-size: 14px;
    color: white;
    text-align: right;
    word-wrap: break-word; 
}

.message-content .time {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
    text-align: left; 
}

.send-message-box {
  display: flex;
    gap: 10px;
    padding: 10px;
    background: rgb(34 34 34);
    backdrop-filter: blur(5px);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    top: 85%;
	padding:1rem;
}

.send-message-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(18, 18, 18, 0.8); 
    color: white;
    font-size: 14px;
    outline: none;
}

.send-message-box button {
    background: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0; 
}

.send-message-box button:hover {
    background: #e69500;
}

.tab-title {
    background: rgba(255, 165, 0, 0.8);
    width: 250px;
    margin: auto;
    border-radius: 12px;
    padding: 3px 6px;
    font-size: 16px;
    backdrop-filter: blur(5px); 
}

@media (max-width: 768px) {
    .message-content {
        max-width: 90%; 
    }
}

.channel-list {
    padding: 20px;
}
.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #1c1c1c;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.channel-item:hover {
    background: #333;
}
.channel-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.channel-info {
    flex-grow: 1;
}
.channel-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    text-align: right;
}
.channel-info p {
    font-size: 14px;
    color: gray;
    text-align: right;
}
.add-channel-btn {
    position: fixed;
    bottom: 45px;
    left: 20px;
    background: orange;
    color: white;
    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: #e69500;
}
.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: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}
.modal-content h2 {
    margin-bottom: 20px;
}
.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #121212;
    color: white;
    outline: none;
}
.modal-content button {
    background: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.modal-content button:hover {
    background: #e69500;
}


.user-options-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;
}

.user-options-content {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

.user-options-content button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: orange;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-options-content button:hover {
    background: #e69500;
}


.user-options-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;
}

.user-options-content {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.user-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-header h3 {
    font-size: 18px;
    color: white;
}

.user-actions {
    display: flex;
    flex-wrap: nowrap;
  gap: 10px;
}

.user-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: orange;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-actions button:hover {
    background: #e69500;
}


.channel-options {
    cursor: pointer;
    padding: 10px;
    color: orange;
}

.channel-options:hover {
    color: #e69500;
}

.channel-list-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.channel-item-modal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #1c1c1c;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.channel-item-modal:hover {
    background: #333;
}

.channel-item-modal img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.channel-info-modal h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.channel-info-modal p {
    font-size: 14px;
    color: gray;
}

.chanel-top{
    position: relative;
    margin: auto;
    right: 3rem;
}



.ptt-button {
    width: 350px;
    height: 350px;
    background: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    border: 5px solid orange;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ptt-button.active {
    background: green;
    border-color: lime;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.ptt-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.ptt-button.active::before {
    transform: scale(1);
}


.user-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.user-modal-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-modal-header button {
    background: orange;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-modal-header button:hover {
    background: #e69500;
}

.user-info-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.user-info-modal label {
    font-size: 14px;
    color: white;
}

.user-info-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #121212;
    color: white;
    outline: none;
}

.user-info-modal input:disabled {
    background: #333;
    color: gray;
}

.user-actions-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-actions-modal button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 10px;
    background: orange;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-actions-modal button:hover {
    background: #e69500;
}

.user-actions-modal button:last-child {
    flex: 100%;
    background: green;
}

.user-actions-modal button:last-child:hover {
    background: darkgreen;
}
#darkModeBtn{
    background: #626161;
}

#support{
    background: #626161;
}