/* Vendor Customer Chat - Frontend Styles */

/* Reset and Base Styles */
.vcc-chat-page * {
    box-sizing: border-box;
}

/* Chat Button Styles */
.vcc-chat-button-container {
    margin: 15px 0;
}

.vcc-chat-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vcc-chat-button:hover {
    background: #1557b0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    color: white;
}

.vcc-chat-button:active {
    background: #1347a0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vcc-vendor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vcc-chat-icon {
    width: 16px;
    height: 16px;
}

/* Vendor Dashboard Layout */
.vcc-vendor-chat-dashboard {
    display: flex;
    height: 80vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vcc-chat-sidebar {
    width: 35%;
    min-width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
}

.vcc-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Sidebar Header */
.vcc-chat-sidebar .vcc-chat-header {
    background: #1a73e8;
    padding: 20px;
    color: white;
    border-bottom: none;
}

.vcc-chat-sidebar .vcc-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.vcc-new-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.vcc-new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Conversations List */
.vcc-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.vcc-conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
}

.vcc-conversation-item:hover {
    background: #f1f3f4;
}

.vcc-conversation-item.active {
    background: #e8f0fe;
    border-right: 3px solid #1a73e8;
}

.vcc-conversation-item.unread {
    background: #f8f9fa;
    font-weight: 600;
}

.vcc-conversation-avatar {
    margin-right: 15px;
    position: relative;
}

.vcc-conversation-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    object-fit: cover;
}

.vcc-conversation-content {
    flex: 1;
    min-width: 0;
}

.vcc-conversation-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 4px;
}

.vcc-conversation-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.vcc-conversation-time {
    font-size: 12px;
    color: #65676b;
    white-space: nowrap;
}

.vcc-conversation-preview {
    font-size: 14px;
    color: #65676b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vcc-conversation-product {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 4px;
}

.vcc-unread-badge {
    background: #ea4335;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    position: absolute;
    top: 10px;
    right: 10px;
}

.vcc-no-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #65676b;
    text-align: center;
    padding: 40px 20px;
}

.vcc-no-conversations i {
    font-size: 48px;
    color: #ccd0d5;
    margin-bottom: 16px;
}

/* Chat Placeholder */
.vcc-chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
}

.vcc-chat-placeholder-content {
    text-align: center;
    color: #65676b;
    padding: 60px 40px;
}

.vcc-chat-placeholder-content i {
    font-size: 80px;
    color: #ccd0d5;
    margin-bottom: 24px;
}

.vcc-chat-placeholder-content h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 12px;
    font-weight: 600;
}

.vcc-chat-placeholder-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

/* Clean Chat Page Layout */
.vcc-chat-only-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
}

.vcc-chat-only-page .vcc-chat-page {
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.vcc-chat-only-page .vcc-chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

/* Regular chat page (when embedded) */
.vcc-chat-page {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vcc-chat-container {
    width: 100%;
    max-width: 1000px;
    height: 85vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

/* Chat Header */
.vcc-chat-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #1a73e8;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e1e5e9;
    border-radius: 12px 12px 0 0;
}

.vcc-chat-only-page .vcc-chat-header {
    border-radius: 12px 12px 0 0;
}

.vcc-chat-back {
    margin-right: 15px;
}

.vcc-back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vcc-back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vcc-back-button svg {
    width: 20px;
    height: 20px;
}

.vcc-chat-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.vcc-chat-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.vcc-chat-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.vcc-chat-status {
    font-size: 14px;
    opacity: 0.8;
}

.vcc-chat-actions {
    display: flex;
    gap: 10px;
}

.vcc-chat-menu-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vcc-chat-menu-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vcc-chat-menu-button svg {
    width: 20px;
    height: 20px;
}

/* Messages Container */
.vcc-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
    background-image: none;
}

.vcc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 15px;
    color: #666;
}

.vcc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Styles */
.vcc-message {
    display: flex;
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vcc-message.sent {
    justify-content: flex-end;
}

.vcc-message.received {
    justify-content: flex-start;
}

.vcc-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vcc-message.sent .vcc-message-bubble {
    background: #1a73e8;
    color: white;
    border-bottom-right-radius: 4px;
}

.vcc-message.received .vcc-message-bubble {
    background: #f1f3f4;
    color: #202124;
    border-bottom-left-radius: 4px;
    border: 1px solid #e8eaed;
}

.vcc-message-content {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.vcc-message-time {
    font-size: 12px;
    opacity: 0.7;
    text-align: right;
}

.vcc-message.received .vcc-message-time {
    text-align: left;
}

/* Attachment Menu Styles */
.vcc-attachment-menu {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 1000;
    min-width: 150px;
}

.vcc-attachment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #1a1a1a;
}

.vcc-attachment-option:hover {
    background: #f1f3f4;
}

.vcc-attachment-option i {
    width: 20px;
    text-align: center;
    color: #25D366;
}

/* New Chat Modal Styles */
.vcc-new-chat-modal .vcc-modal-content {
    max-width: 500px;
    width: 90%;
}

.vcc-customer-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.vcc-customer-search:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.vcc-customers-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 10px;
}

/* Order Request Button Styles */
.vcc-order-request-btn {
    background: #34a853;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vcc-order-request-btn:hover {
    background: #2d8f41;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Order Request Message */
.vcc-message-order-request {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
}

.vcc-order-request-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vcc-order-request-icon {
    width: 24px;
    height: 24px;
    color: #f39c12;
}

.vcc-order-request-title {
    font-weight: 600;
    color: #856404;
}

.vcc-order-request-details {
    margin-bottom: 15px;
}

.vcc-order-request-actions {
    display: flex;
    gap: 10px;
}

.vcc-order-request-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vcc-order-request-btn.accept {
    background: #25D366;
    color: white;
}

.vcc-order-request-btn.decline {
    background: #e74c3c;
    color: white;
}

.vcc-order-request-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Chat Input */
.vcc-chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e1e5e9;
    position: sticky;
    bottom: 0;
    z-index: 1000; /* Ensure it stays above mobile menus and other elements */
}

.vcc-chat-only-page .vcc-chat-input-container {
    border-radius: 0 0 12px 12px;
}

.vcc-chat-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.vcc-chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: end;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 24px;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.vcc-chat-input-wrapper:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.vcc-attachment-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vcc-attachment-button:hover {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.vcc-attachment-button svg {
    width: 20px;
    height: 20px;
}

.vcc-message-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    padding: 8px 0;
    font-family: inherit;
}

.vcc-send-button {
    background: #1a73e8;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vcc-send-button:hover {
    background: #1557b0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vcc-send-button:active {
    background: #1347a0;
}

.vcc-send-button svg {
    width: 20px;
    height: 20px;
}

/* Modal Styles */
.vcc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vcc-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vcc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.vcc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vcc-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.vcc-modal-body {
    padding: 20px;
}

/* Form Styles */
.vcc-form-group {
    margin-bottom: 20px;
}

.vcc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.vcc-form-group input,
.vcc-form-group select,
.vcc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.vcc-form-group input:focus,
.vcc-form-group select:focus,
.vcc-form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.vcc-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.vcc-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vcc-button-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.vcc-button-secondary {
    background: #6c757d;
    color: white;
}

.vcc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .vcc-chat-page {
        background: #1a1a1a;
    }
    
    .vcc-chat-container {
        background: #2d2d2d;
    }
    
    .vcc-vendor-chat-dashboard {
        background: #2d2d2d;
    }
    
    .vcc-chat-sidebar {
        background: #1e1e1e;
        border-right-color: #444;
    }
    
    .vcc-chat-messages {
        background: #1e1e1e;
    }
    
    .vcc-message.received .vcc-message-bubble {
        background: #3a3a3a;
        color: #e0e0e0;
    }
    
    .vcc-chat-input-wrapper {
        background: #3a3a3a;
    }
    
    .vcc-message-input {
        background: transparent;
        color: #e0e0e0;
    }
    
    .vcc-conversation-item {
        background: #2d2d2d;
        border-bottom-color: #444;
    }
    
    .vcc-conversation-item:hover {
        background: #3a3a3a;
    }
    
    .vcc-conversation-item.active {
        background: #1e3a8a;
    }
    
    .vcc-conversation-name {
        color: #e0e0e0;
    }
    
    .vcc-conversation-preview {
        color: #a0a0a0;
    }
    
    .vcc-chat-placeholder {
        background: #1e1e1e;
    }
    
    .vcc-chat-placeholder-content {
        color: #a0a0a0;
    }
    
    .vcc-chat-placeholder-content h3 {
        color: #e0e0e0;
    }
    
    .vcc-modal-content {
        background: #2d2d2d;
    }
    
    .vcc-modal-header {
        background: #3a3a3a;
    }
    
    .vcc-modal-header h3 {
        color: #e0e0e0;
    }
    
    .vcc-form-group label {
        color: #e0e0e0;
    }
    
    .vcc-form-group input,
    .vcc-form-group select,
    .vcc-form-group textarea {
        background: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .vcc-attachment-menu {
        background: #3a3a3a;
        border-color: #555;
    }
    
    .vcc-attachment-option {
        color: #e0e0e0;
    }
    
    .vcc-attachment-option:hover {
        background: #4a4a4a;
    }
} 

/* Responsive Design */
@media (max-width: 768px) {
    .vcc-vendor-chat-dashboard {
        flex-direction: column;
        height: 100vh;
    }
    
    .vcc-chat-sidebar {
        width: 100%;
        min-width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .vcc-chat-main {
        flex: 1;
        min-height: 0;
    }
    
    .vcc-chat-container {
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .vcc-chat-header {
        padding: 12px 16px;
    }
    
    .vcc-chat-messages {
        padding: 16px;
    }
    
    .vcc-chat-input-wrapper {
        padding: 8px 12px;
    }
    
    .vcc-message-bubble {
        max-width: 85%;
    }
    
    .vcc-conversation-item {
        padding: 12px 16px;
    }
    
    .vcc-conversation-avatar img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .vcc-chat-header .vcc-chat-name {
        font-size: 16px;
    }
    
    .vcc-message-bubble {
        font-size: 14px;
        padding: 8px 12px;
        max-width: 90%;
    }
    
    .vcc-chat-input-wrapper {
        gap: 6px;
        padding: 8px;
    }
    
    .vcc-message-input {
        font-size: 14px;
    }
    
    .vcc-send-button {
        padding: 8px;
    }
    
    .vcc-send-button svg {
        width: 18px;
        height: 18px;
    }
    
    .vcc-attachment-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Professional Loading States */
.vcc-loading.sending {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 20px 30px;
}

/* Smooth Animations */
.vcc-message {
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vcc-chat-button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vcc-chat-button:hover {
    transform: translateY(-1px);
}

/* Professional Scrollbar */
.vcc-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.vcc-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.vcc-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.vcc-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Focus States */
.vcc-chat-button:focus,
.vcc-send-button:focus,
.vcc-attachment-button:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* No WordPress admin bar interference */
.vcc-chat-only-page.admin-bar {
    margin-top: 0 !important;
}

.vcc-chat-only-page #wpadminbar {
    display: none !important;
}

/* Professional WhatsApp Web-Style Vendor Dashboard */

/* App Loader Styles */
.vcc-app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.vcc-loader-content {
    text-align: center;
    color: white;
}

.vcc-loader-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.vcc-loader-text h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.vcc-loader-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.vcc-spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Chat App Styles */
.vcc-chat-app {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #f0f2f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
}

/* Sidebar Panel */
.vcc-sidebar-panel {
    width: 400px;
    height: 100vh;
    background: white;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vcc-sidebar-header {
    background: #f0f2f5;
    padding: 16px 20px;
    border-bottom: 1px solid #e9edef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.vcc-vendor-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vcc-vendor-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.vcc-vendor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vcc-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid white;
    border-radius: 50%;
}

.vcc-vendor-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111b21;
    margin: 0;
}

.vcc-vendor-role {
    font-size: 13px;
    color: #667781;
}

.vcc-sidebar-actions {
    display: flex;
    gap: 8px;
}

.vcc-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vcc-action-btn:hover {
    background: #f5f6f6;
    color: #111b21;
}

/* Search Container */
.vcc-search-container {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e9edef;
}

.vcc-search-input-wrapper {
    position: relative;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.vcc-search-icon {
    color: #54656f;
    margin-right: 12px;
    font-size: 14px;
}

.vcc-search-input {
    border: none;
    background: none;
    outline: none;
    padding: 12px 0;
    font-size: 15px;
    color: #111b21;
    width: 100%;
    font-family: inherit;
}

.vcc-search-input::placeholder {
    color: #667781;
}

/* Conversations Container */
.vcc-conversations-container {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.vcc-conversations-list {
    padding: 0;
}

/* Empty State */
.vcc-empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #667781;
}

.vcc-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.vcc-empty-state h3 {
    font-size: 20px;
    font-weight: 300;
    color: #111b21;
    margin-bottom: 8px;
}

.vcc-empty-state p {
    font-size: 14px;
    line-height: 1.4;
}

/* Conversation Items */
.vcc-conversation-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
    position: relative;
}

.vcc-conversation-item:hover {
    background: #f5f6f6;
}

.vcc-conversation-item.active {
    background: #e7f3ff;
}

.vcc-conversation-item.unread {
    background: #f7f8fa;
}

.vcc-conversation-avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.vcc-conversation-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vcc-unread-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid white;
    border-radius: 50%;
}

.vcc-conversation-content {
    flex: 1;
    min-width: 0;
}

.vcc-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.vcc-conversation-name {
    font-size: 16px;
    font-weight: 400;
    color: #111b21;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vcc-conversation-item.unread .vcc-conversation-name {
    font-weight: 600;
}

.vcc-conversation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vcc-conversation-time {
    font-size: 12px;
    color: #667781;
    white-space: nowrap;
}

.vcc-unread-count {
    background: #25d366;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

.vcc-conversation-preview-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vcc-conversation-preview {
    font-size: 14px;
    color: #667781;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.vcc-conversation-product {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00a884;
    background: rgba(0, 168, 132, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

/* Clean Vendor Dashboard */
.vcc-vendor-dashboard-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vcc-vendor-dashboard-page .vcc-vendor-chat-dashboard {
    height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.vcc-vendor-dashboard-page #wpadminbar {
    display: none !important;
}

.vcc-vendor-dashboard-page.admin-bar {
    margin-top: 0 !important;
}

/* Main Chat Panel */
.vcc-chat-main-panel {
    flex: 1;
    height: 100vh;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Welcome Screen */
.vcc-welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
}

.vcc-welcome-content {
    text-align: center;
    max-width: 460px;
    padding: 40px;
}

.vcc-welcome-illustration {
    margin-bottom: 32px;
}

.vcc-illustration-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.vcc-illustration-circle i {
    font-size: 48px;
    color: white;
}

.vcc-welcome-text h2 {
    font-size: 32px;
    font-weight: 300;
    color: #111b21;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.vcc-welcome-text p {
    font-size: 16px;
    color: #667781;
    line-height: 1.5;
    margin-bottom: 32px;
}

.vcc-welcome-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.vcc-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #667781;
}

.vcc-feature-item i {
    color: #25d366;
    font-size: 16px;
}

/* Active Chat Interface */
.vcc-active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #efeae2;
    background-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='chat-bg' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3e%3cpath d='M0 0h100v100H0z' fill='%23efeae2'/%3e%3cpath d='M0 0l50 50M50 0l50 50M0 50l50 50' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23chat-bg)'/%3e%3c/svg%3e");
}

/* Chat Header Bar */
.vcc-chat-header-bar {
    background: #f0f2f5;
    border-bottom: 1px solid #d1d7db;
    padding: 10px 16px;
    min-height: 70px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.vcc-chat-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vcc-customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vcc-customer-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.vcc-customer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vcc-online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid white;
    border-radius: 50%;
}

.vcc-customer-details h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111b21;
    margin: 0 0 2px 0;
}

.vcc-customer-status {
    font-size: 13px;
    color: #667781;
}

.vcc-chat-header-actions {
    display: flex;
    gap: 8px;
}

.vcc-header-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vcc-header-action-btn:hover {
    background: #f5f6f6;
    color: #111b21;
}

/* Messages Container */
.vcc-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #0b141a;
    scroll-behavior: smooth;
}

.vcc-messages-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.vcc-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

/* Loading Spinner */
.vcc-chat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #667781;
}

.vcc-loading-spinner {
    margin-bottom: 16px;
}

.vcc-spinner-dots {
    display: flex;
    gap: 4px;
}

.vcc-dot {
    width: 8px;
    height: 8px;
    background: #667781;
    border-radius: 50%;
    animation: wave 1.4s ease-in-out infinite both;
}

.vcc-dot:nth-child(1) { animation-delay: -0.32s; }
.vcc-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes wave {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Message Input Area */
.vcc-message-input-area {
    background: #f0f2f5;
    padding: 10px 16px;
    border-top: 1px solid #d1d7db;
    z-index: 1000;
}

.vcc-message-form {
    max-width: 1000px;
    margin: 0 auto;
}

.vcc-input-container {
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vcc-input-actions-left {
    display: flex;
    gap: 4px;
    padding: 0 4px;
}

.vcc-input-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 50%;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vcc-input-action-btn:hover {
    background: #f5f6f6;
    color: #111b21;
}

.vcc-text-input-wrapper {
    flex: 1;
    padding: 0 8px;
}

.vcc-message-input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    color: #111b21;
    font-family: inherit;
    line-height: 1.4;
    padding: 8px 0;
    resize: none;
    min-height: 20px;
    max-height: 100px;
}

.vcc-message-input::placeholder {
    color: #667781;
}

.vcc-input-actions-right {
    padding: 0 4px;
}

.vcc-send-message-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #25d366;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vcc-send-message-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.vcc-send-message-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vcc-chat-app {
        flex-direction: column;
    }
    
    .vcc-sidebar-panel {
        width: 100%;
        height: 60vh;
    }
    
    .vcc-chat-main-panel {
        height: 40vh;
    }
    
    .vcc-welcome-features {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .vcc-sidebar-panel {
        width: 100%;
    }
    
    .vcc-welcome-text h2 {
        font-size: 24px;
    }
    
    .vcc-welcome-content {
        padding: 20px;
    }
    
    .vcc-illustration-circle {
        width: 80px;
        height: 80px;
    }
    
         .vcc-illustration-circle i {
         font-size: 32px;
     }
 }

/* Professional Notifications */
.vcc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    z-index: 999999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #25d366;
    min-width: 300px;
}

.vcc-notification.vcc-show {
    transform: translateX(0);
    opacity: 1;
}

.vcc-notification-success {
    border-left-color: #25d366;
}

.vcc-notification-error {
    border-left-color: #dc3545;
}

.vcc-notification-info {
    border-left-color: #17a2b8;
}

.vcc-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #111b21;
}

.vcc-notification-content i {
    font-size: 16px;
}

.vcc-notification-success .vcc-notification-content i {
    color: #25d366;
}

.vcc-notification-error .vcc-notification-content i {
    color: #dc3545;
}

.vcc-notification-info .vcc-notification-content i {
    color: #17a2b8;
}

/* Professional Chat Options Menu */
.vcc-chat-options-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    min-width: 200px;
    border: 1px solid #e9edef;
    animation: fadeInScale 0.2s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vcc-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #111b21;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f2f5;
}

.vcc-menu-item:last-child {
    border-bottom: none;
}

.vcc-menu-item:hover {
    background: #f5f6f6;
}

.vcc-menu-item i {
    width: 16px;
    color: #54656f;
}

/* Professional Message Styling Enhancement */
.vcc-message {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Professional Scrollbar */
.vcc-conversations-container::-webkit-scrollbar,
.vcc-messages-container::-webkit-scrollbar {
    width: 8px;
}

.vcc-conversations-container::-webkit-scrollbar-track,
.vcc-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.vcc-conversations-container::-webkit-scrollbar-thumb,
.vcc-messages-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.vcc-conversations-container::-webkit-scrollbar-thumb:hover,
.vcc-messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Professional Input Focus States */
.vcc-search-input:focus,
.vcc-message-input:focus {
    outline: none;
}

.vcc-search-input-wrapper:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 1px #25d366;
}

.vcc-input-container:focus-within {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px #25d366;
}

/* Professional Loading States */
.vcc-conversation-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.vcc-conversation-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #e9edef;
    border-top: 2px solid #25d366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

/* Professional File Download and Media Styles */

/* Image Attachment Styles */
.vcc-message-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.vcc-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vcc-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vcc-image-container:hover .vcc-image-overlay {
    opacity: 1;
}

.vcc-image-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vcc-image-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vcc-image-actions {
    display: flex;
    gap: 4px;
}

/* Video Attachment Styles */
.vcc-message-video {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.vcc-video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vcc-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vcc-video-container:hover .vcc-video-overlay {
    opacity: 1;
}

.vcc-video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vcc-video-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vcc-video-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* File Attachment Styles */
.vcc-message-file {
    display: block;
    max-width: 300px;
}

.vcc-file-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.vcc-file-container:hover {
    background: #e9ecef;
    border-color: #25d366;
}

.vcc-file-icon {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.vcc-file-info {
    flex: 1;
    min-width: 0;
}

.vcc-file-name {
    display: block;
    font-weight: 500;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.vcc-file-size {
    display: block;
    font-size: 12px;
    color: #667781;
}

.vcc-file-actions {
    display: flex;
    gap: 4px;
}

/* Download Button Styles */
.vcc-download-btn,
.vcc-view-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #111b21;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.vcc-download-btn:hover,
.vcc-view-btn:hover {
    background: white;
    color: #25d366;
    transform: scale(1.1);
}

/* Image Modal Styles */
.vcc-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vcc-image-modal.vcc-show {
    opacity: 1;
}

.vcc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcc-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.vcc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.vcc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.vcc-modal-actions {
    display: flex;
    gap: 8px;
}

.vcc-modal-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vcc-modal-action-btn:hover {
    background: #e9ecef;
    color: #111b21;
}

.vcc-modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.vcc-modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Download Notification Styles */
.vcc-download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    z-index: 999999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #25d366;
    min-width: 300px;
}

.vcc-download-notification.vcc-show {
    transform: translateX(0);
    opacity: 1;
}

.vcc-download-notification-success {
    border-left-color: #25d366;
}

.vcc-download-notification-error {
    border-left-color: #dc3545;
}

.vcc-download-notification .vcc-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #111b21;
}

.vcc-download-notification .vcc-notification-content i {
    font-size: 16px;
}

.vcc-download-notification-success .vcc-notification-content i {
    color: #25d366;
}

.vcc-download-notification-error .vcc-notification-content i {
    color: #dc3545;
}

/* Professional Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .vcc-chat-app {
        background: #0b141a;
    }
    
    .vcc-sidebar-panel {
        background: #111b21;
        border-right-color: #2a3942;
    }
    
    .vcc-sidebar-header {
        background: #2a3942;
        border-bottom-color: #2a3942;
    }
    
    .vcc-vendor-info h3,
    .vcc-conversation-name {
        color: #e9edef;
    }
    
    .vcc-search-input-wrapper {
        background: #2a3942;
    }
    
    .vcc-search-input {
        color: #e9edef;
    }
    
    .vcc-conversation-item {
        border-bottom-color: #2a3942;
    }
    
    .vcc-conversation-item:hover {
        background: #2a3942;
    }
    
    .vcc-chat-header-bar {
        background: #2a3942;
        border-bottom-color: #2a3942;
    }
    
    .vcc-active-chat {
        background: #0b141a;
    }
    
    .vcc-message-input-area {
        background: #2a3942;
        border-top-color: #2a3942;
    }
    
    .vcc-input-container {
        background: #2a3942;
    }
    
    .vcc-message-input {
        color: #e9edef;
    }
    
    /* Dark mode file attachments */
    .vcc-file-container {
        background: #2a3942;
        border-color: #4a5c6a;
    }
    
    .vcc-file-container:hover {
        background: #374248;
        border-color: #25d366;
    }
    
    .vcc-file-name {
        color: #e9edef;
    }
    
    .vcc-modal-content {
        background: #2a3942;
    }
    
    .vcc-modal-header {
        background: #374248;
        border-bottom-color: #4a5c6a;
    }
    
    .vcc-modal-header h3 {
        color: #e9edef;
    }
    
    .vcc-download-notification {
        background: #2a3942;
    }
    
    .vcc-download-notification .vcc-notification-content {
        color: #e9edef;
    }
}

/* Hide theme elements for clean vendor interface */
.vcc-vendor-dashboard-page .site-header,
.vcc-vendor-dashboard-page .site-navigation,
.vcc-vendor-dashboard-page .main-navigation,
.vcc-vendor-dashboard-page .primary-navigation,
.vcc-vendor-dashboard-page .secondary-navigation,
.vcc-vendor-dashboard-page .sidebar,
.vcc-vendor-dashboard-page .widget-area,
.vcc-vendor-dashboard-page .site-footer,
.vcc-vendor-dashboard-page .footer,
.vcc-vendor-dashboard-page .entry-content,
.vcc-vendor-dashboard-page .entry-header,
.vcc-vendor-dashboard-page .dokan-dashboard-wrap {
    display: none !important;
}

/* Ensure vendor dashboard fills entire viewport */
.vcc-vendor-dashboard-page body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f9fa !important;
}

.vcc-vendor-dashboard-page .vcc-vendor-chat-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
}

/* Enhanced conversation list */
.vcc-conversation-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.vcc-conversation-item:hover {
    background: #f8f9fa;
}

.vcc-conversation-item.active {
    background: #e8f0fe;
    border-right: 3px solid #1a73e8;
}

/* Professional status indicators */
.vcc-conversation-item.unread .vcc-conversation-name {
    font-weight: 600;
    color: #1a73e8;
}

/* Better mobile layout */
@media (max-width: 768px) {
    .vcc-vendor-dashboard-page .vcc-vendor-chat-dashboard {
        flex-direction: column;
    }
    
    .vcc-vendor-dashboard-page .vcc-chat-sidebar {
        height: 40vh;
        border-bottom: 1px solid #e1e5e9;
        border-right: none;
    }
    
    .vcc-vendor-dashboard-page .vcc-chat-main {
        height: 60vh;
    }
    
    /* Customer chat mobile */
    .vcc-chat-only-page .vcc-chat-page {
        padding: 10px;
    }
    
    .vcc-chat-only-page .vcc-chat-container {
        height: 95vh;
        max-width: 100%;
        border-radius: 8px;
    }
    
    .vcc-chat-only-page .vcc-chat-header {
        border-radius: 8px 8px 0 0;
    }
    
    .vcc-chat-only-page .vcc-chat-input-container {
        border-radius: 0 0 8px 8px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .vcc-chat-only-page .vcc-chat-page {
        padding: 5px;
    }
    
    .vcc-chat-only-page .vcc-chat-container {
        height: 98vh;
        border-radius: 4px;
    }
    
    .vcc-chat-only-page .vcc-chat-header {
        padding: 12px 16px;
        border-radius: 4px 4px 0 0;
    }
    
    .vcc-chat-only-page .vcc-chat-input-container {
        padding: 12px;
        border-radius: 0 0 4px 4px;
    }
} 

/* Shop Chat Button Styles */
.vcc-shop-chat-button-container {
    margin-top: 8px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

/* Ensure chat button appears in the same actions container */
.woocommerce ul.products li.product .vcc-shop-chat-button-container {
    display: block;
    clear: both;
    margin-top: 8px;
}

/* For themes that use flexbox for product actions */
.product-actions .vcc-shop-chat-button-container,
.product-buttons .vcc-shop-chat-button-container,
.mf-product-details-hover .vcc-shop-chat-button-container {
    margin-top: 8px;
    flex: 1 1 100%;
    width: 100%;
}

.vcc-shop-chat-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent !important;
    color: #CC8F00 !important;
    border: 2px solid #CC8F00 !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.vcc-shop-chat-button:hover {
    background: #CC8F00 !important;
    color: white !important;
    border-color: #CC8F00 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(204, 143, 0, 0.3);
    text-decoration: none;
}

.vcc-shop-chat-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(204, 143, 0, 0.2);
}

.vcc-shop-chat-button .vcc-chat-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.vcc-shop-chat-button .vcc-chat-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive design for shop chat button */
@media (max-width: 768px) {
    .vcc-shop-chat-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .vcc-shop-chat-button .vcc-chat-icon {
        width: 14px;
        height: 14px;
    }
}

/* Show chat button on product hover - target specific hover container */
.woocommerce ul.products li.product:hover .mf-product-details-hover .vcc-shop-chat-button-container,
.woocommerce ul.products li.product .mf-product-details-hover:hover .vcc-shop-chat-button-container,
.woocommerce-page ul.products li.product:hover .mf-product-details-hover .vcc-shop-chat-button-container,
.woocommerce-page ul.products li.product .mf-product-details-hover:hover .vcc-shop-chat-button-container,
.product:hover .mf-product-details-hover .vcc-shop-chat-button-container,
.product .mf-product-details-hover:hover .vcc-shop-chat-button-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fallback for other themes */
.woocommerce ul.products li.product:hover .vcc-shop-chat-button-container,
.woocommerce-page ul.products li.product:hover .vcc-shop-chat-button-container,
.product:hover .vcc-shop-chat-button-container,
.product-item:hover .vcc-shop-chat-button-container,
.wc-block-grid__product:hover .vcc-shop-chat-button-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Specific styling for Martfury theme hover container */
.mf-product-details-hover .vcc-shop-chat-button-container {
    margin-top: 8px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.mf-product-details-hover .vcc-shop-chat-button {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 10;
}

/* Ensure shop chat button works with different themes */
.woocommerce ul.products li.product .vcc-shop-chat-button-container,
.woocommerce-page ul.products li.product .vcc-shop-chat-button-container {
    margin-top: 8px;
    width: 100%;
}

.woocommerce ul.products li.product .vcc-shop-chat-button,
.woocommerce-page ul.products li.product .vcc-shop-chat-button {
    width: 100%;
    margin: 0;
}

/* Override theme button styles */
.vcc-shop-chat-button:focus {
    outline: 2px solid #CC8F00;
    outline-offset: 2px;
}