/* Daniels Chat - Frontend Widget Styles */

.dc-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Chat Button */
.dc-chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20bd5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.dc-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.dc-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Chat Box */
.dc-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dc-chat-header {
    background: linear-gradient(135deg, #25D366 0%, #20bd5a 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dc-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dc-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.dc-close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dc-chat-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.dc-chat-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.dc-agents-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dc-agent-item:hover {
    background: #e8f7ee;
    border-color: #25D366;
    transform: translateX(5px);
}

.dc-agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.dc-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-agent-avatar span {
    display: block;
}

.dc-agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dc-agent-info strong {
    font-size: 15px;
    color: #333;
}

.dc-agent-status {
    font-size: 13px;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.dc-whatsapp-icon {
    flex-shrink: 0;
}

.dc-chat-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.dc-chat-footer p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .dc-chat-box {
        position: fixed;
        bottom: 90px;
        left: 20px;
        right: 20px;
        width: auto;
        margin: 0;
    }

    .dc-chat-widget {
        right: 20px;
    }
}

/* Scrollbar Styles */
.dc-chat-body::-webkit-scrollbar {
    width: 6px;
}

.dc-chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dc-chat-body::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.dc-chat-body::-webkit-scrollbar-thumb:hover {
    background: #20bd5a;
}