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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #000;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            background-color: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(234, 88, 12, 0.2);
        }

        .header-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
        }

        .logo-safe {
            color: #EA580C;
        }

        .logo-class {
            color: #fff;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding-top: 64px;
            padding-bottom: 1rem;
            padding-left: 1rem;
            padding-right: 1rem;
            max-width: 1536px;
            margin: 0 auto;
            width: 100%;
        }

        .ai-header {
            background-color: #111827;
            border-radius: 1rem 1rem 0 0;
            border: 1px solid rgba(234, 88, 12, 0.2);
            border-bottom: 0;
            padding: 1.5rem;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: #9CA3AF;
            text-decoration: none;
            margin-bottom: 1rem;
            transition: color 0.3s;
        }

        .back-button:hover {
            color: #fff;
        }

        .ai-title-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .ai-icon {
            background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
            padding: 0.75rem;
            border-radius: 0.75rem;
        }

        .ai-title {
            font-size: 2rem;
            font-weight: bold;
        }

        .ai-subtitle {
            color: #9CA3AF;
        }

        /* Chat Area */
        .chat-area {
            background: rgba(17, 24, 39, 0.5);
            border-left: 1px solid rgba(234, 88, 12, 0.2);
            border-right: 1px solid rgba(234, 88, 12, 0.2);
            padding: 1.5rem;
            height: calc(100vh - 400px);
            overflow-y: auto;
        }

        .quick-questions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .quick-question-btn {
            background-color: #1F2937;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-align: left;
        }

        .quick-question-btn:hover {
            background-color: #374151;
            border-color: #EA580C;
        }

        .quick-question-btn svg {
            color: #EA580C;
            flex-shrink: 0;
            transition: transform 0.3s;
        }

        .quick-question-btn:hover svg {
            transform: scale(1.1);
        }

        .quick-question-btn span {
            color: #fff;
            font-weight: 500;
        }

        .messages-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .message {
            display: flex;
            max-width: 80%;
        }

        .message.user {
            align-self: flex-end;
            margin-left: auto;
        }

        .message.ai {
            align-self: flex-start;
        }

        .message-content {
            border-radius: 1rem;
            padding: 1rem;
        }

        .message.user .message-content {
            background-color: #EA580C;
            color: #fff;
        }

        .message.ai .message-content {
            background-color: #1F2937;
            color: #F3F4F6;
            border: 1px solid #374151;
        }

        .message-image {
            border-radius: 0.5rem;
            margin-bottom: 0.75rem;
            max-width: 100%;
            height: auto;
        }

        .message-text {
            white-space: pre-wrap;
        }

        .message-time {
            font-size: 0.75rem;
            opacity: 0.7;
            margin-top: 0.5rem;
            display: block;
        }

        .ai-label {
            color: #EA580C;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .typing-indicator {
            display: flex;
            gap: 0.5rem;
            padding: 1rem;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background-color: #EA580C;
            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);
            }
            30% {
                transform: translateY(-10px);
            }
        }

        /* Input Area */
        .input-area {
            background-color: #111827;
            border-radius: 0 0 1rem 1rem;
            border: 1px solid rgba(234, 88, 12, 0.2);
            border-top: 0;
            padding: 1.5rem;
        }

        .image-preview {
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .image-preview img {
            max-width: 300px;
            border-radius: 0.5rem;
            border: 2px solid #EA580C;
        }

        .remove-image {
            position: absolute;
            top: -0.5rem;
            right: -0.5rem;
            background-color: #DC2626;
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .remove-image:hover {
            background-color: #B91C1C;
        }

        .input-controls {
            display: flex;
            gap: 0.75rem;
        }

        .file-input {
            display: none;
        }

        .upload-btn {
            background-color: #1F2937;
            border: 1px solid #374151;
            color: #fff;
            padding: 0.75rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-btn:hover {
            background-color: #374151;
        }

        .text-input {
            flex: 1;
            background-color: #1F2937;
            border: 1px solid #374151;
            color: #fff;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-family: inherit;
        }

        .text-input:focus {
            outline: none;
            border-color: #EA580C;
            box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
        }

        .send-btn {
            background-color: #EA580C;
            color: #fff;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            border: none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background-color 0.3s;
        }

        .send-btn:hover {
            background-color: #C2410C;
        }

        .send-btn:disabled {
            background-color: #374151;
            cursor: not-allowed;
        }

        .tip {
            color: #6B7280;
            font-size: 0.875rem;
            margin-top: 0.75rem;
            text-align: center;
        }

        @media (max-width: 768px) {
            .ai-title {
                font-size: 1.5rem;
            }

            .chat-area {
                height: calc(100vh - 450px);
            }

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