/* Stiluri pentru widget-ul WhatsApp */
#wpf-root {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wpf-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all 0.3s ease;
}
/* Stiluri pentru diferite poziții */
#wpf-root[data-position="right"] {
    right: 20px;
    bottom: 20px;
}
#wpf-root[data-position="left"] {
    left: 20px;
    bottom: 20px;
}
#wpf-root[data-position="bottom-right"] {
    right: 20px;
    bottom: 20px;
}
#wpf-root[data-position="bottom-left"] {
    left: 20px;
    bottom: 20px;
}
#wpf-root[data-position="top-right"] {
    right: 20px;
    top: 20px;
    bottom: auto;
}
#wpf-root[data-position="top-left"] {
    left: 20px;
    top: 20px;
    bottom: auto;
}
#wpf-root[data-position="middle-right"] {
    right: 20px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
#wpf-root[data-position="middle-left"] {
    left: 20px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
/* Stiluri pentru diferite dimensiuni */
#wpf-root[data-size="small"] .wpf-btn {
    padding: 10px 14px;
    font-size: 14px;
}
#wpf-root[data-size="small"] .wpf-icon {
    width: 18px;
    height: 18px;
}
#wpf-root[data-size="medium"] .wpf-btn {
    padding: 12px 16px;
    font-size: 15px;
}
#wpf-root[data-size="medium"] .wpf-icon {
    width: 20px;
    height: 20px;
}
#wpf-root[data-size="large"] .wpf-btn {
    padding: 16px 20px;
    font-size: 16px;
}
#wpf-root[data-size="large"] .wpf-icon {
    width: 24px;
    height: 24px;
}
/* Stiluri pentru buton */
.wpf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 24px;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    outline: none;
}
.wpf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.wpf-btn:active {
    transform: translateY(0);
}
/* Stiluri pentru efecte */
.wpf-btn.glow {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(37, 211, 102, 0.3);
}
.wpf-btn.shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
/* Stiluri pentru animații */
@keyframes wpf-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes wpf-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes wpf-slide {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes wpf-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.wpf-btn.animate-bounce {
    animation: wpf-bounce 2s ease-in-out infinite;
}
.wpf-btn.animate-pulse {
    animation: wpf-pulse 2s ease-in-out infinite;
}
.wpf-btn.animate-slide {
    animation: wpf-slide 0.5s ease-out;
}
.wpf-btn.animate-fade {
    animation: wpf-fade 0.5s ease-out;
}
/* Stiluri pentru modal */
.wpf-modal {
    display: none;
    width: 320px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    overflow: hidden;
}
#wpf-root[data-widget-style="bubble"] .wpf-modal {
    display: block;
}
.wpf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #25D366;
    color: white;
}
.wpf-modal-header-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.wpf-modal-header-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}
.wpf-modal-close {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.wpf-modal-close:hover {
    opacity: 1;
}
.wpf-modal-body {
    padding: 15px;
}
.wpf-modal-welcome {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.wpf-modal-welcome p {
    margin: 0;
    font-size: 14px;
    color: #333;
}
.wpf-modal-agents {
    margin-bottom: 15px;
}
.wpf-modal-agent {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}
.wpf-modal-agent:last-child {
    margin-bottom: 0;
}
.wpf-modal-agent:hover {
    background: #f0f0f1;
}
.wpf-modal-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}
.wpf-modal-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wpf-modal-agent-info {
    flex: 1;
}
.wpf-modal-agent-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.wpf-modal-agent-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.wpf-modal-agent-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 5px;
}
.wpf-modal-agent-status-indicator.online {
    background: #10b981;
}
.wpf-modal-response {
    margin-top: 15px;
}
.wpf-modal-response textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
    min-height: 60px;
}
.wpf-modal-response-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.wpf-modal-response-send {
    padding: 6px 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.wpf-modal-response-send:hover {
    background: #1da851;
}
.wpf-modal-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
    text-align: center;
}
/* Stiluri pentru iconițe */
.wpf-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}
/* Stiluri pentru iconiță personalizată */
.wpf-custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
/* Stiluri pentru tooltip */
.wpf-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.wpf-container:hover .wpf-tooltip {
    opacity: 1;
}
.wpf-tooltip.top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}
.wpf-tooltip.bottom {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}
.wpf-tooltip.left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
}
.wpf-tooltip.right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
}
.wpf-tooltip:after {
    content: '';
    position: absolute;
    border: 5px solid transparent;
}
.wpf-tooltip.top:after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(0, 0, 0, 0.8);
}
.wpf-tooltip.bottom:after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(0, 0, 0, 0.8);
}
.wpf-tooltip.left:after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: rgba(0, 0, 0, 0.8);
}
.wpf-tooltip.right:after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: rgba(0, 0, 0, 0.8);
}
/* Stiluri pentru buton de închidere */
.wpf-close-btn {
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
}
.wpf-close-btn:hover {
    opacity: 1;
}
/* Stiluri pentru informații suplimentare */
.wpf-time, .wpf-agent-status, .wpf-business-hours {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
.wpf-agent-status.online {
    color: #10b981;
}
.wpf-agent-status.offline {
    color: #ef4444;
}
.wpf-qr-code {
    margin-top: 10px;
    text-align: center;
}
.wpf-qr-code img {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}
/* Stiluri pentru GDPR */
.wpf-gdpr-container {
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 13px;
    color: #646970;
    text-align: center;
    max-width: 300px;
    display: none;
    line-height: 1.5;
    border: 1px solid #eee;
}
#wpf-root[data-theme="dark"] .wpf-gdpr-container {
    background: rgba(45, 55, 72, 0.9);
    color: #cbd5e0;
    border-color: rgba(255, 255, 255, 0.1);
}
@media (prefers-color-scheme: dark) {
    #wpf-root[data-theme="auto"] .wpf-gdpr-container {
        background: rgba(45, 55, 72, 0.9);
        color: #cbd5e0;
        border-color: rgba(255, 255, 255, 0.1);
    }
}
.wpf-gdpr-container.show {
    display: block;
}
/* Stiluri pentru widget în sidebar */
.wpf-widget-container {
    text-align: center;
    margin: 15px 0;
}
.wpf-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 24px;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.wpf-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.wpf-widget-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* Stiluri pentru diferite teme */
#wpf-root[data-theme="dark"] .wpf-modal {
    background: #2d3748;
}
#wpf-root[data-theme="dark"] .wpf-modal-header {
    background: #128C7E;
}
#wpf-root[data-theme="dark"] .wpf-modal-agent {
    background: #4a5568;
}
#wpf-root[data-theme="dark"] .wpf-modal-agent-name {
    color: #e2e8f0;
}
#wpf-root[data-theme="dark"] .wpf-modal-welcome p {
    color: #e2e8f0;
}
#wpf-root[data-theme="dark"] .wpf-modal-footer {
    background: #4a5568;
    color: #cbd5e0;
    border-color: rgba(255, 255, 255, 0.1);
}
#wpf-root[data-theme="auto"] .wpf-modal {
    background: white;
}
@media (prefers-color-scheme: dark) {
    #wpf-root[data-theme="auto"] .wpf-modal {
        background: #2d3748;
    }
    
    #wpf-root[data-theme="auto"] .wpf-modal-header {
        background: #128C7E;
    }
    
    #wpf-root[data-theme="auto"] .wpf-modal-agent {
        background: #4a5568;
    }
    
    #wpf-root[data-theme="auto"] .wpf-modal-agent-name {
        color: #e2e8f0;
    }
    
    #wpf-root[data-theme="auto"] .wpf-modal-welcome p {
        color: #e2e8f0;
    }
    
    #wpf-root[data-theme="auto"] .wpf-modal-footer {
        background: #4a5568;
        color: #cbd5e0;
        border-color: rgba(255, 255, 255, 0.1);
    }
}
/* Stiluri pentru clase personalizate */
/* Utilizatorul poate adăuga clase CSS personalizate prin setări */
/* Stiluri responsive */
@media (max-width: 782px) {
    .wpf-modal {
        width: 280px;
    }
    
    .wpf-gdpr-container {
        font-size: 12px;
        padding: 12px;
    }
}

#wpf-root {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wpf-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wpf-btn {
    transition: all 0.3s ease;
}

.wpf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4) !important;
}

.wpf-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}