Files
iov_data_analysis_agent/web/static/style.css

501 lines
10 KiB
CSS
Raw Normal View History

2026-01-22 22:26:04 +08:00
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
2026-01-09 16:52:45 +08:00
:root {
2026-01-22 22:26:04 +08:00
/* Nebula Theme Palette */
--bg-deep: #020617;
--bg-secondary: #0f172a;
--sidebar-bg: rgba(15, 23, 42, 0.6);
--card-bg: rgba(30, 41, 59, 0.3);
--glass-border: 1px solid rgba(148, 163, 184, 0.08);
2026-01-09 16:52:45 +08:00
--primary-color: #6366f1;
2026-01-22 22:26:04 +08:00
--primary-glow: #6366f1aa;
--accent-color: #0ea5e9;
2026-01-09 16:52:45 +08:00
--text-main: #f8fafc;
--text-muted: #94a3b8;
2026-01-22 22:26:04 +08:00
2026-01-09 16:52:45 +08:00
--success: #10b981;
--warning: #f59e0b;
2026-01-22 22:26:04 +08:00
--danger: #ef4444;
--radius-lg: 1rem;
--radius-md: 0.75rem;
--radius-sm: 0.5rem;
2026-01-09 16:52:45 +08:00
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
2026-01-22 22:26:04 +08:00
background-color: var(--bg-deep);
2026-01-09 16:52:45 +08:00
background-image:
2026-01-22 22:26:04 +08:00
radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
2026-01-09 16:52:45 +08:00
color: var(--text-main);
height: 100vh;
overflow: hidden;
2026-01-22 22:26:04 +08:00
display: flex;
justify-content: center;
align-items: center;
2026-01-09 16:52:45 +08:00
}
.app-container {
display: flex;
2026-01-22 22:26:04 +08:00
height: 96vh;
width: 98vw;
gap: 1rem;
border-radius: var(--radius-lg);
overflow: hidden;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* --- Floating Sidebar --- */
2026-01-09 16:52:45 +08:00
.sidebar {
2026-01-22 22:26:04 +08:00
width: 280px;
2026-01-09 16:52:45 +08:00
background: var(--sidebar-bg);
2026-01-22 22:26:04 +08:00
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: var(--glass-border);
border-radius: var(--radius-lg);
2026-01-09 16:52:45 +08:00
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 2rem;
2026-01-22 22:26:04 +08:00
transition: all 0.3s ease;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
2026-01-09 16:52:45 +08:00
}
.brand {
display: flex;
align-items: center;
gap: 0.75rem;
2026-01-22 22:26:04 +08:00
padding: 0.5rem 0.5rem 1rem 0.5rem;
border-bottom: var(--glass-border);
2026-01-09 16:52:45 +08:00
}
.brand i {
2026-01-22 22:26:04 +08:00
font-size: 1.75rem;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
2026-01-09 16:52:45 +08:00
}
.brand h1 {
2026-01-22 22:26:04 +08:00
font-family: 'Outfit', sans-serif;
font-size: 1.5rem;
2026-01-09 16:52:45 +08:00
font-weight: 700;
2026-01-22 22:26:04 +08:00
letter-spacing: -0.02em;
background: linear-gradient(to right, #fff, #94a3b8);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Nav Buttons */
.nav-btn {
width: 100%;
padding: 0.875rem 1rem;
border: none;
background: transparent;
2026-01-09 16:52:45 +08:00
color: var(--text-muted);
2026-01-22 22:26:04 +08:00
font-family: 'Outfit', sans-serif;
font-weight: 500;
text-align: left;
cursor: pointer;
border-radius: var(--radius-md);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.95rem;
}
.nav-btn i {
font-size: 1.1rem;
transition: transform 0.2s;
}
.nav-btn:hover {
background: rgba(255, 255, 255, 0.03);
color: var(--text-main);
transform: translateX(4px);
}
.nav-btn.active {
background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
color: var(--primary-color);
border-left: 3px solid var(--primary-color);
border-radius: 4px var(--radius-md) var(--radius-md) 4px;
}
.nav-btn.active i {
color: var(--primary-color);
transform: scale(1.1);
}
/* --- Main Content --- */
.main-content {
flex: 1;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(12px);
border: var(--glass-border);
border-radius: var(--radius-lg);
padding: 2rem;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
/* Controls */
.control-group-wrapper {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.control-group h3 {
font-family: 'Outfit', sans-serif;
font-size: 0.75rem;
color: #475569;
2026-01-09 16:52:45 +08:00
text-transform: uppercase;
2026-01-22 22:26:04 +08:00
letter-spacing: 0.1em;
font-weight: 700;
2026-01-09 16:52:45 +08:00
margin-bottom: 0.75rem;
}
/* Upload Zone */
.upload-zone {
2026-01-22 22:26:04 +08:00
border: 1px dashed rgba(255, 255, 255, 0.1);
border-radius: 1rem;
padding: 1.5rem;
2026-01-09 16:52:45 +08:00
text-align: center;
2026-01-22 22:26:04 +08:00
transition: all 0.3s ease;
background: rgba(2, 6, 23, 0.3);
position: relative;
overflow: hidden;
}
.upload-zone::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1), transparent 70%);
opacity: 0;
transition: opacity 0.3s;
}
.upload-zone:hover::before {
opacity: 1;
2026-01-09 16:52:45 +08:00
}
.upload-zone.dragover {
border-color: var(--primary-color);
2026-01-22 22:26:04 +08:00
box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
2026-01-09 16:52:45 +08:00
}
.upload-zone i {
font-size: 2rem;
2026-01-22 22:26:04 +08:00
background: linear-gradient(to bottom, #94a3b8, #475569);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
2026-01-09 16:52:45 +08:00
margin-bottom: 0.5rem;
}
2026-01-22 22:26:04 +08:00
.file-list {
margin-top: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
2026-01-09 16:52:45 +08:00
}
/* Buttons */
.btn {
width: 100%;
2026-01-22 22:26:04 +08:00
padding: 0.875rem;
border-radius: var(--radius-md);
2026-01-09 16:52:45 +08:00
border: none;
cursor: pointer;
2026-01-22 22:26:04 +08:00
font-family: 'Outfit', sans-serif;
2026-01-09 16:52:45 +08:00
font-weight: 600;
2026-01-22 22:26:04 +08:00
font-size: 0.9rem;
2026-01-09 16:52:45 +08:00
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
2026-01-22 22:26:04 +08:00
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
2026-01-09 16:52:45 +08:00
}
.btn.primary {
2026-01-22 22:26:04 +08:00
background: linear-gradient(135deg, var(--primary-color), var(--primary-hover, #4f46e5));
2026-01-09 16:52:45 +08:00
color: white;
2026-01-22 22:26:04 +08:00
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
2026-01-09 16:52:45 +08:00
}
.btn.primary:hover {
2026-01-22 22:26:04 +08:00
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
2026-01-09 16:52:45 +08:00
transform: translateY(-1px);
}
2026-01-22 22:26:04 +08:00
.btn.primary::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: 0.5s;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.btn.primary:hover::after {
left: 100%;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.btn.secondary {
background: rgba(255, 255, 255, 0.05);
color: var(--text-main);
border: 1px solid rgba(255, 255, 255, 0.05);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.btn.secondary:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Inputs */
textarea,
input[type="text"] {
width: 100%;
background: rgba(2, 6, 23, 0.3);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: var(--radius-md);
padding: 1rem;
color: var(--text-main);
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
transition: all 0.2s;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
textarea:focus,
input[type="text"]:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Tabs */
.tabs {
2026-01-09 16:52:45 +08:00
display: flex;
2026-01-22 22:26:04 +08:00
gap: 0.5rem;
margin-bottom: 1.5rem;
background: rgba(2, 6, 23, 0.2);
padding: 0.3rem;
border-radius: var(--radius-lg);
width: fit-content;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.tab-btn {
padding: 0.6rem 1.25rem;
border: none;
background: transparent;
color: var(--text-muted);
font-family: 'Outfit', sans-serif;
font-weight: 500;
font-size: 0.85rem;
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s;
2026-01-09 16:52:45 +08:00
display: flex;
2026-01-22 22:26:04 +08:00
align-items: center;
gap: 0.5rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.tab-btn:hover {
color: var(--text-main);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.tab-btn.active {
background: rgba(255, 255, 255, 0.08);
color: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Terminal / Log Window */
2026-01-09 16:52:45 +08:00
.terminal-window {
2026-01-22 22:26:04 +08:00
background: #09090b;
border-radius: var(--radius-lg);
padding: 1.5rem;
2026-01-09 16:52:45 +08:00
flex: 1;
overflow-y: auto;
2026-01-22 22:26:04 +08:00
border: 1px solid rgba(255, 255, 255, 0.05);
font-family: 'JetBrains Mono', monospace;
2026-01-09 16:52:45 +08:00
font-size: 0.85rem;
2026-01-22 22:26:04 +08:00
color: #22c55e;
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
min-height: 0;
}
.terminal-window::-webkit-scrollbar {
width: 8px;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.terminal-window::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Report Container */
2026-01-09 16:52:45 +08:00
#reportContainer {
2026-01-22 22:26:04 +08:00
background: rgba(255, 255, 255, 0.95);
color: #1e293b;
border-radius: var(--radius-lg);
padding: 2.5rem;
2026-01-09 16:52:45 +08:00
flex: 1;
overflow-y: auto;
2026-01-22 22:26:04 +08:00
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
2026-01-09 16:52:45 +08:00
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2026-01-22 22:26:04 +08:00
height: 100%;
color: rgba(255, 255, 255, 0.2);
2026-01-09 16:52:45 +08:00
gap: 1rem;
}
.empty-state i {
2026-01-22 22:26:04 +08:00
font-size: 4rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Follow-up Chat */
.chat-input-container {
margin-top: 1rem;
background: rgba(2, 6, 23, 0.4);
border: var(--glass-border);
border-radius: var(--radius-lg);
padding: 0.5rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.input-wrapper {
display: flex;
gap: 0.5rem;
align-items: flex-end;
}
#followUpInput {
background: transparent;
border: none;
height: 50px;
padding: 0.8rem;
resize: none;
box-shadow: none;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
#sendFollowUpBtn {
width: 50px;
height: 50px;
border-radius: var(--radius-md);
padding: 0;
flex-shrink: 0;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Gallery Grid */
.gallery-grid {
2026-01-09 16:52:45 +08:00
display: grid;
2026-01-22 22:26:04 +08:00
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
2026-01-09 16:52:45 +08:00
gap: 1.5rem;
2026-01-22 22:26:04 +08:00
padding-bottom: 2rem;
2026-01-09 16:52:45 +08:00
overflow-y: auto;
}
2026-01-22 22:26:04 +08:00
.gallery-card {
background: rgba(255, 255, 255, 0.03);
2026-01-09 16:52:45 +08:00
border: var(--glass-border);
2026-01-22 22:26:04 +08:00
border-radius: var(--radius-lg);
overflow: hidden;
transition: all 0.3s;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.gallery-card:hover {
transform: translateY(-4px);
2026-01-09 16:52:45 +08:00
border-color: var(--primary-color);
2026-01-22 22:26:04 +08:00
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.img-wrapper {
height: 180px;
overflow: hidden;
background: rgba(0, 0, 0, 0.2);
cursor: pointer;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.img-wrapper:hover img {
transform: scale(1.05);
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.card-content {
padding: 1rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
.card-content h4 {
font-family: 'Outfit', sans-serif;
margin-bottom: 0.5rem;
font-size: 1rem;
}
.card-content .desc {
color: var(--text-muted);
font-size: 0.85rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Status Dot */
.status-indicator {
margin-top: auto;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
2026-01-09 16:52:45 +08:00
display: flex;
align-items: center;
2026-01-22 22:26:04 +08:00
gap: 0.75rem;
color: var(--text-muted);
font-size: 0.85rem;
2026-01-09 16:52:45 +08:00
}
2026-01-22 22:26:04 +08:00
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.view-section {
animation: fadeIn 0.4s ease-out;
width: 100%;
height: 100%;
2026-01-09 16:52:45 +08:00
}