#vibecode-chat-bubble {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#vibecode-chat-bubble.vibecode-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

#vibecode-chat-bubble.vibecode-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.vibecode-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.vibecode-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.vibecode-bubble-btn svg {
    stroke: white;
}

.vibecode-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.vibecode-window {
    position: absolute;
    bottom: 80px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vibecode-position-bottom-right .vibecode-window {
    right: 0;
}

.vibecode-position-bottom-left .vibecode-window {
    left: 0;
}

.vibecode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vibecode-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.vibecode-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.vibecode-tabs {
    display: flex;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.vibecode-tab {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.2s;
}

.vibecode-tab.active {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.vibecode-count {
    background: #667eea;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

.vibecode-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.vibecode-tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.vibecode-tab-content.active {
    display: flex;
}

.vibecode-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vibecode-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.vibecode-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vibecode-message-content {
    flex: 1;
}

.vibecode-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.vibecode-message-username {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
}

.vibecode-message-time {
    font-size: 11px;
    color: #9ca3af;
}

.vibecode-message-text {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #374151;
    word-wrap: break-word;
}

.vibecode-message.own .vibecode-message-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vibecode-system-message {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    padding: 4px 0;
}

.vibecode-input-container {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}

#vibecode-message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

#vibecode-message-input:focus {
    border-color: #667eea;
}

.vibecode-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vibecode-send-btn:hover {
    transform: scale(1.05);
}

.vibecode-videos {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.vibecode-video-wrapper {
    position: relative;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.vibecode-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibecode-video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.vibecode-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.vibecode-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #e5e7eb;
}

.vibecode-control-btn:hover {
    transform: scale(1.05);
}

.vibecode-control-btn.active {
    background: #10b981;
}

.vibecode-control-btn.active svg {
    stroke: white;
}

.vibecode-control-btn:not(.active) {
    background: #ef4444;
}

.vibecode-control-btn:not(.active) svg {
    stroke: white;
}

.vibecode-users {
    padding: 15px;
    overflow-y: auto;
}

.vibecode-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.vibecode-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.vibecode-user-name {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
}

@media (max-width: 768px) {
    .vibecode-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
