/*  Chat Box Settings Styles */
.acb-chat-container {
    display: flex;
    // height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    margin: 12px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Loading and Error States */
.acb-loading,
.acb-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.acb-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.acb-error h3 {
    color: #f44336;
    margin-bottom: 8px;
}

.acb-error p {
    color: #666;
    margin-bottom: 16px;
}

/* User Sidebar */
.acb-user-sidebar {
    width: 350px;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acb-user-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.acb-user-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.acb-current-user {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.acb-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dddddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.acb-user-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.acb-user-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.acb-online-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acb-online-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.acb-signout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.acb-signout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}



/* Authentication login page Styles */
.acb-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.acb-auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.acb-auth-box h2 {
    margin-bottom: 8px;
    color: #333;
}

.acb-auth-box p {
    color: #666;
    margin-bottom: 24px;
}

.acb-google-btn,
.acb-email-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.acb-google-btn:hover {
    background: #f5f5f5;
}

.acb-email-btn:hover {
    background: #f5f5f5;
}

.acb-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.acb-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.acb-divider span {
    background: #fff;
    padding: 0 16px;
    font-size: 12px;
}

.acb-email-form {
    margin-top: 20px;
}

.acb-email-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.acb-email-form input:focus {
    border-color: #2196f3;
}

.acb-form-actions {
    display: flex;
    gap: 8px;
}

.acb-form-actions button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.acb-form-actions button:first-child {
    background: #2196f3;
    color: #fff;
}

.acb-form-actions button:first-child:hover {
    background: #1976d2;
}

.acb-form-actions button:last-child {
    background: #f5f5f5;
    color: #333;
}

.acb-form-actions button:last-child:hover {
    background: #e0e0e0;
}

/* Profile Image Upload Styles */
.acb-profile-image-section {
    margin-bottom: 15px;
}

.acb-upload-profile-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.acb-upload-profile-btn:hover {
    border-color: #2196f3;
    background: #f0f8ff;
    color: #2196f3;
}

.acb-profile-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acb-upload-profile-btn i {
    font-size: 18px;
}

.acb-retry-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.acb-retry-btn:hover {
    background: #1976d2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acb-chat-container {
        flex-direction: column;
    }

    .acb-user-sidebar {
        width: 100%;
        height: 200px;
    }

    .acb-message-content {
        max-width: 80%;
    }

    .acb-emoji-picker {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scrollbar Styling */
.acb-users-list::-webkit-scrollbar,
.acb-messages-container::-webkit-scrollbar {
    width: 6px;
}

.acb-users-list::-webkit-scrollbar-track,
.acb-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.acb-users-list::-webkit-scrollbar-thumb,
.acb-messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.acb-users-list::-webkit-scrollbar-thumb:hover,
.acb-messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

// Auth login page end 

/* Search Container */
.acb-search-container {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.acb-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.acb-search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.acb-refresh-users-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.acb-refresh-users-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Users List */
.acb-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.acb-user-item {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    margin-bottom: 8px;
    position: relative;
    background: white;
    border: 2px solid transparent;
}

.acb-user-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.acb-user-item.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.acb-user-item.active .acb-user-details h5,
.acb-user-item.active .acb-user-status,
.acb-user-item.active .acb-last-message-time {
    color: white;
}

.acb-user-item.has-new-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    animation: notification-glow 2s infinite;
}

@keyframes notification-glow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

.acb-user-avatar-container {
    position: relative;
    margin-right: 16px;
}

.acb-online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.acb-online-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.acb-online-indicator.offline {
    background: #94a3b8;
}

.acb-new-message-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.acb-user-details h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.acb-user-status {
    font-size: 13px;
    color: #64748b;
    transition: color 0.3s ease;
}

.acb-last-message-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* Chat Area */
.acb-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.acb-chat-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.acb-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.acb-chat-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.acb-chat-user-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Messages Container */
.acb-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.acb-messages-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.acb-date-divider {
    text-align: center;
    margin: 32px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.acb-date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.acb-date-divider span {
    background: #f8fafc;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.acb-message {
    display: flex;
    margin-bottom: 24px;
    gap: 16px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acb-message.own {
    flex-direction: row-reverse;
}

.acb-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acb-message-content {
    max-width: 70%;
}

.acb-message.own .acb-message-content {
    text-align: right;
}

.acb-message-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acb-message.own .acb-message-header {
    justify-content: flex-end;
}

.acb-message-sender {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.acb-message-time {
    font-size: 12px;
    color: #94a3b8;
}

.acb-message-body {
    background: white;
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.acb-message.own .acb-message-body {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: #4f46e5;
}

.acb-message-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 20px;
    pointer-events: none;
}

.acb-message-body p {
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.acb-message-image {
    max-width: 280px;
    max-height: 280px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.acb-message-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.acb-message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.acb-message-file:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.acb-message-file a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.acb-message-file a:hover {
    color: #7c3aed;
}

/* Message Input */
.acb-message-input {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    backdrop-filter: blur(10px);
}

.acb-input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acb-emoji-btn,
.acb-attach-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.acb-emoji-btn:hover,
.acb-attach-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.acb-emoji-btn:active,
.acb-attach-btn:active {
    transform: scale(0.95);
}

.acb-emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    z-index: 1000;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acb-emoji-picker .acb-emoji-btn {
    font-size: 20px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    transition: background-color 0.15s ease;
}

.acb-emoji-picker .acb-emoji-btn:hover {
    background: #f3f4f6;
}

.acb-message-text {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1e293b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input.acb-message-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    appearance: none;
    background-color: #ffff;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    box-sizing: border-box;
    color: #000000;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    outline: 0;
    padding: 11px 5px 11px 12px;
    width: 100%;
}

.acb-message-text:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.acb-message-text:hover:not(:focus) {
    border-color: #e2e8f0;
    background: #ffffff;
}

.acb-message-text::placeholder {
    color: #64748b;
    font-weight: 400;
}

.acb-send-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    font-size: 14px;
}

.acb-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.acb-send-btn:active:not(:disabled) {
    transform: translateY(0);
}

.acb-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .acb-message-input {
        padding: 16px 20px;
        gap: 8px;
    }

    .acb-emoji-btn,
    .acb-attach-btn,
    .acb-send-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .acb-message-text {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}


/* No Chat Selected */
.acb-no-chat-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.acb-no-chat-selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.acb-welcome-message {
    text-align: center;
    color: #64748b;
    position: relative;
    z-index: 1;
}

.acb-welcome-message i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.acb-welcome-message h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 600;
}

.acb-welcome-message p {
    font-size: 16px;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .acb-user-sidebar {
        width: 300px;
    }

    .acb-message-content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .acb-chat-container {
        margin: 0;
        border-radius: 0;
        // height: 100vh;
    }

    .acb-user-sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .acb-user-sidebar.open {
        transform: translateX(0);
    }

    .acb-chat-area {
        width: 100%;
    }

    .acb-chat-header {
        padding: 16px 20px;
    }

    .acb-messages-container {
        padding: 16px 20px;
    }

    .acb-message-input {
        padding: 16px 20px;
    }

    .acb-message-content {
        max-width: 85%;
    }

    .acb-emoji-picker {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .acb-user-header {
        padding: 16px;
    }

    .acb-search-container {
        padding: 16px;
    }

    .acb-message-content {
        max-width: 90%;
    }

    .acb-message-image {
        max-width: 200px;
        max-height: 200px;
    }
}

/* Scrollbar Styling */
.acb-users-list::-webkit-scrollbar,
.acb-messages-container::-webkit-scrollbar {
    width: 8px;
}

.acb-users-list::-webkit-scrollbar-track,
.acb-messages-container::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
}

.acb-users-list::-webkit-scrollbar-thumb,
.acb-messages-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 10px;
    border: 2px solid rgba(248, 250, 252, 0.8);
}

.acb-users-list::-webkit-scrollbar-thumb:hover,
.acb-messages-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Mobile Menu Toggle */
.acb-mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.acb-mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

@media (max-width: 768px) {
    .acb-mobile-menu-toggle {
        display: block;
    }
}

/* Loading Animation */
.acb-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.acb-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typing 1.4s infinite;
}

.acb-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.acb-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/*  END of Chat Box Settings Styles */



/* Settings Page Styles */
.settings-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px;
    background-color: #ffffff;
}

.settings-header {
    margin-bottom: 32px;

    .settings-title {
        font-size: 30px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 8px;
    }

    .settings-description {
        color: #6b7280;
    }
}

.setup-guide {
    margin-bottom: 32px;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 24px;

    .setup-guide-title {
        font-size: 24px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 16px;
    }

    .setup-step {
        margin-bottom: 24px;

        .step-title {
            font-size: 18px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 12px;
        }

        .step-list {
            list-style: decimal;
            list-style-position: inside;
            color: #6b7280;

            li {
                margin-bottom: 8px;
                line-height: 1.5;
            }
        }

        .sub-step-list {
            list-style: disc;
            list-style-position: inside;
            margin-left: 16px;
            margin-top: 8px;

            li {
                margin-bottom: 4px;
            }
        }

        .troubleshooting-list {
            list-style: disc;
            list-style-position: inside;
            color: #6b7280;

            li {
                margin-bottom: 8px;
                line-height: 1.5;

                strong {
                    color: #1f2937;
                }
            }
        }
    }

    .code-block {
        background-color: #1f2937;
        color: #10b981;
        padding: 16px;
        border-radius: 8px;
        overflow-x: auto;
        font-size: 14px;
        margin-top: 8px;
        white-space: pre-wrap;
        font-family: 'Courier New', monospace;
    }

    .external-link {
        color: #2563eb;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.message-alert {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;

    &.message-success {
        background-color: #d1fae5;
        color: #047857;
        border: 1px solid #a7f3d0;
    }

    &.message-error {
        background-color: #fee2e2;
        color: #dc2626;
        border: 1px solid #fca5a5;
    }
}

.config-form {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;

    .form-fields {
        display: flex;
        flex-direction: column;
        gap: 24px;

        .field-group {
            display: flex;
            flex-direction: column;

            .field-label {
                display: block;
                font-size: 14px;
                font-weight: 500;
                color: #374151;
                margin-bottom: 8px;
            }

            .field-input {
                width: 100%;
                padding: 8px 12px;
                border: 1px solid #d1d5db;
                border-radius: 6px;
                font-size: 14px;
                transition: all 0.2s ease;

                &:focus {
                    outline: none;
                    border-color: #3b82f6;
                    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
                }

                &::placeholder {
                    color: #9ca3af;
                }
            }

            .field-help {
                color: #6b7280;
                font-size: 12px;
                margin-top: 4px;
            }
        }

        .button-group {
            display: flex;
            gap: 16px;

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

                &:disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }

                &.btn-primary {
                    background-color: #2563eb;
                    color: #ffffff;

                    &:hover:not(:disabled) {
                        background-color: #1d4ed8;
                    }
                }

                &.btn-secondary {
                    background-color: #6b7280;
                    color: #ffffff;

                    &:hover:not(:disabled) {
                        background-color: #4b5563;
                    }
                }
            }
        }
    }
}

.info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 24px;

    .info-title {
        font-size: 18px;
        font-weight: 600;
        color: #1e40af;
        margin-bottom: 16px;
    }

    .info-list {
        list-style: decimal;
        list-style-position: inside;
        color: #1e40af;

        li {
            margin-bottom: 8px;
            line-height: 1.5;
        }
    }

    .external-link {
        color: #2563eb;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    .note-box {
        margin-top: 16px;
        padding: 16px;
        background-color: #fef3c7;
        border: 1px solid #fcd34d;
        border-radius: 6px;

        .note-title {
            color: #92400e;
            font-weight: 600;
        }

        .note-text {
            color: #92400e;
        }

        .note-list {
            list-style: disc;
            list-style-position: inside;
            margin-top: 8px;
            color: #92400e;

            li {
                margin-bottom: 4px;
            }
        }
    }
}

// Responsive Design
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }

    .setup-guide {
        padding: 16px;
    }

    .config-form {
        padding: 16px;
    }

    .info-box {
        padding: 16px;
    }

    .button-group {
        flex-direction: column;

        .btn {
            width: 100%;
        }
    }
}

/*  END of Chat Box Settings Styles */