        :root {
            --primary-color: #a09216;
            --primary-hover: #8a7b12;
            --secondary-color: #f5f5f5;
            --text-color: #333;
            --light-text: #666;
            --user-message: #DCF8C6;
            --bot-message: #FFFFFF;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        
        /* Floating button styles */
        .chat-float-button {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 70px;
            height: 70px;
            font-size: 1.8em;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: var(--shadow);
            z-index: 1000;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        .chat-float-button:hover {
            background-color: var(--primary-hover);
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 6px 16px rgba(160, 146, 22, 0.3);
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(160, 146, 22, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(160, 146, 22, 0); }
            100% { box-shadow: 0 0 0 0 rgba(160, 146, 22, 0); }
        }

        /* Chat container styles */
        .chat-container {
            background-color: #fff;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            width: 90%;
            max-width: 500px;
            height: 70vh;
            max-height: 700px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: fixed;
            bottom: 120px;
            left: 30px;
            z-index: 999;
            transform: translateY(150%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .chat-container.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        /* Chat header */
        .chat-header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: white;
            padding: 15px 20px;
            text-align: center;
            font-size: 1.2em;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .chat-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
        }

        .chat-header .close-button {
            background: none;
            border: none;
            color: white;
            font-size: 1.8em;
            cursor: pointer;
            padding: 0 10px;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .chat-header .close-button:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

        /* Chat body */
        .chat-body {
            flex-grow: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: var(--secondary-color);
            background-image: radial-gradient(circle at 10% 20%, rgba(240, 240, 240, 0.8) 0%, rgba(255,255,255,0.8) 90%);
            display: flex;
            flex-direction: column;
        }

        .message {
            max-width: 85%;
            margin-bottom: 15px;
            padding: 12px 18px;
            border-radius: var(--border-radius);
            line-height: 1.5;
            word-wrap: break-word;
            position: relative;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            animation: fadeIn 0.3s ease-out;
        }

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

        .user-message {
            align-self: flex-end;
            background-color: var(--user-message);
            color: var(--text-color);
            border-bottom-right-radius: 5px;
            margin-left: auto;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .bot-message {
            align-self: flex-start;
            background-color: var(--bot-message);
            color: var(--text-color);
            border-bottom-left-radius: 5px;
            margin-right: auto;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .message-time {
            display: block;
            font-size: 0.7em;
            color: var(--light-text);
            margin-top: 5px;
            text-align: left;
        }

        /* Chat footer */
        .chat-footer {
            display: flex;
            padding: 15px;
            border-top: 1px solid #eee;
            background-color: #fff;
            align-items: center;
            gap: 10px;
        }

        .chat-footer input {
            flex-grow: 1;
            border: 1px solid #ddd;
            border-radius: 25px;
            padding: 12px 20px;
            font-size: 1em;
            outline: none;
            text-align: right;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            font-family: 'Cairo', sans-serif;
        }

        .chat-footer input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(160, 146, 22, 0.2);
        }

        .chat-footer button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            font-size: 1.2em;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .chat-footer button:hover {
            background-color: var(--primary-hover);
            transform: scale(1.05);
        }

        .chat-footer button:active {
            transform: scale(0.98);
        }

        /* Typing indicator */
        .typing-indicator {
            display: inline-flex;
            padding: 10px 15px;
            background-color: var(--bot-message);
            border-radius: var(--border-radius);
            margin-bottom: 15px;
            align-self: flex-start;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .typing-indicator span {
            height: 8px;
            width: 8px;
            margin: 0 2px;
            background-color: var(--light-text);
            border-radius: 50%;
            display: inline-block;
            animation: bounce 1.5s infinite ease-in-out;
        }

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

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

        @keyframes bounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }

        /* Scrollbar styles */
        .chat-body::-webkit-scrollbar {
            width: 6px;
        }

        .chat-body::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.05);
            border-radius: 10px;
        }

        .chat-body::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }

        .chat-body::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.2);
        }

        /* Welcome message */
        .welcome-message {
            text-align: center;
            padding: 20px;
            margin-bottom: 20px;
            background-color: rgba(255,255,255,0.8);
            border-radius: var(--border-radius);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .welcome-message h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .welcome-message p {
            color: var(--light-text);
            font-size: 0.9em;
        }

        /* Responsive adjustments */
        @media (max-width: 600px) {
            .chat-container {
                width: 100%;
                height: 100vh;
                max-height: none;
                border-radius: 0;
                bottom: 0;
                left: 0;
                transform: translateY(100%);
            }
            
            .chat-float-button {
                bottom: 20px;
                left: 20px;
                width: 60px;
                height: 60px;
            }
            
            .message {
                max-width: 90%;
            }
        }
