* {
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0;
            padding: 0;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
        }

        .app-container {
            display: flex;
            height: 100vh;
            height: 100dvh;
            background: #ffffff;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        /* Sidebar Styles */
        .sidebar {
            width: 280px;
            background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%);
            color: white;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            position: relative;
            z-index: 100;
        }

        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .app-title {
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            letter-spacing: -0.5px;
        }

        .app-subtitle {
            font-size: 13px;
            opacity: 0.8;
            margin: 4px 0 0 0;
            font-weight: 400;
        }

        .new-chat-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 14px 18px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            backdrop-filter: blur(10px);
        }

        .new-chat-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .sidebar-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        .chat-history {
            margin-top: 20px;
        }

        .history-item {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .history-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .history-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .history-preview {
            font-size: 12px;
            opacity: 0.7;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Main Chat Area */
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #ffffff;
            position: relative;
        }

        .chat-header {
            padding: 20px 32px;
            border-bottom: 1px solid #e2e8f0;
            background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            backdrop-filter: blur(10px);
        }

        .chat-title {
            font-size: 20px;
            font-weight: 600;
            color: #1e293b;
            margin: 0;
            letter-spacing: -0.5px;
        }

        .header-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .control-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: none;
            background: transparent;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .control-btn:hover {
            background: #f1f5f9;
            color: #0066cc;
            transform: scale(1.05);
        }

        .menu-btn {
            display: none;
        }

        /* Chat Messages */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 32px;
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
            scroll-behavior: smooth;
        }

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

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

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

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .message-container {
            margin-bottom: 32px;
            display: flex;
            flex-direction: column;
            animation: slide-in 0.4s ease-out;
        }

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

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .user-avatar {
            background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
            color: white;
        }

        .ai-avatar {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }

        .message-sender {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
        }

        .message-time {
            font-size: 12px;
            color: #64748b;
            margin-left: auto;
        }

        .message-bubble {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 20px 24px;
            font-size: 15px;
            line-height: 1.6;
            color: #1e293b;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
            max-width: 85%;
            position: relative;
            transition: all 0.2s ease;
        }

        .message-bubble:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .user-message-container {
            align-items: flex-end;
        }

        .user-message-container .message-bubble {
            background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
            color: white;
            border-color: #0066cc;
            margin-left: auto;
        }

        .ai-message-container {
            align-items: flex-start;
        }

        /* Welcome Message */
        .welcome-message {
            text-align: center;
            padding: 60px 20px;
            color: #64748b;
        }

        .welcome-title {
            font-size: 28px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .welcome-subtitle {
            font-size: 16px;
            margin-bottom: 40px;
            color: #64748b;
        }

        .suggestion-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        .suggestion-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            position: relative;
            overflow: hidden;
        }

        .suggestion-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0066cc 0%, #10b981 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .suggestion-card:hover {
            border-color: #0066cc;
            box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
            transform: translateY(-4px);
        }

        .suggestion-card:hover::before {
            transform: scaleX(1);
        }

        .suggestion-title {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 8px;
            font-size: 16px;
        }

        .suggestion-text {
            color: #64748b;
            font-size: 14px;
            line-height: 1.5;
        }

        /* Input Area */
        .input-area {
            padding: 24px 32px;
            background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
            border-top: 1px solid #e2e8f0;
            backdrop-filter: blur(10px);
        }

        .input-container {
            position: relative;
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
        }

        .input-container:focus-within {
            border-color: #0066cc;
            box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
            transform: translateY(-2px);
        }

        .chat-input {
            width: 100%;
            min-height: 56px;
            max-height: 120px;
            padding: 16px 60px 16px 20px;
            border: none;
            border-radius: 14px;
            font-size: 16px;
            line-height: 1.5;
            resize: none;
            outline: none;
            background: transparent;
            color: #1e293b;
            font-family: 'Inter', sans-serif;
        }

        .chat-input::placeholder {
            color: #94a3b8;
        }

        .send-button {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
            border: none;
            border-radius: 12px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
        }

        .send-button:hover:not(:disabled) {
            background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
        }

        .send-button:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            transform: translateY(-50%);
            box-shadow: none;
        }

        /* Loading Indicator */
        .loading-indicator {
            display: none;
            padding: 20px 24px;
            color: #64748b;
            font-size: 14px;
            font-style: italic;
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            margin-bottom: 32px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
            animation: pulse-slow 2s infinite;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* Animations */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Code Styling */
        .message-bubble pre {
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 16px;
            overflow-x: auto;
            margin: 16px 0;
            font-size: 14px;
            line-height: 1.5;
        }

        .message-bubble code {
            background: rgba(0, 0, 0, 0.05);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 14px;
            font-family: 'Monaco', 'Menlo', monospace;
        }

        .message-bubble pre code {
            background: transparent;
            padding: 0;
        }

        .message-bubble ul, .message-bubble ol {
            margin: 16px 0;
            padding-left: 24px;
        }

        .message-bubble li {
            margin-bottom: 8px;
            line-height: 1.6;
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: -280px;
                top: 0;
                height: 100vh;
                height: 100dvh;
                z-index: 1000;
                box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
            }

            .sidebar.open {
                transform: translateX(280px);
            }

            .sidebar-overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 999;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }

            .sidebar-overlay.show {
                opacity: 1;
                visibility: visible;
            }

            .chat-area {
                width: 100%;
            }

            .menu-btn {
                display: flex !important;
            }

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

            .chat-title {
                font-size: 18px;
            }

            .chat-messages {
                padding: 20px 16px;
            }

            .input-area {
                padding: 16px 20px;
                padding-bottom: max(16px, env(safe-area-inset-bottom));
            }

            .chat-input {
                font-size: 16px;
                min-height: 48px;
                padding: 14px 56px 14px 16px;
            }

            .send-button {
                width: 36px;
                height: 36px;
                right: 10px;
            }

            .suggestion-cards {
                grid-template-columns: 1fr;
                gap: 16px;
                padding: 0 16px;
            }

            .message-bubble {
                max-width: 90%;
                padding: 16px 20px;
            }

            .welcome-message {
                padding: 40px 16px;
            }

            .welcome-title {
                font-size: 24px;
            }

            .welcome-subtitle {
                font-size: 14px;
            }

            .control-btn, .send-button, .new-chat-btn {
                min-height: 44px;
                min-width: 44px;
            }
        }

        /* Tablet Styles */
        @media (max-width: 1024px) and (min-width: 769px) {
            .sidebar {
                width: 240px;
            }

            .chat-messages {
                padding: 24px;
            }

            .input-area {
                padding: 20px 24px;
            }
        }
        
        /* Add this to your assets/design.css file */

.chat-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 12px;
    background-color: #2563eb; /* A nice blue color */
    color: white !important; /* Use !important to override other link styles if needed */
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-button:hover {
    background-color: #1d4ed8; /* A darker blue on hover */
}
