/* Multi Contact Chat Widget Styles */
.mcc-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.mcc-widget.mcc-bottom-right {
    bottom: 20px;
    right: 20px;
}

.mcc-widget.mcc-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Chat Button */
.mcc-chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mcc-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.mcc-chat-button svg {
    transition: transform 0.3s ease;
}

.mcc-chat-button.active svg {
    transform: rotate(180deg);
}

/* Chat Pulse Animation */
.mcc-chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.3);
    animation: mcc-pulse 2s infinite;
}

@keyframes mcc-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Chat Panel */
.mcc-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcc-widget.mcc-bottom-left .mcc-chat-panel {
    left: 0;
    right: auto;
}

.mcc-chat-panel.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Panel Header */
.mcc-panel-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.mcc-header-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mcc-avatar img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mcc-header-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.mcc-header-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.mcc-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mcc-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Options */
.mcc-contact-options {
    padding: 20px;
    background: #fff;
}

.mcc-contact-text p {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mcc-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mcc-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mcc-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mcc-contact-btn.messenger {
    background: var(--mcc-messenger-color, #0084FF);
}

.mcc-contact-btn.zalo {
    background: var(--mcc-zalo-color, #0068FF);
}

.mcc-contact-btn.email {
    background: var(--mcc-email-color, #EA4335);
}

.mcc-contact-btn.hotline {
    background: var(--mcc-hotline-color, #34A853);
}

/* Contact Lists */
.mcc-contact-list {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcc-contact-list.show {
    display: flex;
    transform: translateX(0);
}

.mcc-contact-list-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mcc-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mcc-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mcc-contact-list-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mcc-contact-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
    max-height: 400px;
}

/* Department Groups */
.mcc-department {
    margin-bottom: 20px;
}

.mcc-department-title {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    padding: 0 20px;
}

/* Contact Items */
.mcc-contact-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.mcc-contact-item:hover {
    background: #f8f9fa;
}

.mcc-contact-item:last-child {
    border-bottom: none;
}

.mcc-contact-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mcc-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-form{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
}
.chat-form .mcc-header-text{
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 5px;
}
.mcc-contact-info {
    flex: 1;
}

.mcc-contact-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.mcc-contact-action {
    background: #2196F3;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.mcc-contact-action:hover {
    background: #1976D2;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 400px) {
    .mcc-chat-panel {
        width: 320px;
        right: -10px;
    }
    
    .mcc-widget.mcc-bottom-left .mcc-chat-panel {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 350px) {
    .mcc-chat-panel {
        width: 300px;
        right: -20px;
    }
    
    .mcc-widget.mcc-bottom-left .mcc-chat-panel {
        left: -20px;
        right: auto;
    }
    
    .mcc-contact-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mcc-contact-btn {
        padding: 12px;
        font-size: 12px;
    }
}

/* Animation Classes */
.mcc-fade-in {
    animation: mccFadeIn 0.3s ease;
}

.mcc-slide-in-right {
    animation: mccSlideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcc-slide-in-left {
    animation: mccSlideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mccFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mccSlideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes mccSlideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Scrollbar Styling */
.mcc-contact-list-content::-webkit-scrollbar {
    width: 4px;
}

.mcc-contact-list-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mcc-contact-list-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.mcc-contact-list-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.mcc-loading {
    position: relative;
}

.mcc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: mccSpin 1s linear infinite;
}

@keyframes mccSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mcc-chat-panel {
        background: #1e1e1e;
        color: #fff;
    }
    
    .mcc-contact-options {
        background: #1e1e1e;
    }
    
    .mcc-contact-list {
        background: #1e1e1e;
    }
    
    .mcc-contact-text p {
        color: #aaa;
    }
    
    .mcc-contact-item:hover {
        background: #2a2a2a;
    }
    
    .mcc-contact-item {
        border-bottom-color: #333;
    }
    
    .mcc-contact-name {
        color: #fff;
    }
    
    .mcc-department-title {
        color: #aaa;
    }
}

/* Accessibility */
.mcc-contact-btn:focus,
.mcc-back-btn:focus,
.mcc-close-btn:focus,
.mcc-contact-action:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .mcc-chat-button {
        border: 2px solid #000;
    }
    
    .mcc-contact-btn {
        border: 1px solid #000;
    }
    
    .mcc-chat-panel {
        border: 2px solid #000;
    }
}