@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;600;800&display=swap'); :root { --primary: #6366f1; --primary-light: #a5b4fc; --primary-dark: #4338ca; --accent: #10b981; --bg: #030712; --surface: rgba(17, 24, 39, 0.7); --surface-bright: rgba(31, 41, 55, 0.8); --border: rgba(255, 255, 255, 0.08); --text: #f9fafb; --text-dim: #9ca3af; --warning: #f59e0b; --error: #ef4444; --glass-blur: 16px; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', 'Plus Jakarta Sans', sans-serif; outline: none; -webkit-tap-highlight-color: transparent; } body { background: radial-gradient(circle at top right, #1e1b4b, #030712); color: var(--text); direction: rtl; height: 100vh; overflow: hidden; } /* --- Premium Glass Header --- */ .glass-header { height: 80px; background: rgba(3, 7, 18, 0.4); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 1000; } .header-left h1 { font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .header-left h1 span { background: var(--primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* --- Header Controls --- */ .header-right { display: flex; align-items: center; gap: 12px; } .pill { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 6px 14px; border-radius: 100px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; transition: 0.3s; } .pill:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); } .pill.warning { color: var(--warning); border-color: rgba(245, 158, 11, 0.2); } .pill.primary { color: var(--primary-light); background: rgba(99, 102, 241, 0.1); } /* --- Auth Button --- */ .btn-primary { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: 14px; font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); filter: brightness(1.1); } /* --- Redesigned Auth Modal --- */ .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; } .modal-content { width: 100%; max-width: 440px; background: rgba(17, 24, 39, 0.8); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 32px; padding: 40px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; } .modal-content::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%); pointer-events: none; } .modal-tabs { display: flex; background: rgba(255, 255, 255, 0.03); padding: 4px; border-radius: 16px; margin-bottom: 30px; border: 1px solid var(--border); } .tab-btn { flex: 1; padding: 12px; border: none; background: transparent; color: var(--text-dim); font-weight: 700; cursor: pointer; border-radius: 12px; transition: 0.3s; } .tab-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .auth-form { display: flex; flex-direction: column; gap: 20px; } .input-group { display: flex; flex-direction: column; gap: 8px; } .input-wrapper { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; padding: 0 16px; transition: 0.3s; } .input-wrapper:focus-within { border-color: var(--primary); background: rgba(99, 102, 241, 0.05); } .input-wrapper i { color: var(--text-dim); font-size: 1.1rem; } .input-wrapper input { background: transparent; border: none; color: white; padding: 16px 12px; width: 100%; font-size: 1rem; } .close-modal-btn { position: absolute; top: 20px; left: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; } .close-modal-btn:hover { background: var(--error); color: white; transform: rotate(90deg); } /* --- Layout --- */ #app-wrapper { display: flex; height: 100vh; } #main-content { flex: 1; display: flex; flex-direction: column; position: relative; width: 100%; } /* --- Chat Elements --- */ #chat-viewport { flex: 1; overflow-y: auto; padding: 24px 16px; scroll-behavior: smooth; } #chat-messages { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; } .message { max-width: 80%; display: flex; flex-direction: column; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .bot-msg { align-self: flex-start; } .user-msg { align-self: flex-end; } .msg-bubble { padding: 16px 24px; border-radius: 24px; line-height: 1.6; font-size: 1.05rem; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .bot-msg .msg-bubble { background: var(--surface-bright); border: 1px solid var(--border); border-bottom-right-radius: 6px; } .user-msg .msg-bubble { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border-bottom-left-radius: 6px; } .msg-footer { margin-top: 6px; display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-dim); padding: 0 8px; } .user-msg .msg-footer { justify-content: flex-end; } /* --- Input Area --- */ .input-area { padding: 24px; background: linear-gradient(to top, var(--bg) 60%, transparent); } .glass-form { max-width: 900px; margin: 0 auto; background: rgba(31, 41, 55, 0.6); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; display: flex; padding: 8px; transition: 0.3s; } .input-container { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 10px; } .tier-select { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); padding: 8px 12px; border-radius: 14px; font-size: 0.85rem; cursor: pointer; transition: 0.3s; min-width: 140px; } .tier-select:focus { border-color: var(--primary); color: var(--text); background: rgba(99, 102, 241, 0.1); } .tier-select option { background: #111827; color: var(--text); } #user-input { flex: 1; background: transparent; border: none; color: var(--text); padding: 12px 10px; font-size: 1.1rem; } #send-btn { width: 52px; height: 52px; border-radius: 18px; background: var(--primary); border: none; color: white; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; } #send-btn:hover { transform: scale(1.05) rotate(-10deg); } /* --- Mobile Fixes --- */ @media (max-width: 768px) { .desktop-only { display: none !important; } .glass-header { height: 70px; padding: 0 16px; } .header-left h1 { font-size: 1.2rem; } .msg-bubble { font-size: 1rem; padding: 14px 20px; } .modal-content { padding: 30px 20px; } } .hidden { display: none !important; } .icon-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); font-size: 1.2rem; cursor: pointer; padding: 10px; border-radius: 14px; transition: 0.3s; } .icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); } #sidebar { width: 320px; background: rgba(11, 17, 30, 0.95); backdrop-filter: blur(20px); border-left: 1px solid var(--border); position: fixed; right: 0; height: 100%; z-index: 2000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); } #sidebar.sidebar-closed { transform: translateX(100%); } .sidebar-header { padding: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); } .history-item { padding: 16px 24px; cursor: pointer; transition: 0.2s; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .history-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); } .generating-status { font-size: 0.9rem; color: var(--primary-light); display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(99, 102, 241, 0.05); border-radius: 16px; border: 1px solid rgba(99, 102, 241, 0.1); position: relative; margin-bottom: 12px; } .steps-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; } .step-item { font-size: 0.85rem; color: var(--text-dim); display: flex; align-items: center; gap: 12px; } .step-item.completed { color: var(--accent); }