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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        /* Chatbot Toggle Button */
        .chat-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 65px;
            height: 65px;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .chat-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
        }

        .chat-toggle svg {
            width: 30px;
            height: 30px;
            fill: white;
        }

        .chat-toggle.hidden {
        display: none !important;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 20px;
            height: 20px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
            font-weight: bold;
            animation: pulse 2s infinite;
        }

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

        /* Chat Container */
        .chat-container {
            position: fixed;
            bottom: 110px;
            right: 30px;
            width: 400px;
            height: 600px;
            background: #1f1f1f;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
            transform-origin: bottom right;
            border: 1px solid #333;
        }

        .chat-container.hidden {
            transform: scale(0);
            opacity: 0;
            pointer-events: none;
        }

        /* Chat Header */
        .chat-header {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
        }

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

        .bot-avatar {
            width: 45px;
            height: 45px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #dc2626;
            font-size: 20px;
        }

        .bot-info h3 {
            font-size: 18px;
            margin-bottom: 2px;
        }

        .bot-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            opacity: 0.9;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .close-btn {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .close-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* Chat Messages */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: #1a1a1a;
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: #2a2a2a;
        }

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

        .message {
            margin-bottom: 15px;
            animation: slideIn 0.3s ease;
        }

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

        .message.bot {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .message.user {
            display: flex;
            justify-content: flex-end;
        }

        .bot-avatar-small {
            width: 32px;
            height: 32px;
            background: #dc2626;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: bold;
            flex-shrink: 0;
        }

        .message-content {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 15px;
            word-wrap: break-word;
        }

        .bot .message-content {
            background: #2a2a2a;
            color: #e5e5e5;
            border-bottom-left-radius: 5px;
        }

        .user .message-content {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: white;
            border-bottom-right-radius: 5px;
        }

        .typing-indicator {
            display: flex;
            gap: 4px;
            padding: 15px;
            background: #2a2a2a;
            border-radius: 15px;
            border-bottom-left-radius: 5px;
            width: fit-content;
        }

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

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

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

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.5;
            }
            30% {
                transform: translateY(-10px);
                opacity: 1;
            }
        }

        /* Quick Actions */
        .quick-actions {
            padding: 10px 20px;
            background: #252525;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            border-top: 1px solid #333;
        }

        .quick-actions::-webkit-scrollbar {
            height: 4px;
        }

        .quick-actions::-webkit-scrollbar-track {
            background: #2a2a2a;
        }

        .quick-actions::-webkit-scrollbar-thumb {
            background: #dc2626;
            border-radius: 2px;
        }

        .quick-action-btn {
            padding: 8px 15px;
            background: #2a2a2a;
            border: 1px solid #dc2626;
            border-radius: 20px;
            color: #e5e5e5;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .quick-action-btn:hover {
            background: #dc2626;
            color: white;
            transform: translateY(-2px);
        }

        /* Chat Input */
        .chat-input-container {
            padding: 15px;
            background: #252525;
            border-top: 1px solid #333;
        }

        .chat-input-wrapper {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .input-actions {
            display: flex;
            gap: 5px;
        }

        .action-btn {
            width: 35px;
            height: 35px;
            background: #2a2a2a;
            border: 1px solid #333;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
        }

        .action-btn:hover {
            background: #333;
            border-color: #dc2626;
        }

        .action-btn svg {
            width: 18px;
            height: 18px;
            fill: #999;
            transition: fill 0.3s ease;
        }

        .action-btn:hover svg {
            fill: #dc2626;
        }

        .chat-input {
            flex: 1;
            padding: 12px 15px;
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 25px;
            color: #e5e5e5;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        .chat-input:focus {
            border-color: #dc2626;
            background: #1f1f1f;
        }

        .chat-input::placeholder {
            color: #666;
        }

        .send-btn {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .send-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
        }

        .send-btn:active {
            transform: scale(0.95);
        }

        .send-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* File Upload */
        .file-input {
            display: none;
        }

        .file-preview {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: #2a2a2a;
            border-radius: 10px;
            margin-bottom: 10px;
            animation: slideIn 0.3s ease;
        }

        .file-info {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .file-icon {
            width: 30px;
            height: 30px;
            background: #dc2626;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }

        .file-name {
            color: #e5e5e5;
            font-size: 13px;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-remove {
            width: 24px;
            height: 24px;
            background: rgba(220, 38, 38, 0.2);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .file-remove:hover {
            background: rgba(220, 38, 38, 0.4);
        }

        .file-remove svg {
            width: 14px;
            height: 14px;
            fill: #dc2626;
        }

        /* Emoji Picker */
        .emoji-picker {
            position: absolute;
            bottom: 60px;
            left: 15px;
            width: 300px;
            height: 250px;
            background: #1f1f1f;
            border: 1px solid #333;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
            display: none;
            flex-direction: column;
            animation: fadeInUp 0.3s ease;
            z-index: 1000;
        }

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

        .emoji-picker.show {
            display: flex;
        }

        .emoji-header {
            padding: 10px;
            border-bottom: 1px solid #333;
            display: flex;
            gap: 5px;
        }

        .emoji-category {
            flex: 1;
            padding: 5px;
            background: #2a2a2a;
            border: none;
            border-radius: 5px;
            color: #999;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .emoji-category:hover,
        .emoji-category.active {
            background: #dc2626;
            color: white;
        }

        .emoji-content {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 5px;
        }

        .emoji-content::-webkit-scrollbar {
            width: 6px;
        }

        .emoji-content::-webkit-scrollbar-track {
            background: #2a2a2a;
        }

        .emoji-content::-webkit-scrollbar-thumb {
            background: #dc2626;
            border-radius: 3px;
        }

        .emoji-item {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 5px;
            font-size: 20px;
            transition: all 0.2s ease;
        }

        .emoji-item:hover {
            background: #2a2a2a;
            transform: scale(1.2);
        }

        /* Image Preview in Message */
        .message-image {
            max-width: 200px;
            border-radius: 10px;
            margin-top: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .message-image:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .message-file {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            margin-top: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .message-file:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        .message-file-icon {
            width: 35px;
            height: 35px;
            background: #dc2626;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }

        .message-file-info {
            flex: 1;
        }

        .message-file-name {
            font-size: 13px;
            font-weight: 600;
        }

        .message-file-size {
            font-size: 11px;
            opacity: 0.7;
            margin-top: 2px;
        }

        /* Welcome Screen */
        .welcome-screen {
            text-align: center;
            padding: 40px 20px;
            color: #e5e5e5;
        }

        .welcome-logo {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .welcome-text {
            font-size: 16px;
            color: #999;
            margin-bottom: 30px;
        }

        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            text-align: left;
            max-width: 300px;
            margin: 0 auto;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: #2a2a2a;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .feature-item:hover {
            background: #333;
            transform: translateX(5px);
        }

        .feature-icon {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }

        /* Responsive Design */
        @media (max-width: 480px) {
            .chat-container {
                width: 100%;
                height: 100%;
                bottom: 0;
                right: 0;
                border-radius: 0;
                max-height: 100vh;
            }

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

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