arihant3704's picture
Upload 14 files
ec0daf5 verified
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
--bg-dark: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--accent: #06b6d4;
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
}
body {
background-color: var(--bg-dark);
color: var(--text-main);
min-height: 100vh;
display: flex;
justify-content: center;
overflow-x: hidden;
}
.background-blob {
position: fixed;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0,0,0,0) 70%);
top: -200px;
left: -200px;
z-index: -1;
animation: pulse 10s infinite alternate;
}
.blob-2 {
top: auto;
left: auto;
bottom: -200px;
right: -200px;
background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0,0,0,0) 70%);
}
@keyframes pulse {
from { transform: scale(1); opacity: 0.5; }
to { transform: scale(1.2); opacity: 0.8; }
}
.container {
width: 100%;
max-width: 900px;
padding: 2rem;
position: relative;
z-index: 1;
}
header {
text-align: center;
margin-bottom: 3rem;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 0.5rem;
}
.logo i {
font-size: 2.5rem;
color: var(--accent);
filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}
.logo h1 {
font-size: 2.5rem;
font-weight: 700;
}
.logo span {
color: var(--primary);
}
.subtitle {
color: var(--text-muted);
font-size: 1.1rem;
}
.card {
background: var(--card-bg);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 1.5rem;
margin-bottom: 2rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass {
backdrop-filter: blur(12px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.card:hover {
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
border-color: rgba(255, 255, 255, 0.2);
}
.card-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
}
.card-header i {
color: var(--accent);
font-size: 1.2rem;
}
.card-header h2 {
font-size: 1.3rem;
font-weight: 600;
}
.upload-zone {
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 15px;
padding: 2.5rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
}
.upload-zone:hover, .upload-zone.dragover {
background: rgba(255, 255, 255, 0.05);
border-color: var(--primary);
}
.upload-icon {
font-size: 2.5rem;
color: var(--text-muted);
margin-bottom: 1rem;
transition: color 0.3s ease;
}
.upload-zone:hover .upload-icon {
color: var(--primary);
}
.upload-zone span {
display: block;
margin-top: 0.5rem;
font-size: 0.9rem;
color: var(--text-muted);
}
.status-badge {
margin-top: 1rem;
padding: 0.6rem 1rem;
border-radius: 10px;
display: flex;
align-items: center;
gap: 0.8rem;
background: rgba(239, 68, 68, 0.1);
color: var(--error);
font-size: 0.95rem;
}
.status-badge.loaded {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
}
/* Redesigned Preview Area */
.preview-area {
width: 100%;
min-height: 300px;
background: radial-gradient(circle, #1e293b 0%, #000 100%);
border-radius: 12px;
overflow: hidden;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 0 20px rgba(79, 70, 229, 0.1);
border: 1px solid rgba(255, 255, 255, 0.05);
}
#canvas-wrapper {
position: relative;
max-width: 100%;
}
#roi-canvas {
display: block;
max-width: 100%;
cursor: crosshair;
}
.hint-badge {
margin-left: auto;
font-size: 0.8rem;
background: var(--warning);
color: #000;
padding: 0.2rem 0.6rem;
border-radius: 20px;
font-weight: 600;
}
/* Settings Panel */
.settings-panel {
background: rgba(0,0,0,0.2);
padding: 1.2rem;
border-radius: 12px;
margin-bottom: 1.5rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
@media (max-width: 600px) {
.settings-panel { grid-template-columns: 1fr; }
}
.setting-item label {
display: block;
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 0.8rem;
}
.setting-item.double-slider {
grid-column: 1 / -1;
background: rgba(255, 255, 255, 0.05);
padding: 1rem;
border-radius: 12px;
}
.slider-group {
display: flex;
flex-direction: column;
gap: 1rem;
}
.slider-row {
display: flex;
align-items: center;
gap: 1rem;
}
.slider-label {
font-size: 0.8rem;
color: var(--text-muted);
min-width: 40px;
}
.roi-controls {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
}
.label-with-toggle {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.8rem;
}
.btn-text {
background: none;
border: none;
color: var(--accent);
font-size: 0.85rem;
cursor: pointer;
padding: 0;
transition: opacity 0.2s;
}
.btn-text:hover { opacity: 0.8; }
.roi-inputs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
.roi-group {
background: rgba(255, 255, 255, 0.03);
padding: 0.8rem;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.group-label {
display: block;
font-size: 0.75rem;
color: var(--accent);
margin-bottom: 0.5rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05rem;
}
.coord-inputs {
display: flex;
gap: 0.8rem;
}
.coord-input {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.coord-input span {
font-size: 0.65rem;
color: var(--text-muted);
}
.coord-input input {
width: 100%;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
padding: 0.5rem;
border-radius: 8px;
text-align: center;
font-size: 0.95rem;
transition: border-color 0.2s;
}
.coord-input input:focus {
border-color: var(--primary);
outline: none;
}
/* Enhancing inputs */
input[type="range"] {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 5px;
appearance: none;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 18px;
background: var(--primary);
border: 2px solid var(--accent);
border-radius: 50%;
cursor: pointer;
box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
/* Actions */
.action-bar {
display: flex;
gap: 1rem;
justify-content: center;
}
.btn-primary {
background: var(--primary);
color: white;
border: none;
padding: 0.8rem 2rem;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.8rem;
transition: all 0.2s ease;
text-decoration: none;
font-size: 1rem;
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.main-action {
width: 100%;
justify-content: center;
font-size: 1.1rem;
padding: 1rem;
}
/* Spinner & Progress */
.spinner-container {
text-align: center;
padding: 2rem;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.1);
border-top: 4px solid var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.progress-info {
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
font-size: 0.95rem;
}
.progress-bar-bg {
background: rgba(255, 255, 255, 0.1);
height: 10px;
border-radius: 5px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary), var(--accent));
width: 0%;
transition: width 0.3s ease;
}
/* Results */
.result-viewer {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.result-viewer img, .result-viewer video {
width: 100%;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.badge {
margin-left: auto;
background: var(--success);
color: white;
padding: 0.25rem 0.8rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.hidden { display: none !important; }
/* Toast */
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(100%); opacity: 0; }
}