#vdcw-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#vdcw-widget.vdcw-show {
    opacity: 1;
}

.vdcw-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    width: 320px;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vdcw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.vdcw-card.vdcw-minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
    overflow: visible;
    background: transparent;
}

.vdcw-card.vdcw-minimized:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.vdcw-card.vdcw-minimized .vdcw-header {
    padding: 0;
    border: none;
    justify-content: center;
    height: 60px;
    overflow: visible;
}

.vdcw-card.vdcw-minimized .vdcw-info,
.vdcw-card.vdcw-minimized .vdcw-body {
    display: none;
}

.vdcw-card.vdcw-minimized .vdcw-avatar {
    width: 48px;
    height: 48px;
    box-shadow: none;
}

.vdcw-card.vdcw-minimized .vdcw-avatar svg {
    width: 28px;
    height: 28px;
}

.vdcw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    overflow: visible;
}

.vdcw-status-wrapper {
    position: relative;
}

.vdcw-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.vdcw-avatar svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.vdcw-status-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 10;
}

.vdcw-status-badge.vdcw-online {
    background: #10B981;
    box-shadow: 0 0 0 0 #10B981;
    animation: vdcw-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.vdcw-status-badge.vdcw-offline {
    background: #EF4444;
}

@keyframes vdcw-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.vdcw-info {
    flex: 1;
}

.vdcw-name {
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    font-size: 15px;
}

.vdcw-status {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.vdcw-body {
    padding: 16px;
}

.vdcw-message {
    color: #333;
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.vdcw-message a {
    color: #5865F2;
    text-decoration: none;
}

.vdcw-message a:hover {
    text-decoration: underline;
}

.vdcw-input-wrapper {
    display: flex;
    gap: 8px;
}

.vdcw-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vdcw-input:hover {
    border-color: #5865F2;
    background: #f8f9ff;
}

.vdcw-input:focus {
    border-color: #5865F2;
}

.vdcw-send-btn {
    background: #5865F2;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.vdcw-send-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.vdcw-send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    display: block;
}

.vdcw-btn-text {
    display: block;
}

@media (max-width: 480px) {
    #vdcw-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .vdcw-card {
        width: 280px;
    }
}