Spaces:
Sleeping
Sleeping
| :root { | |
| --bg-dark: #0f1115; | |
| --bg-panel: rgba(255, 255, 255, 0.03); | |
| --bg-panel-hover: rgba(255, 255, 255, 0.05); | |
| --border-color: rgba(255, 255, 255, 0.1); | |
| --text-primary: #ffffff; | |
| --text-secondary: #94a3b8; | |
| --accent: #6366f1; | |
| --accent-hover: #4f46e5; | |
| --danger: #ef4444; | |
| --success: #10b981; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| } | |
| body { | |
| background-color: var(--bg-dark); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| } | |
| /* Mobile Header */ | |
| .mobile-header { | |
| display: none; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 15px 20px; | |
| background: rgba(15, 17, 21, 0.95); | |
| border-bottom: 1px solid var(--border-color); | |
| position: sticky; | |
| top: 0; | |
| z-index: 90; | |
| } | |
| .mobile-header .logo { | |
| margin-bottom: 0; | |
| padding: 0; | |
| } | |
| /* Glassmorphism Panel */ | |
| .glass-panel { | |
| background: var(--bg-panel); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| border: 1px solid var(--border-color); | |
| border-radius: 16px; | |
| box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); | |
| } | |
| .app-container { | |
| display: flex; | |
| height: 100vh; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 250px; | |
| background: rgba(15, 17, 21, 0.8); | |
| border-right: 1px solid var(--border-color); | |
| display: flex; | |
| flex-direction: column; | |
| padding: 20px 0; | |
| backdrop-filter: blur(20px); | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 0 24px; | |
| margin-bottom: 40px; | |
| color: var(--text-primary); | |
| } | |
| .logo i { | |
| font-size: 24px; | |
| color: var(--accent); | |
| } | |
| .menu { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| padding: 0 16px; | |
| flex-grow: 1; | |
| } | |
| .menu-btn { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-secondary); | |
| padding: 12px 16px; | |
| text-align: left; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| font-size: 15px; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| transition: all 0.2s ease; | |
| } | |
| .menu-btn:hover { | |
| background: var(--bg-panel); | |
| color: var(--text-primary); | |
| } | |
| .menu-btn.active { | |
| background: var(--accent); | |
| color: white; | |
| } | |
| .user-profile { | |
| padding: 16px 24px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .user-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .user-info i { | |
| font-size: 20px; | |
| color: var(--text-secondary); | |
| } | |
| .user-info input { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| outline: none; | |
| width: 100%; | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| flex-grow: 1; | |
| padding: 40px; | |
| overflow-y: auto; | |
| } | |
| header { | |
| margin-bottom: 30px; | |
| } | |
| header h1 { | |
| font-size: 28px; | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| background: linear-gradient(135deg, #fff, #94a3b8); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| header p { | |
| color: var(--text-secondary); | |
| font-size: 15px; | |
| } | |
| /* Tab Management */ | |
| .tab-content { | |
| display: none; | |
| animation: fadeIn 0.4s ease forwards; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| } | |
| /* VQA Layout */ | |
| .vqa-container { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 30px; | |
| } | |
| /* Upload Area */ | |
| .input-section { | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| } | |
| .upload-area { | |
| width: 100%; | |
| height: 250px; | |
| border: 2px dashed var(--border-color); | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| overflow: hidden; | |
| position: relative; | |
| background: rgba(0,0,0,0.2); | |
| } | |
| .upload-area:hover { | |
| border-color: var(--accent); | |
| background: rgba(99, 102, 241, 0.05); | |
| } | |
| .upload-placeholder { | |
| text-align: center; | |
| color: var(--text-secondary); | |
| } | |
| .upload-placeholder i { | |
| font-size: 48px; | |
| margin-bottom: 16px; | |
| color: var(--accent); | |
| } | |
| #image-preview { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .hidden { | |
| display: none ; | |
| } | |
| /* Controls */ | |
| .controls { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .control-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .control-group label { | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| select, input[type="text"] { | |
| width: 100%; | |
| background: rgba(0,0,0,0.3); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| padding: 12px 16px; | |
| border-radius: 8px; | |
| font-size: 14px; | |
| outline: none; | |
| transition: border-color 0.2s; | |
| } | |
| select:focus, input[type="text"]:focus { | |
| border-color: var(--accent); | |
| } | |
| .input-wrapper { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .input-wrapper input { | |
| flex-grow: 1; | |
| } | |
| .icon-btn { | |
| background: rgba(0,0,0,0.3); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| width: 44px; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .icon-btn:hover { | |
| background: var(--bg-panel-hover); | |
| color: var(--accent); | |
| } | |
| .primary-btn { | |
| background: var(--accent); | |
| color: white; | |
| border: none; | |
| padding: 14px; | |
| border-radius: 8px; | |
| font-size: 15px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| transition: all 0.2s; | |
| margin-top: 8px; | |
| } | |
| .primary-btn:hover { | |
| background: var(--accent-hover); | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); | |
| } | |
| .primary-btn:disabled { | |
| background: #334155; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| /* Results Section */ | |
| .output-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .result-card { | |
| padding: 20px; | |
| border-left: 4px solid var(--accent); | |
| } | |
| .result-card h3 { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin-bottom: 8px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .result-card p { | |
| font-size: 15px; | |
| line-height: 1.6; | |
| } | |
| /* Animations */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .fade-in { | |
| opacity: 0; | |
| animation: fadeIn 0.5s ease forwards; | |
| } | |
| .delay-1 { animation-delay: 0.2s; } | |
| .delay-2 { animation-delay: 0.4s; } | |
| /* Loading Spinner */ | |
| #loading-indicator { | |
| padding: 40px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 16px; | |
| height: 100%; | |
| } | |
| .spinner { | |
| width: 40px; | |
| height: 40px; | |
| border: 3px solid rgba(255, 255, 255, 0.1); | |
| border-radius: 50%; | |
| border-top-color: var(--accent); | |
| animation: spin 1s ease-in-out infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* Typewriter Effect Container */ | |
| .typewriter-container { | |
| min-height: 24px; | |
| } | |
| /* Toggle Switch */ | |
| .switch { | |
| position: relative; | |
| display: inline-block; | |
| width: 50px; | |
| height: 26px; | |
| } | |
| .switch input { opacity: 0; width: 0; height: 0; } | |
| .slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; left: 0; right: 0; bottom: 0; | |
| background-color: var(--border-color); | |
| transition: .4s; | |
| border-radius: 34px; | |
| } | |
| .slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 20px; | |
| width: 20px; | |
| left: 3px; | |
| bottom: 3px; | |
| background-color: white; | |
| transition: .4s; | |
| border-radius: 50%; | |
| } | |
| input:checked + .slider { | |
| background-color: var(--success); | |
| } | |
| input:checked + .slider:before { | |
| transform: translateX(24px); | |
| } | |
| /* Analytics Grid */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 30px; | |
| } | |
| .stat-card { | |
| padding: 24px; | |
| text-align: center; | |
| } | |
| .stat-card h3 { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin-bottom: 12px; | |
| } | |
| .stat-value { | |
| font-size: 32px; | |
| font-weight: 700; | |
| color: var(--accent); | |
| } | |
| .chart-container { | |
| padding: 24px; | |
| height: 400px; | |
| } | |
| /* Admin Grid */ | |
| .admin-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 20px; | |
| } | |
| .admin-card { | |
| padding: 24px; | |
| } | |
| .admin-card h3 { | |
| margin-bottom: 20px; | |
| padding-bottom: 12px; | |
| border-bottom: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| } | |
| .setting-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .danger-btn { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: var(--danger); | |
| border: 1px solid var(--danger); | |
| padding: 10px 16px; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| font-weight: 500; | |
| transition: all 0.2s; | |
| } | |
| .danger-btn:hover { | |
| background: var(--danger); | |
| color: white; | |
| } | |
| /* Logs Table */ | |
| .table-container { | |
| overflow-x: auto; | |
| } | |
| .logs-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| .logs-table th, .logs-table td { | |
| padding: 14px 16px; | |
| text-align: left; | |
| border-bottom: 1px solid var(--border-color); | |
| font-size: 14px; | |
| } | |
| .logs-table th { | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .filter-bar { | |
| margin-bottom: 16px; | |
| } | |
| .filter-bar input { | |
| width: 300px; | |
| } | |
| /* Suggestions Grid */ | |
| .suggestions-grid { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: 15px; | |
| margin-top: 20px; | |
| } | |
| .sug-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| border-radius: 12px; | |
| padding: 16px; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| font-size: 14px; | |
| text-align: left; | |
| transition: all 0.2s ease; | |
| } | |
| .sug-card:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| transform: translateY(-2px); | |
| border-color: rgba(255, 255, 255, 0.2); | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.2); | |
| } | |
| .sug-card i { | |
| font-size: 20px; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 900px) { | |
| .suggestions-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .app-container { | |
| flex-direction: column; | |
| } | |
| .mobile-header { | |
| display: flex; | |
| } | |
| .vqa-container { | |
| grid-template-columns: 1fr; | |
| } | |
| .sidebar { | |
| position: fixed; | |
| left: -250px; | |
| top: 0; | |
| height: 100vh; | |
| z-index: 100; | |
| transition: left 0.3s; | |
| box-shadow: 5px 0 15px rgba(0,0,0,0.5); | |
| } | |
| .sidebar.open { | |
| left: 0; | |
| } | |
| .main-content { | |
| padding: 15px; | |
| } | |
| /* Login fix for mobile */ | |
| .login-box { | |
| margin: 20px; | |
| padding: 30px 20px; | |
| } | |
| } | |