:root {
    --wa-green: #25D366;
    --wa-dark: #075E54;
    --wa-light: #dcf8c6;
    --wa-gray: #f0f2f5;
    --wa-text: #333;
    --wa-shadow: rgba(0, 0, 0, 0.15);
    --wa-radius: 12px;
    --wa-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#wew-admin-container {
    max-width: 1000px;
}

.admin-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.section-title {
    background: #075E54;
    color: white;
    padding: 12px 20px;
    border-radius: 4px 4px 0 0;
    margin: -20px -20px 20px -20px;
    font-size: 1.1em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.agent-list {
    max-height: 500px;
    overflow-y: auto;
}

.wew-item {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.wew-item:hover {
    border-color: #075E54;
    background: #f0fdf4;
}

.wew-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.wew-item-info {
    flex: 1;
}

.wew-item-info strong {
    display: block;
    font-size: 1.1em;
    color: #23282d;
}

.wew-item-info small {
    display: block;
    color: #666;
    margin-top: 2px;
}

.wew-item-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background: #dc3545 !important;
    color: white !important;
}

.wa-plugin-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: var(--wa-font);
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--wa-shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.wa-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.wa-button svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Pulsing effect */
.wa-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--wa-green);
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulse 2s infinite;
    opacity: 0.6;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--wa-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wa-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.wa-header {
    background-color: var(--wa-dark);
    color: white;
    padding: 20px;
    text-align: center;
}

.wa-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wa-header p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.wa-agent-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.wa-agent-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--wa-text);
    transition: background 0.2s;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #eee;
}

.wa-agent-card:hover {
    background: var(--wa-gray);
    transform: translateX(5px);
}

.wa-agent-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #ccc;
    border: 2px solid var(--wa-green);
}

.wa-agent-info {
    flex: 1;
}

.wa-agent-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.wa-agent-role {
    display: block;
    font-size: 12px;
    color: #666;
}

.wa-agent-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e0e0e0;
    margin-top: 4px;
    display: inline-block;
}

.wa-agent-status.online {
    background: #e8f5e9;
    color: #2e7d32;
}

.wa-agent-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    background: #999;
}

.wa-agent-status.online::before {
    background: var(--wa-green);
}

/* Custom Scrollbar */
.wa-agent-list::-webkit-scrollbar {
    width: 5px;
}
.wa-agent-list::-webkit-scrollbar-track {
    background: transparent;
}
.wa-agent-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
