/* WhatsApp Popup Styles */
#whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

#whatsapp-popup.show {
    display: flex;
    opacity: 1;
}

.wa-popup-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #0f1c2e; /* Dark theme background */
    border: 1px solid #d7417e; /* Gold border */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#whatsapp-popup.show .wa-popup-content {
    transform: translateY(0);
}

.wa-popup-header {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #d7417e;
}

.wa-popup-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.wa-popup-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.wa-agents-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.wa-agents-grid::-webkit-scrollbar {
    width: 6px;
}
.wa-agents-grid::-webkit-scrollbar-track {
    background: #061229;
}
.wa-agents-grid::-webkit-scrollbar-thumb {
    background: #d7417e;
    border-radius: 3px;
}

.wa-agent-item {
    background: #061229;
    border: 1px solid #1c3d72;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.wa-agent-item:hover {
    border-color: #d7417e;
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.05);
}

.wa-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-agent-avatar {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
}

.wa-agent-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.wa-agent-status {
    font-size: 10px;
    color: #25D366;
    display: block;
    margin-top: 2px;
}

.wa-chat-btn {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none !important;
}

.wa-chat-btn:hover {
    background: #128C7E;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

.wa-chat-btn i {
    font-size: 14px;
}

/* Specific Font Awesome adjustment if needed */
.fa-whatsapp {
    margin-right: 2px;
}

/* Animations */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-agent-avatar {
    animation: pulse-green 2s infinite;
}
