FormaAI-Web / static /style.css
1xCode's picture
Upload 216 files
0a4881d verified
Raw
History Blame Contribute Delete
15.7 kB
/* Modern Reset & Base Variable Styles */
:root {
--bg-color: #06080c;
--bg-darker: #040508;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--glass-bg: rgba(11, 16, 27, 0.65);
--glass-border: rgba(255, 255, 255, 0.08);
--glass-border-focus: rgba(139, 92, 246, 0.4);
--primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
--neon-purple: #a78bfa;
--neon-indigo: #818cf8;
--neon-cyan: #22d3ee;
--neon-green: #34d399;
--neon-red: #fb7185;
--font-outfit: 'Outfit', 'Inter', sans-serif;
--font-inter: 'Inter', sans-serif;
--radius-lg: 20px;
--radius-md: 12px;
--radius-sm: 8px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-inter);
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
/* Background Ambient Glows */
.glow-bg {
position: absolute;
width: 600px;
height: 600px;
border-radius: 50%;
background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
top: -10%;
left: 20%;
z-index: -1;
filter: blur(80px);
pointer-events: none;
animation: glow-float 20s infinite alternate ease-in-out;
}
@keyframes glow-float {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(50px, 30px) scale(1.15); }
}
/* Container & Grid Layout */
.container {
max-width: 1300px;
margin: 0 auto;
padding: 40px 24px;
}
.header {
text-align: center;
margin-bottom: 40px;
}
.header-title {
font-family: var(--font-outfit);
font-size: 3.2rem;
font-weight: 900;
letter-spacing: -1.5px;
background: linear-gradient(90deg, #c084fc 0%, #818cf8 50%, #22d3ee 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 12px;
animation: title-glow 3s infinite alternate ease-in-out;
}
.header-subtitle {
color: var(--text-secondary);
font-size: 1.15rem;
font-weight: 300;
}
.workspace {
display: grid;
grid-template-columns: 4.5fr 7.5fr;
gap: 28px;
align-items: start;
}
@media (max-width: 1024px) {
.workspace {
grid-template-columns: 1fr;
}
}
/* Glassmorphism Panel styles */
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
padding: 28px;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
transition: var(--transition);
}
.glass-panel:hover {
border-color: rgba(255, 255, 255, 0.12);
}
.panel-section {
margin-bottom: 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
padding-bottom: 20px;
}
.panel-section:last-of-type {
border-bottom: none;
padding-bottom: 0;
}
.section-title {
font-family: var(--font-outfit);
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 16px;
display: flex;
align-items: center;
color: var(--text-primary);
}
.section-title .icon {
margin-right: 10px;
}
/* Drag & Drop Zone */
.dropzone {
border: 2px dashed rgba(255, 255, 255, 0.15);
border-radius: var(--radius-md);
padding: 30px 20px;
text-align: center;
cursor: pointer;
background: rgba(255, 255, 255, 0.01);
transition: var(--transition);
position: relative;
overflow: hidden;
}
.dropzone:hover, .dropzone.dragover {
border-color: var(--neon-indigo);
background: rgba(99, 102, 241, 0.04);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
.upload-icon {
color: var(--text-secondary);
margin-bottom: 12px;
transition: var(--transition);
}
.dropzone:hover .upload-icon {
color: var(--neon-cyan);
transform: translateY(-4px);
}
.upload-text {
font-size: 0.95rem;
color: var(--text-secondary);
margin-bottom: 6px;
}
.upload-text span {
color: var(--neon-indigo);
font-weight: 600;
}
.upload-hint {
font-size: 0.8rem;
color: var(--text-muted);
}
.dropzone-preview {
position: relative;
width: 100%;
max-height: 220px;
border-radius: var(--radius-sm);
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.dropzone-preview img {
max-width: 100%;
max-height: 200px;
object-fit: contain;
border-radius: var(--radius-sm);
}
.remove-btn {
position: absolute;
top: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.7);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 6px 12px;
font-size: 0.8rem;
border-radius: var(--radius-sm);
cursor: pointer;
font-weight: 600;
transition: var(--transition);
}
.remove-btn:hover {
background: var(--neon-red);
border-color: transparent;
}
/* Accordion Styling */
.accordion-header {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
user-select: none;
}
.accordion-header .section-title {
margin-bottom: 0;
}
.accordion-header .arrow {
font-size: 0.8rem;
color: var(--text-secondary);
transition: transform 0.3s ease;
}
.accordion.open .accordion-header .arrow {
transform: rotate(180deg);
}
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion.open .accordion-content {
max-height: 500px;
margin-top: 18px;
}
/* Inputs & Form Groups */
.form-group {
margin-bottom: 18px;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-group label {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.88rem;
color: var(--text-secondary);
margin-bottom: 8px;
}
.badge {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--neon-cyan);
padding: 2px 8px;
border-radius: var(--radius-sm);
font-family: monospace;
font-size: 0.82rem;
font-weight: 600;
}
/* Range input styling */
input[type="range"] {
-webkit-appearance: none;
width: 100%;
height: 6px;
border-radius: 3px;
background: #1e293b;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--neon-indigo);
cursor: pointer;
box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
background: var(--neon-cyan);
box-shadow: 0 0 15px rgba(34, 211, 238, 0.7);
}
/* Number input styling */
input[type="number"] {
width: 100%;
background: #0f172a;
border: 1px solid var(--glass-border);
padding: 10px 14px;
color: var(--text-primary);
border-radius: var(--radius-sm);
font-family: inherit;
outline: none;
transition: var(--transition);
}
input[type="number"]:focus {
border-color: var(--neon-indigo);
box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}
/* Checkbox & Radios */
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
accent-color: var(--neon-indigo);
width: 16px;
height: 16px;
cursor: pointer;
}
.checkbox-group label {
margin-bottom: 0;
cursor: pointer;
font-size: 0.9rem;
}
.radio-group {
display: flex;
gap: 8px;
background: #0f172a;
padding: 4px;
border-radius: var(--radius-sm);
border: 1px solid var(--glass-border);
}
.radio-label {
flex: 1;
cursor: pointer;
margin-bottom: 0 !important;
}
.radio-label input {
display: none;
}
.radio-label span {
display: block;
text-align: center;
padding: 8px;
border-radius: 6px;
font-size: 0.8rem;
color: var(--text-secondary);
transition: var(--transition);
font-weight: 500;
}
.radio-label input:checked + span {
background: var(--primary-gradient);
color: white;
box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.device-radio {
background: #0b0f19;
}
/* Primary Submit Button */
.btn-primary {
display: block;
width: 100%;
background: var(--primary-gradient);
color: white;
font-family: var(--font-outfit);
font-size: 1.1rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 16px;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
margin-top: 28px;
transition: var(--transition);
box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
}
.btn-primary:active {
transform: translateY(1px);
}
/* Status Logger Box */
.status-box {
margin-top: 24px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: var(--radius-md);
padding: 18px;
}
.status-header {
display: flex;
justify-content: space-between;
font-size: 0.88rem;
margin-bottom: 10px;
}
.status-label {
color: var(--text-secondary);
}
.status-label strong {
color: var(--neon-cyan);
}
.status-percent {
color: var(--neon-indigo);
font-weight: 600;
font-family: monospace;
}
.progress-bar-container {
width: 100%;
height: 8px;
background: #0f172a;
border-radius: 4px;
overflow: hidden;
margin-bottom: 16px;
}
.progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-indigo) 100%);
border-radius: 4px;
transition: width 0.4s ease;
}
.log-output {
background: #04060b;
border: 1px solid rgba(255, 255, 255, 0.03);
height: 120px;
border-radius: var(--radius-sm);
padding: 12px;
font-family: monospace;
font-size: 0.8rem;
overflow-y: auto;
color: var(--text-secondary);
}
.log-line {
margin-bottom: 6px;
line-height: 1.3;
}
.log-line:last-child {
margin-bottom: 0;
}
.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }
/* Viewport / 3D Viewer Panel */
.viewport-container {
width: 100%;
height: 400px;
background: #04060a;
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
overflow: hidden;
position: relative;
margin-bottom: 24px;
}
.viewport-placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
text-align: center;
color: var(--text-muted);
}
.placeholder-icon {
margin-bottom: 16px;
opacity: 0.4;
animation: pulse 2.5s infinite ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 0.4; }
50% { transform: scale(1.05); opacity: 0.7; }
100% { transform: scale(1); opacity: 0.4; }
}
.viewport-placeholder p {
font-size: 0.9rem;
max-width: 320px;
}
/* Tabs Navigation & Panels */
.tabs-container {
width: 100%;
}
.tabs-header {
display: flex;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
margin-bottom: 20px;
}
.tab-btn {
padding: 12px 24px;
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 0.92rem;
font-weight: 600;
cursor: pointer;
position: relative;
transition: var(--transition);
}
.tab-btn:disabled {
cursor: not-allowed;
opacity: 0.4;
}
.tab-btn.active {
color: var(--neon-indigo);
}
.tab-btn.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 2px;
background: var(--primary-gradient);
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
/* Images gallery preview */
.gallery {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
@media (max-width: 580px) {
.gallery {
grid-template-columns: 1fr;
}
}
.gallery-item h3 {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 8px;
font-weight: 500;
}
.gallery-image-box {
background: #04060a;
border: 1px solid var(--glass-border);
border-radius: var(--radius-sm);
height: 180px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.gallery-image-box img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.img-placeholder {
color: var(--text-muted);
font-size: 0.82rem;
}
/* File list downloads styling */
.files-list {
background: #04060a;
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 12px;
}
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.file-item:last-child {
border-bottom: none;
}
.file-info {
display: flex;
align-items: center;
gap: 10px;
}
.file-icon {
font-size: 1.4rem;
display: flex;
align-items: center;
justify-content: center;
}
.file-icon svg {
color: var(--neon-cyan);
filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.3));
transition: var(--transition);
}
.file-item:hover .file-icon svg {
color: var(--neon-purple);
filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.5));
transform: scale(1.1);
}
.file-name {
font-size: 0.9rem;
font-weight: 600;
}
.file-size {
font-size: 0.75rem;
color: var(--text-muted);
}
.btn-download {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-primary);
padding: 6px 14px;
border-radius: var(--radius-sm);
font-size: 0.8rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: var(--transition);
}
.btn-download:hover {
background: var(--neon-indigo);
border-color: transparent;
box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
/* Language Switcher Styles */
.top-bar {
display: flex;
justify-content: flex-end;
margin-bottom: 15px;
width: 100%;
}
.lang-switcher {
display: flex;
align-items: center;
background: rgba(15, 23, 42, 0.45);
border: 1px solid var(--glass-border);
border-radius: 30px;
padding: 3px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.lang-btn {
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 20px;
color: var(--text-secondary);
font-family: var(--font-outfit);
font-size: 0.8rem;
font-weight: 600;
transition: var(--transition);
}
.lang-btn svg {
border-radius: 50%;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
transition: var(--transition);
}
.lang-btn.active {
color: var(--text-primary);
background: var(--primary-gradient);
box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}
.lang-btn.active svg {
box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.lang-btn:hover:not(.active) {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.05);
}
.lang-btn:hover svg {
transform: scale(1.1);
}