Structura-AI / static /styles.css
AurevinP's picture
Upload the api endpoint and app.
d13d7e1 verified
/* static/styles.css */
:root {
--bg-body: #0b0f19; /* Darker, cleaner background */
--bg-sidebar: #111827; /* Rich dark gray */
--bg-card: #1f2937;
--border: #374151;
--text-main: #f9fafb;
--text-muted: #9ca3af;
--primary: #3b82f6; /* Intel Blue */
--primary-hover: #2563eb;
--radius: 6px; /* Tighter radius for 'Pro' look */
--sidebar-w: 300px;
--font-sans: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
body {
margin: 0;
height: 100vh;
font-family: var(--font-sans);
background-color: var(--bg-body);
color: var(--text-main);
overflow: hidden;
}
/* === UTILITY TO FIX BUG === */
.hidden { display: none !important; }
/* Layout Shell */
.app-shell { display: flex; height: 100%; width: 100%; }
/* Sidebar */
.sidebar {
width: var(--sidebar-w);
background-color: var(--bg-sidebar);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 24px;
flex-shrink: 0;
z-index: 20;
box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
.logo-area {
font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
margin-bottom: 40px; display: flex; align-items: center; gap: 12px;
}
.section-label {
display: block; font-size: 11px; text-transform: uppercase;
letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600;
}
.control-group { margin-bottom: 24px; }
.control-group.disabled { opacity: 0.5; pointer-events: none; }
.control-group.active { opacity: 1; pointer-events: auto; }
/* Upload Box */
.upload-box {
border: 1px dashed var(--border);
border-radius: var(--radius);
padding: 24px; text-align: center; cursor: pointer; position: relative;
background: rgba(255,255,255,0.02); transition: all 0.2s;
}
.upload-box:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 24px; display: block; margin-bottom: 8px; color: var(--text-muted); }
.upload-box p { margin: 0; font-size: 13px; color: var(--text-muted); }
/* Settings */
.setting-item { margin-bottom: 16px; }
.setting-item label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
input[type="range"] { width: 100%; accent-color: var(--primary); }
input[type="color"] { width: 100%; height: 36px; border: none; padding: 0; background: none; cursor: pointer; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
/* Buttons */
.btn {
width: 100%; padding: 10px 16px; border-radius: var(--radius);
border: none; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
cursor: pointer; margin-bottom: 10px; transition: background 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--text-main); color: var(--text-main); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sidebar-footer { margin-top: auto; font-size: 12px; color: var(--text-muted); }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mono { font-family: monospace; color: var(--text-main); }
/* Workspace */
.workspace { flex: 1; display: flex; flex-direction: column; background-color: #000; position: relative; }
.toolbar {
height: 56px; border-bottom: 1px solid var(--border);
display: flex; align-items: center; justify-content: space-between;
padding: 0 24px; background: var(--bg-body);
}
.tabs { display: flex; gap: 4px; background: var(--bg-sidebar); padding: 4px; border-radius: 6px; }
.tab {
background: transparent; border: none; color: var(--text-muted);
padding: 6px 12px; font-size: 13px; border-radius: 4px; cursor: pointer;
}
.tab.active { background: var(--bg-card); color: var(--text-main); font-weight: 500; }
.status-indicator { font-size: 12px; color: var(--text-muted); }
.status-indicator.working { color: var(--primary); }
.viewport {
flex: 1; display: flex; align-items: center; justify-content: center;
position: relative; overflow: hidden; padding: 20px;
}
.empty-state {
display: flex; flex-direction: column; align-items: center; justify-content: center;
text-align: center; color: var(--text-muted); width: 100%; height: 100%;
}
.empty-icon { font-size: 48px; opacity: 0.3; margin-bottom: 16px; }
.canvas-container {
box-shadow: 0 0 0 1px #222, 0 20px 50px rgba(0,0,0,0.5);
max-width: 95%; max-height: 95%; display: flex;
}
canvas { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Loader */
.loader-overlay {
position: absolute; inset: 0; background: rgba(11, 15, 25, 0.8);
backdrop-filter: blur(4px); display: flex; flex-direction: column;
align-items: center; justify-content: center; z-index: 50;
}
.spinner {
width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1);
border-radius: 50%; border-top-color: var(--primary);
animation: spin 1s linear infinite; margin-bottom: 16px;
}
.loading-text { font-weight: 500; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }