FLOOR2MODEL / frontend /src /index.css
Harisri
Purged CV model deployment
fc895f4
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
:root {
--bg-color: #050505;
--text-color: #f1f1f1;
--primary: #6366f1;
--primary-glow: rgba(99, 102, 241, 0.5);
--secondary: #ec4899;
--glass-bg: rgba(255, 255, 255, 0.03);
--glass-border: rgba(255, 255, 255, 0.05);
--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
--radius: 16px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
min-height: 100vh;
overflow-x: hidden;
background-image:
radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
background-attachment: fixed;
}
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
box-shadow: var(--glass-shadow);
}
.app-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 3rem;
}
/* Header */
header {
text-align: center;
margin-top: 4rem;
margin-bottom: 2rem;
}
h1 {
font-size: 4rem;
font-weight: 700;
background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
letter-spacing: -1px;
}
.subtitle {
font-size: 1.2rem;
color: #a1a1aa;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
/* Dropzone */
.dropzone-container {
width: 100%;
max-width: 800px;
margin: 0 auto;
}
.dropzone {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4rem 2rem;
border: 2px dashed rgba(99, 102, 241, 0.3);
border-radius: var(--radius);
background: rgba(99, 102, 241, 0.02);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.dropzone:hover, .dropzone.active {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.05);
box-shadow: 0 0 30px var(--primary-glow);
}
.dropzone-icon {
width: 64px;
height: 64px;
color: var(--primary);
margin-bottom: 1.5rem;
transition: transform 0.3s ease;
}
.dropzone:hover .dropzone-icon {
transform: translateY(-5px);
}
.dropzone-text {
font-size: 1.25rem;
font-weight: 500;
margin-bottom: 0.5rem;
}
.dropzone-subtext {
color: #71717a;
font-size: 0.9rem;
}
/* Results Grid */
.results-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.result-card {
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
transition: transform 0.3s ease;
}
.result-card:hover {
transform: translateY(-5px);
}
.result-card-header {
padding: 1.25rem;
border-bottom: 1px solid var(--glass-border);
display: flex;
align-items: center;
gap: 0.75rem;
}
.result-card-title {
font-size: 1.1rem;
font-weight: 600;
}
.result-card-content {
flex: 1;
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: rgba(0, 0, 0, 0.2);
}
.result-image {
width: 100%;
height: 100%;
object-fit: contain;
padding: 1rem;
}
/* 3D Viewer specific */
.viewer-3d {
grid-column: 1 / -1;
min-height: 500px;
}
model-viewer {
width: 100%;
height: 100%;
--poster-color: transparent;
}
/* Buttons */
.btn {
background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-family: inherit;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Loading State */
.loader-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4rem 0;
gap: 2rem;
}
.spinner {
width: 60px;
height: 60px;
border: 4px solid rgba(255, 255, 255, 0.1);
border-left-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.processing-text {
font-size: 1.5rem;
font-weight: 500;
background: linear-gradient(90deg, #fff, #a5a5a5, #fff);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 2s linear infinite;
}
@keyframes shine {
to { background-position: 200% center; }
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.4);
}
/* Video Background */
.bg-video {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: -1;
opacity: 0.4;
transition: opacity 1s ease-in-out;
pointer-events: none;
}
.bg-video.hidden {
opacity: 0.05;
filter: blur(10px);
}
/* Landing Page */
.landing-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 80vh;
text-align: center;
gap: 2rem;
}
.landing-title {
font-size: 6rem;
font-weight: 800;
background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 0.5rem;
letter-spacing: -2px;
filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.3));
}
.landing-description {
font-size: 1.5rem;
color: #e4e4e7;
max-width: 800px;
line-height: 1.6;
margin-bottom: 2rem;
text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.landing-btn {
font-size: 1.25rem;
padding: 1rem 3rem;
border-radius: 50px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.landing-btn:hover {
background: var(--primary);
border-color: var(--primary);
transform: translateY(-3px) scale(1.05);
box-shadow: 0 15px 40px var(--primary-glow);
}