492 lines
14 KiB
CSS
492 lines
14 KiB
CSS
:root {
|
|||
|
|
--primary: #FF6C37;
|
||
|
|
--primary-dark: #e55f2c;
|
||
|
|
--secondary: #FF8559;
|
||
|
|
--bg-dark: #1a1a1a;
|
||
|
|
--bg-card: #252525;
|
||
|
|
--bg-input: #2b2b2b;
|
||
|
|
--text-main: #EAEAEA;
|
||
|
|
--text-secondary: #A6A6A6;
|
||
|
|
--border: #333333;
|
||
|
|
--border-focus: #FF6C37;
|
||
|
|
--sidebar-width: 260px;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: 'Inter', sans-serif;
|
||
|
|
background-color: var(--bg-dark);
|
||
|
|
color: var(--text-main);
|
||
|
|
height: 100vh;
|
||
|
|
display: flex;
|
||
|
|
overflow: hidden;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Sidebar */
|
||
|
|
.sidebar {
|
||
|
|
width: var(--sidebar-width);
|
||
|
|
background: rgba(255, 255, 255, 0.05);
|
||
|
|
|
||
|
|
border-right: 1px solid var(--border);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
padding: 24px;
|
||
|
|
transition: transform 0.3s ease;
|
||
|
|
position: relative;
|
||
|
|
z-index: 10;
|
||
|
|
box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
font-size: 1.25rem;
|
||
|
|
font-weight: 700;
|
||
|
|
color: var(--primary);
|
||
|
|
margin-bottom: 40px;
|
||
|
|
padding-bottom: 24px;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo i {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
color: var(--primary);
|
||
|
|
filter: drop-shadow(0 0 10px var(--primary));
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 8px;
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 12px 16px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
text-decoration: none;
|
||
|
|
border-radius: 12px;
|
||
|
|
transition: all 0.3s;
|
||
|
|
cursor: pointer;
|
||
|
|
font-weight: 500;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item:hover {
|
||
|
|
background: rgba(0, 245, 255, 0.1);
|
||
|
|
color: #fff;
|
||
|
|
transform: translateX(5px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item.active {
|
||
|
|
background: var(--primary);
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: 0 4px 20px rgba(255, 108, 55, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item i { width: 24px; text-align: center; }
|
||
|
|
|
||
|
|
.divider {
|
||
|
|
height: 1px;
|
||
|
|
background: linear-gradient(90deg, transparent, var(--border), transparent);
|
||
|
|
margin: 16px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-title {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
color: var(--primary);
|
||
|
|
margin-bottom: 12px;
|
||
|
|
padding-left: 12px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Main Content */
|
||
|
|
.main-content {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 40px;
|
||
|
|
position: relative;
|
||
|
|
z-index: 5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 32px;
|
||
|
|
background: var(--bg-card);
|
||
|
|
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 20px;
|
||
|
|
padding: 25px 30px;
|
||
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-title h2 {
|
||
|
|
font-size: 1.875rem;
|
||
|
|
font-weight: 700;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
color: #fff;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
.page-title p { color: var(--text-secondary); }
|
||
|
|
|
||
|
|
/* Tools Container */
|
||
|
|
.tool-view { display: none; animation: fadeIn 0.4s ease; }
|
||
|
|
.tool-view.active { display: block; }
|
||
|
|
|
||
|
|
@keyframes fadeIn {
|
||
|
|
from { opacity: 0; transform: translateY(10px); }
|
||
|
|
to { opacity: 1; transform: translateY(0); }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Upload Area */
|
||
|
|
.upload-area {
|
||
|
|
border: 2px dashed var(--border);
|
||
|
|
border-radius: 20px;
|
||
|
|
padding: 20px;
|
||
|
|
min-height: 250px;
|
||
|
|
text-align: center;
|
||
|
|
background: rgba(255, 108, 55, 0.05);
|
||
|
|
|
||
|
|
transition: all 0.3s;
|
||
|
|
cursor: pointer;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
margin-bottom: 32px;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.upload-area:hover, .upload-area.dragover {
|
||
|
|
border-color: var(--primary);
|
||
|
|
background: rgba(255, 108, 55, 0.1);
|
||
|
|
transform: translateY(-5px);
|
||
|
|
box-shadow: 0 20px 60px rgba(255, 108, 55, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.upload-icon {
|
||
|
|
font-size: 48px;
|
||
|
|
color: var(--primary);
|
||
|
|
margin-bottom: 16px;
|
||
|
|
filter: drop-shadow(0 0 20px var(--primary));
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Controls Panel */
|
||
|
|
.controls-panel {
|
||
|
|
background: var(--bg-card);
|
||
|
|
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 20px;
|
||
|
|
padding: 24px;
|
||
|
|
margin-bottom: 32px;
|
||
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.input-group { margin-bottom: 20px; }
|
||
|
|
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-secondary); }
|
||
|
|
|
||
|
|
input[type="text"], input[type="number"], select {
|
||
|
|
width: 100%;
|
||
|
|
padding: 12px 16px;
|
||
|
|
background: rgba(0, 0, 0, 0.3);
|
||
|
|
border: 2px solid var(--border);
|
||
|
|
border-radius: 12px;
|
||
|
|
color: #fff;
|
||
|
|
font-size: 1rem;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
input[type="text"]:focus, input[type="number"]:focus, select:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--primary);
|
||
|
|
box-shadow: 0 0 20px rgba(255, 108, 55, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
|
||
|
|
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
|
||
|
|
|
||
|
|
/* Range Slider */
|
||
|
|
input[type="range"] {
|
||
|
|
width: 100%;
|
||
|
|
height: 6px;
|
||
|
|
background: var(--border);
|
||
|
|
border-radius: 3px;
|
||
|
|
appearance: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
input[type="range"]::-webkit-slider-thumb {
|
||
|
|
appearance: none;
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
background: var(--primary);
|
||
|
|
border-radius: 50%;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: transform 0.2s;
|
||
|
|
box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
|
||
|
|
}
|
||
|
|
|
||
|
|
input[type="range"]::-webkit-slider-thumb:hover {
|
||
|
|
transform: scale(1.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Buttons */
|
||
|
|
.btn {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 12px 24px;
|
||
|
|
background: var(--primary);
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: 12px;
|
||
|
|
font-weight: 700;
|
||
|
|
font-size: 1rem;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
|
||
|
|
width: 100%;
|
||
|
|
box-shadow: 0 10px 30px rgba(255, 108, 55, 0.4);
|
||
|
|
|
||
|
|
.btn::after {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
top: 50%;
|
||
|
|
left: 50%;
|
||
|
|
width: 0;
|
||
|
|
height: 0;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: rgba(255, 255, 255, 0.5);
|
||
|
|
transform: translate(-50%, -50%);
|
||
|
|
transition: width 0.6s, height 0.6s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn:active::after {
|
||
|
|
width: 300px;
|
||
|
|
height: 300px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary {
|
||
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
|
||
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
.btn-secondary:hover {
|
||
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Results */
|
||
|
|
.results-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.result-card {
|
||
|
|
background-color: var(--bg-card);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 12px;
|
||
|
|
overflow: hidden;
|
||
|
|
transition: transform 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.result-card:hover { transform: translateY(-4px); border-color: var(--primary); }
|
||
|
|
|
||
|
|
.image-preview {
|
||
|
|
height: 200px;
|
||
|
|
background-color: #000;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.image-preview img {
|
||
|
|
max-width: 100%;
|
||
|
|
max-height: 100%;
|
||
|
|
object-fit: contain;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-body { padding: 16px; }
|
||
|
|
.file-name { font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
|
|
.file-meta { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; display: flex; justify-content: space-between; }
|
||
|
|
|
||
|
|
.download-link {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 8px;
|
||
|
|
background-color: rgba(99, 102, 241, 0.1);
|
||
|
|
color: var(--primary);
|
||
|
|
text-decoration: none;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
font-weight: 500;
|
||
|
|
transition: background 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.download-link:hover { background-color: rgba(99, 102, 241, 0.2); }
|
||
|
|
|
||
|
|
/* Batch Console */
|
||
|
|
.console {
|
||
|
|
background-color: #000;
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 16px;
|
||
|
|
font-family: 'Courier New', monospace;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
color: #10b981;
|
||
|
|
height: 300px;
|
||
|
|
overflow-y: auto;
|
||
|
|
margin-top: 24px;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.console-line { margin-bottom: 4px; }
|
||
|
|
.console-error { color: #ef4444; }
|
||
|
|
|
||
|
|
/* Toast Messages */
|
||
|
|
.toast-container {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 24px;
|
||
|
|
right: 24px;
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast {
|
||
|
|
background-color: var(--bg-card);
|
||
|
|
border-left: 4px solid var(--primary);
|
||
|
|
padding: 16px 24px;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
||
|
|
margin-top: 12px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
animation: slideIn 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.error { border-left-color: #ef4444; }
|
||
|
|
.toast.success { border-left-color: #10b981; }
|
||
|
|
|
||
|
|
@keyframes slideIn {
|
||
|
|
from { transform: translateX(100%); opacity: 0; }
|
||
|
|
to { transform: translateX(0); opacity: 1; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Loading */
|
||
|
|
.loader {
|
||
|
|
display: none;
|
||
|
|
position: fixed;
|
||
|
|
top: 0; left: 0; width: 100%; height: 100%;
|
||
|
|
background: rgba(15, 23, 42, 0.8);
|
||
|
|
z-index: 999;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
flex-direction: column;
|
||
|
|
animation: glow 3s ease-in-out infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
.loader.active { display: flex; }
|
||
|
|
|
||
|
|
@keyframes glow {
|
||
|
|
0%, 100% { filter: drop-shadow(0 0 20px #8b5cf6); }
|
||
|
|
50% { filter: drop-shadow(0 0 35px #a78bfa); }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Custom Animated Loader Spinner */
|
||
|
|
.spinner {
|
||
|
|
width: 50px;
|
||
|
|
height: 50px;
|
||
|
|
border: 5px solid rgba(139, 92, 246, 0.3);
|
||
|
|
border-top-color: #8b5cf6;
|
||
|
|
border-radius: 50%;
|
||
|
|
animation: loaderSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes loaderSpin {
|
||
|
|
0% { transform: rotate(0deg) scale(1); }
|
||
|
|
50% { transform: rotate(180deg) scale(1.2); }
|
||
|
|
100% { transform: rotate(360deg) scale(1); }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Text Shadow Pulse on Hover */
|
||
|
|
h1, h2, h3 {
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
h1:hover, h2:hover, h3:hover {
|
||
|
|
text-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
|
||
|
|
0 0 40px rgba(139, 92, 246, 0.5),
|
||
|
|
0 0 60px rgba(139, 92, 246, 0.3);
|
||
|
|
transform: translateY(-2px);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Icon Float Animation */
|
||
|
|
.icon-float {
|
||
|
|
animation: floatIcon 3s ease-in-out infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes floatIcon {
|
||
|
|
0%, 100% { transform: translateY(0px); }
|
||
|
|
50% { transform: translateY(-15px); }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Input Focus Glow Effect */
|
||
|
|
input[type="range"]:focus {
|
||
|
|
outline: none;
|
||
|
|
box-shadow: 0 0 0 3px rgba(255, 108, 55, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tooltip Fade In */
|
||
|
|
[title]:hover::after {
|
||
|
|
content: attr(title);
|
||
|
|
position: absolute;
|
||
|
|
bottom: 125%;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
padding: 8px 12px;
|
||
|
|
background: rgba(139, 92, 246, 0.95);
|
||
|
|
color: white;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-size: 12px;
|
||
|
|
white-space: nowrap;
|
||
|
|
opacity: 0;
|
||
|
|
animation: tooltipFade 0.3s ease forwards;
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes tooltipFade {
|
||
|
|
to { opacity: 1; transform: translateX(-50%) translateY(-5px); }
|
||
|
|
}
|
||
|
|
/* Scrollbar */
|
||
|
|
::-webkit-scrollbar { width: 12px; height: 12px; }
|
||
|
|
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 10px; }
|
||
|
|
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #8b5cf6, #a78bfa); border-radius: 10px; }
|
||
|
|
|
||
|
|
/* ─── Low-end device & responsiveness performance optimizations ─── */
|
||
|
|
@media (prefers-reduced-motion: reduce) {
|
||
|
|
*, *::before, *::after {
|
||
|
|
animation-duration: 0.01ms !important;
|
||
|
|
animation-iteration-count: 1 !important;
|
||
|
|
transition-duration: 0.01ms !important;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.sidebar {
|
||
|
|
contain: layout style;
|
||
|
|
}
|
||
|
|
.main-content {
|
||
|
|
contain: content;
|
||
|
|
}
|