    :root {
        --primary-color: #4361ee;
        --secondary-color: #3f37c9;
        --accent-color: #4895ef;
        --light-color: #f8f9fa;
        --dark-color: #212529;
        --success-color: #4cc9f0;
        --warning-color: #f72585;
        --border-radius: 20px;
        --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
    }

    /* Chat Icon */
    .chat-icon {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
        z-index: 1000;
        transition: var(--transition);
        animation: pulse 2s infinite;
    }

    .chat-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
        }

        70% {
            box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
        }
    }

    /* Chat Container - Initially Hidden */
    .chatbot-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 90px;
        height: 90px;
        max-width: 450px;
        max-height: 80vh;
        min-height: 600px;
        background-color: white;
        border-radius: 50%;
        box-shadow: var(--box-shadow);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        transform: scale(0.1);
        transform-origin: bottom right;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }

    .chatbot-container.open {
        width: 100%;
        height: 80vh;
        border-radius: var(--border-radius);
        opacity: 1;
        transform: scale(1);
    }

    /* Rest of the styles remain the same as previous example */
    .chatbot-header {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 18px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .chatbot-header .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 18px;
        font-weight: bold;
    }

    .chatbot-header .info {
        flex: 1;
    }

    .chatbot-header .info h2 {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 2px;
        word-break: break-all;
    }

    .chatbot-header .info p {
        font-size: 12px;
        opacity: 0.9;
    }

    .chatbot-header .actions {
        display: flex;
        gap: 10px;
    }

    .chatbot-header .actions button {
        background: none;
        border: none;
        color: white;
        font-size: 16px;
        cursor: pointer;
        opacity: 0.8;
        transition: var(--transition);
    }

    .chatbot-header .actions button:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .chatbot-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        scroll-behavior: smooth;
        background-color: #fafbff;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .message {
        max-width: 80%;
        padding: 12px 16px;
        border-radius: var(--border-radius);
        position: relative;
        animation: fadeIn 0.3s ease;
    }

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

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

    .bot-message {
        align-self: flex-start;
        background-color: white;
        color: var(--dark-color);
        border: 1px solid #e9ecef;
        border-bottom-left-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .user-message {
        align-self: flex-end;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        border-bottom-right-radius: 4px;
    }

    .message-time {
        display: block;
        font-size: 10px;
        margin-top: 6px;
        opacity: 0.7;
        text-align: right;
    }

    .bot-message .message-time {
        color: #6c757d;
    }

    .user-message .message-time {
        color: rgba(255, 255, 255, 0.7);
    }

    .user-message-time {
       text-align: end;
    }

    .typing-indicator {
        display: flex;
        align-self: flex-start;
        padding: 12px 16px;
        background-color: white;
        border-radius: var(--border-radius);
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        gap: 4px;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background-color: #adb5bd;
        border-radius: 50%;
        animation: typingAnimation 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

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

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

    @keyframes typingAnimation {

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

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

    .chatbot-input {
        padding: 15px;
        background-color: white;
        border-top: 1px solid #e9ecef;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .chatbot-input textarea {
        flex: 1;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        padding: 12px 16px;
        resize: none;
        max-height: 120px;
        outline: none;
        transition: var(--transition);
        overflow: hidden;
        font-size: 14px;
    }

    .chatbot-input textarea:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(72, 149, 239, 0.2);
    }

    .chatbot-input button {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .chatbot-input button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    }

    .chatbot-input button:disabled {
        background: #e9ecef;
        color: #adb5bd;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .quick-replies {
        display: flex;
        gap: 8px;
        padding: 0 15px 15px;
        flex-wrap: wrap;
    }

    .quick-reply {
        background-color: white;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        padding: 8px 14px;
        font-size: 13px;
        cursor: pointer;
        transition: var(--transition);
    }

    .quick-reply:hover {
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }

    @media (max-width: 500px) {
        .chatbot-container.open {
            width: calc(100% - 20px);
            height: 85vh;
            bottom: 10px;
            right: 10px;
        }

        .message {
            max-width: 90%;
        }

        .chat-icon {
            bottom: 20px;
            right: 20px;
        }
    }

    
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
        margin-left: 100px;
    }

    ::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }