/
Task_Force_141
/
FormulaMADI
Обзор
Документация
Войти
/
Task_Force_141
/
FormulaMADI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
static/css/style.css
584 строки
9 KB
Tigromag
Add files via upload
24 ноя 2025, 23:56
Не верифицирован
24 ноя 2025, 23:56
71d9fd3
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; } :root { --primary: #2E5BFF; --primary-dark: #1E4BD2; --secondary: #00D4AA; --danger: #FF4757; --warning: #FFA502; --dark: #2C3E50; --light: #F8F9FA; --gray: #8A94A6; --border: #E1E8F0; } body { background: var(--light); color: var(--dark); } .app-container { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: 280px; background: white; box-shadow: 2px 0 10px rgba(0,0,0,0.1); padding: 24px 0; position: fixed; height: 100vh; overflow-y: auto; } .logo { padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; } .logo h1 { font-size: 24px; color: var(--primary); font-weight: 700; } .logo span { color: var(--secondary); } .nav-section { padding: 0 16px; margin-bottom: 24px; } .nav-title { font-size: 12px; text-transform: uppercase; color: var(--gray); font-weight: 600; margin-bottom: 12px; padding: 0 16px; } .nav-item { display: flex; align-items: center; padding: 12px 16px; margin: 4px 0; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; color: var(--dark); text-decoration: none; } .nav-item:hover { background: var(--primary); color: white; } .nav-item.active { background: var(--primary); color: white; } .nav-icon { margin-right: 12px; font-size: 20px; } /* Main Content */ .main-content { flex: 1; margin-left: 280px; padding: 24px; } .header { display: flex; justify-content: between; align-items: center; margin-bottom: 32px; } .search-bar { flex: 1; max-width: 400px; position: relative; } .search-bar input { width: 100%; padding: 12px 16px 12px 48px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; } .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); } .search-results { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-height: 300px; overflow-y: auto; z-index: 100; display: none; } .search-result-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border); display: flex; align-items: center; } .search-result-item:hover { background: var(--light); } .search-result-item:last-child { border-bottom: none; } .search-result-icon { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-right: 12px; color: white; font-size: 12px; font-weight: 600; } .user-actions { display: flex; align-items: center; gap: 16px; } .btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); } .btn-secondary { background: var(--secondary); color: white; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; } /* Dashboard Grid */ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; } .card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .stat-card { text-align: center; } .stat-number { font-size: 36px; font-weight: 700; color: var(--primary); margin: 8px 0; } .stat-label { color: var(--gray); font-size: 14px; } /* File Browser */ .file-browser { background: white; border-radius: 12px; overflow: hidden; } .file-header { display: flex; justify-content: between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border); } .file-actions { display: flex; gap: 12px; } .file-list { padding: 0; } .file-item { display: flex; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); transition: background 0.3s ease; } .file-item:hover { background: var(--light); } .file-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 16px; color: white; font-weight: 600; } .cad { background: #FF6B6B; } .doc { background: #4ECDC4; } .analysis { background: #45B7D1; } .spec { background: #96CEB4; } .other { background: #A78BFA; } .file-info { flex: 1; } .file-name { font-weight: 600; margin-bottom: 4px; cursor: pointer; color: var(--primary); transition: color 0.2s ease; } .file-name:hover { color: var(--primary-dark); text-decoration: underline; } .file-meta { font-size: 12px; color: var(--gray); } .file-version { background: var(--light); padding: 4px 8px; border-radius: 4px; font-size: 12px; margin-right: 12px; } .download-icon { color: var(--gray); cursor: pointer; transition: color 0.2s ease; font-size: 18px; } .download-icon:hover { color: var(--primary); } /* Page Content */ .page-content { display: none; animation: fadeIn 0.3s ease; } .page-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Upload Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 2000; } .modal-overlay.active { display: flex; } .upload-modal { background: white; border-radius: 12px; width: 90%; max-width: 500px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); } .modal-header { display: flex; justify-content: between; align-items: center; margin-bottom: 20px; } .modal-title { font-size: 20px; font-weight: 600; } .close-modal { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); } .upload-area { border: 2px dashed var(--border); border-radius: 8px; padding: 40px 20px; text-align: center; margin-bottom: 20px; cursor: pointer; transition: all 0.3s ease; } .upload-area:hover { border-color: var(--primary); background: rgba(46, 91, 255, 0.05); } .upload-area.dragover { border-color: var(--primary); background: rgba(46, 91, 255, 0.1); } .upload-icon { font-size: 48px; margin-bottom: 16px; color: var(--primary); } .file-input { display: none; } .file-info-form { display: none; } .form-group { margin-bottom: 16px; } .form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; } .form-input, .form-select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; } .upload-progress { margin-top: 20px; display: none; } .progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px; } .progress-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; } .progress-text { font-size: 12px; color: var(--gray); text-align: center; } /* AI Assistant */ .ai-assistant { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; box-shadow: 0 4px 20px rgba(46, 91, 255, 0.3); z-index: 1000; } .ai-chat { position: fixed; bottom: 100px; right: 24px; width: 350px; height: 500px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; flex-direction: column; z-index: 1000; } .chat-header { padding: 16px; background: var(--primary); color: white; border-radius: 12px 12px 0 0; display: flex; justify-content: between; align-items: center; } .chat-messages { flex: 1; padding: 16px; overflow-y: auto; } .message { margin-bottom: 16px; padding: 12px; border-radius: 8px; max-width: 80%; } .message.ai { background: var(--light); margin-right: auto; } .message.user { background: var(--primary); color: white; margin-left: auto; } .message.file { background: var(--secondary); color: white; cursor: pointer; margin-left: auto; margin-right: auto; text-align: center; max-width: 90%; } .chat-input { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; } .chat-input input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 8px; } /* Responsive */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .main-content { margin-left: 0; } }