/* MartBot v5.0 - Professional Dark Theme */ :root { --primary-color: #2563eb; --primary-dark: #1d4ed8; --secondary-color: #7c3aed; --accent-color: #0ea5e9; --dark-bg: #0f172a; --darker-bg: #020617; --surface-bg: #1e293b; --surface-light: #334155; --text-primary: #f8fafc; --text-secondary: #94a3b8; --text-muted: #64748b; --border-color: #334155; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --sidebar-width: 280px; --sidebar-collapsed: 70px; --header-height: 70px; --transition-speed: 0.3s; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; } /* Layout Grid */ .app-container { display: grid; grid-template-areas: "sidebar header" "sidebar main" "sidebar footer"; grid-template-columns: auto 1fr; grid-template-rows: var(--header-height) 1fr auto; min-height: 100vh; } /* Header Styles */ .app-header { grid-area: header; background: rgba(30, 41, 59, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .header-left { display: flex; align-items: center; gap: 1rem; } .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; } .version-badge { background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 500; } /* Navigation Tabs */ .nav-tabs { display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--surface-bg); border-radius: 12px; margin-left: 2rem; } .nav-tab { padding: 0.75rem 1.5rem; border: none; background: transparent; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all var(--transition-speed); position: relative; overflow: hidden; white-space: nowrap; } .nav-tab:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); } .nav-tab.active { color: var(--text-primary); background: var(--primary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); } .nav-tab.active::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: var(--accent-color); border-radius: 3px 3px 0 0; animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { width: 0; } to { width: 60%; } } /* Header Controls */ .header-controls { display: flex; align-items: center; gap: 1rem; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; transition: transform 0.3s ease; } .user-avatar:hover { transform: scale(1.05); } .theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-bg); border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-speed); } .theme-toggle:hover { background: var(--surface-light); color: var(--text-primary); } /* Sidebar Styles */ .app-sidebar { grid-area: sidebar; background: var(--surface-bg); width: var(--sidebar-width); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: width var(--transition-speed); position: relative; overflow: hidden; } .sidebar.collapsed { width: var(--sidebar-collapsed); } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--header-height) - 1px); } .sidebar-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; opacity: 1; transition: opacity var(--transition-speed); } .sidebar.collapsed .sidebar-title { opacity: 0; width: 0; } .toggle-sidebar { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-speed); } .toggle-sidebar:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); } .sidebar.collapsed .toggle-sidebar { transform: rotate(180deg); } /* Sidebar Content */ .sidebar-content { flex: 1; padding: 1.5rem; overflow-y: auto; } .sidebar-section { margin-bottom: 2rem; animation: fadeIn 0.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 600; white-space: nowrap; } .sidebar.collapsed .section-title { opacity: 0; width: 0; overflow: hidden; } /* Sidebar Items */ .sidebar-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 8px; color: var(--text-secondary); text-decoration: none; transition: all var(--transition-speed); cursor: pointer; margin-bottom: 0.5rem; white-space: nowrap; } .sidebar-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); transform: translateX(5px); } .sidebar-item.active { background: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); } .sidebar-item-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .sidebar-item-text { font-size: 0.875rem; font-weight: 500; flex: 1; transition: opacity var(--transition-speed); } .sidebar.collapsed .sidebar-item-text { opacity: 0; width: 0; overflow: hidden; } .sidebar.collapsed .sidebar-item { justify-content: center; padding: 0.75rem; } /* Main Content */ .main-content { grid-area: main; padding: 2rem; overflow-y: auto; min-height: calc(100vh - var(--header-height) - 70px); } .content-section { display: none; animation: slideUp 0.5s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .content-section.active { display: block; } .section-header { margin-bottom: 2rem; } .section-header h1 { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, var(--text-primary), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; } .section-header p { color: var(--text-secondary); font-size: 1rem; } /* Chat Container */ .chat-container { background: var(--surface-bg); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; height: 600px; display: flex; flex-direction: column; } .chat-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; } .chat-header h3 { font-size: 1.25rem; font-weight: 600; } .chat-actions { display: flex; gap: 0.5rem; } .chat-messages { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; } .message { max-width: 80%; padding: 1rem 1.25rem; border-radius: 16px; animation: messageSlide 0.3s ease-out; } @keyframes messageSlide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } } .message.user { background: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 4px; } .message.bot { background: var(--surface-light); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 4px; } .message-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; } .message-time { color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; } .message.bot .message-time { color: var(--text-muted); } .chat-input-container { padding: 1.5rem; border-top: 1px solid var(--border-color); background: var(--surface-bg); } .chat-input-wrapper { display: flex; gap: 1rem; align-items: flex-end; } /* Profile Cards */ .profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; } .profile-card { background: var(--surface-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; transition: all var(--transition-speed); } .profile-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border-color: var(--primary-color); } /* Login Form */ .login-container { max-width: 400px; margin: 0 auto; padding: 2rem; background: var(--surface-bg); border-radius: 16px; border: 1px solid var(--border-color); } .form-group { margin-bottom: 1.5rem; } .form-label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; } .form-input { width: 100%; padding: 0.75rem 1rem; background: var(--surface-light); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 1rem; transition: all var(--transition-speed); } .form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } /* Footer */ .app-footer { grid-area: footer; padding: 1.5rem 2rem; background: var(--surface-bg); border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 0.875rem; } .footer-links { display: flex; gap: 1.5rem; } .footer-link { color: var(--text-secondary); text-decoration: none; transition: color var(--transition-speed); } .footer-link:hover { color: var(--text-primary); } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; } .stat-card { background: var(--surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all var(--transition-speed); } .stat-card:hover { border-color: var(--primary-color); transform: translateY(-2px); } .stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; } .stat-label { font-size: 0.875rem; color: var(--text-secondary); } /* Badges */ .badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 500; } .badge-primary { background: rgba(37, 99, 235, 0.1); color: var(--primary-color); border: 1px solid rgba(37, 99, 235, 0.2); } .badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--surface-light); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* Responsive Design */ @media (max-width: 1024px) { .app-container { grid-template-areas: "header" "main" "footer"; grid-template-columns: 1fr; } .app-sidebar { position: fixed; left: -100%; top: var(--header-height); height: calc(100vh - var(--header-height)); z-index: 1000; transition: left var(--transition-speed); } .app-sidebar.active { left: 0; } .mobile-menu-toggle { display: block !important; } } @media (max-width: 768px) { .app-header { padding: 0 1rem; } .main-content { padding: 1rem; } .nav-tabs { margin-left: 1rem; overflow-x: auto; } .nav-tab { padding: 0.5rem 1rem; font-size: 0.8rem; } } /* Utility Classes */ .hidden { display: none !important; } .mobile-menu-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; align-items: center; justify-content: center; } /* Gradio Component Overrides */ .gradio-container { font-family: 'Inter', sans-serif !important; background: transparent !important; } .gr-button { background: var(--primary-color) !important; color: white !important; border: none !important; border-radius: 8px !important; padding: 0.75rem 1.5rem !important; font-weight: 500 !important; transition: all var(--transition-speed) !important; } .gr-button:hover { background: var(--primary-dark) !important; transform: translateY(-2px) !important; } .gr-input, .gr-textbox { background: var(--surface-light) !important; border: 1px solid var(--border-color) !important; color: var(--text-primary) !important; border-radius: 8px !important; } .gr-chatbot { background: var(--surface-bg) !important; border: 1px solid var(--border-color) !important; border-radius: 16px !important; } .gr-chatbot .user { background: var(--primary-color) !important; color: white !important; border-radius: 16px !important; } .gr-chatbot .bot { background: var(--surface-light) !important; color: var(--text-primary) !important; border-radius: 16px !important; } /* Loading Animation */ .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Toast Notifications */ .toast { position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; background: var(--surface-bg); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); animation: slideInRight 0.3s ease-out; z-index: 10000; } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }