Spaces:
Running
Running
| /* Admin Panel Theme Variables */ | |
| :root { | |
| --admin-bg: #f4f6f8; | |
| --sidebar-bg: #fff; | |
| --card-bg: #fff; | |
| --text-primary: #2c3e50; | |
| --text-secondary: #7f8c8d; | |
| --accent-color: #4285f4; | |
| --border-color: #e1e4e8; | |
| --hover-bg: #f8f9fa; | |
| --shadow-sm: 0 2px 4px rgba(0,0,0,0.05); | |
| --shadow-md: 0 4px 6px rgba(0,0,0,0.1); | |
| --success-color: #27ae60; | |
| --warning-color: #f39c12; | |
| --danger-color: #e74c3c; | |
| } | |
| /* Dark Theme */ | |
| [data-theme="dark"] { | |
| --admin-bg: #1a1a1a; | |
| --sidebar-bg: #2d2d2d; | |
| --card-bg: #2d2d2d; | |
| --text-primary: #fff; | |
| --text-secondary: #bdc3c7; | |
| --border-color: #404040; | |
| --hover-bg: #383838; | |
| } | |
| /* Reset and Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
| } | |
| body { | |
| background-color: var(--admin-bg); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| } | |
| /* Admin Container */ | |
| .admin-container { | |
| display: flex; | |
| min-height: 100vh; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 260px; | |
| background-color: var(--sidebar-bg); | |
| border-right: 1px solid var(--border-color); | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| height: 100vh; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .sidebar-header { | |
| padding: 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .admin-logo { | |
| height: 32px; | |
| width: auto; | |
| } | |
| .sidebar-header h2 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| } | |
| .sidebar-nav { | |
| padding: 20px 0; | |
| flex-grow: 1; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 12px 20px; | |
| color: var(--text-secondary); | |
| text-decoration: none; | |
| transition: all 0.2s ease; | |
| gap: 12px; | |
| } | |
| .nav-item:hover { | |
| background-color: var(--hover-bg); | |
| color: var(--accent-color); | |
| } | |
| .nav-item.active { | |
| background-color: rgba(66, 133, 244, 0.1); | |
| color: var(--accent-color); | |
| border-right: 3px solid var(--accent-color); | |
| } | |
| .nav-item i { | |
| width: 20px; | |
| text-align: center; | |
| } | |
| .sidebar-footer { | |
| padding: 20px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .logout-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| width: 100%; | |
| padding: 12px; | |
| border: none; | |
| background: none; | |
| color: var(--danger-color); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| border-radius: 6px; | |
| } | |
| .logout-btn:hover { | |
| background-color: var(--hover-bg); | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| flex: 1; | |
| margin-left: 260px; | |
| padding: 20px; | |
| } | |
| /* Top Bar */ | |
| .top-bar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px; | |
| background-color: var(--card-bg); | |
| border-radius: 10px; | |
| box-shadow: var(--shadow-sm); | |
| margin-bottom: 24px; | |
| } | |
| .search-bar { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| background-color: var(--admin-bg); | |
| padding: 8px 16px; | |
| border-radius: 8px; | |
| width: 300px; | |
| } | |
| .search-bar input { | |
| border: none; | |
| background: none; | |
| outline: none; | |
| color: var(--text-primary); | |
| width: 100%; | |
| } | |
| .search-bar i { | |
| color: var(--text-secondary); | |
| } | |
| .top-bar-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .theme-toggle { | |
| background: none; | |
| border: none; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| padding: 8px; | |
| font-size: 20px; | |
| transition: color 0.2s ease; | |
| } | |
| .theme-toggle:hover { | |
| color: var(--text-primary); | |
| } | |
| .admin-profile { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .admin-avatar { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 50%; | |
| } | |
| /* Dashboard Stats */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); | |
| gap: 24px; | |
| margin-bottom: 24px; | |
| } | |
| .stat-card { | |
| background-color: var(--card-bg); | |
| padding: 24px; | |
| border-radius: 10px; | |
| box-shadow: var(--shadow-sm); | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| } | |
| .stat-icon { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 12px; | |
| background-color: rgba(66, 133, 244, 0.1); | |
| color: var(--accent-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 24px; | |
| } | |
| .stat-info h3 { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin-bottom: 4px; | |
| } | |
| .stat-info p { | |
| font-size: 24px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| /* Charts Grid */ | |
| .charts-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); | |
| gap: 24px; | |
| } | |
| .chart-card { | |
| background-color: var(--card-bg); | |
| padding: 24px; | |
| border-radius: 10px; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .chart-card h3 { | |
| margin-bottom: 20px; | |
| color: var(--text-primary); | |
| } | |
| .chart-placeholder { | |
| width: 100%; | |
| height: 300px; | |
| background-color: var(--hover-bg); | |
| border-radius: 8px; | |
| } | |
| /* Settings */ | |
| .settings-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); | |
| gap: 24px; | |
| } | |
| .settings-card { | |
| background-color: var(--card-bg); | |
| padding: 24px; | |
| border-radius: 10px; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .settings-card h3 { | |
| margin-bottom: 20px; | |
| color: var(--text-primary); | |
| } | |
| .form-group { | |
| margin-bottom: 20px; | |
| } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 8px; | |
| color: var(--text-secondary); | |
| } | |
| .form-group input[type="text"], | |
| .form-group input[type="password"], | |
| .form-group input[type="url"], | |
| .form-group input[type="number"] { | |
| width: 100%; | |
| padding: 10px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| background-color: var(--admin-bg); | |
| color: var(--text-primary); | |
| } | |
| .form-group input[type="range"] { | |
| width: 100%; | |
| margin-bottom: 8px; | |
| } | |
| .range-value { | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| } | |
| .btn-primary { | |
| background-color: var(--accent-color); | |
| color: white; | |
| border: none; | |
| padding: 12px 24px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .btn-primary:hover { | |
| opacity: 0.9; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| width: 70px; | |
| } | |
| .sidebar-header h2, | |
| .nav-item span, | |
| .logout-btn span { | |
| display: none; | |
| } | |
| .main-content { | |
| margin-left: 70px; | |
| } | |
| .stats-grid { | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| } | |
| .charts-grid, | |
| .settings-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| /* Input with copy button */ | |
| .input-with-copy { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .copy-btn { | |
| position: absolute; | |
| right: 12px; | |
| background: none; | |
| border: none; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| padding: 4px 8px; | |
| transition: color 0.2s ease; | |
| } | |
| .copy-btn:hover { | |
| color: var(--text-primary); | |
| } | |
| /* Select Input */ | |
| select { | |
| width: 100%; | |
| padding: 10px; | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| background-color: var(--admin-bg); | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| cursor: pointer; | |
| appearance: none; | |
| background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); | |
| background-repeat: no-repeat; | |
| background-position: right 10px center; | |
| background-size: 16px; | |
| } | |
| select:focus { | |
| outline: none; | |
| border-color: var(--accent-color); | |
| box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1); | |
| } | |
| /* Range with value */ | |
| .range-with-value { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .range-with-value input[type="range"] { | |
| flex: 1; | |
| } | |
| .range-value { | |
| min-width: 40px; | |
| text-align: center; | |
| padding: 2px 6px; | |
| background-color: var(--hover-bg); | |
| border-radius: 4px; | |
| font-size: 14px; | |
| } | |
| /* Help text */ | |
| .help-text { | |
| display: block; | |
| color: var(--text-secondary); | |
| font-size: 12px; | |
| margin-top: 4px; | |
| } | |
| /* Checkbox label */ | |
| .checkbox-label { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| cursor: pointer; | |
| } | |
| .checkbox-label input[type="checkbox"] { | |
| width: 16px; | |
| height: 16px; | |
| margin: 0; | |
| } | |
| /* Buttons */ | |
| .btn-secondary { | |
| background-color: var(--hover-bg); | |
| color: var(--text-primary); | |
| border: 1px solid var(--border-color); | |
| padding: 12px 24px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-top: 12px; | |
| } | |
| .btn-secondary:hover { | |
| background-color: var(--border-color); | |
| } | |
| .btn-secondary i { | |
| font-size: 14px; | |
| } | |
| /* Form layout */ | |
| #modelSettingsForm { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| #modelSettingsForm .btn-primary { | |
| margin-top: 12px; | |
| } | |
| /* Test Model Button */ | |
| #testModel { | |
| width: 100%; | |
| } |