Files
2026-04-19 15:39:23 +02:00

422 lines
7.0 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--bg-dark: #0f0f1a;
--bg-card: #1a1a2e;
--bg-hover: #252542;
--text: #e2e8f0;
--text-muted: #94a3b8;
--border: #2d2d4a;
--success: #22c55e;
--error: #ef4444;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-dark);
color: var(--text);
min-height: 100vh;
line-height: 1.6;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 40px 20px;
}
/* Header */
header {
text-align: center;
margin-bottom: 40px;
}
h1 {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(135deg, var(--primary), #a855f7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 8px;
}
.subtitle {
color: var(--text-muted);
font-size: 1rem;
}
/* Upload Zone */
.upload-zone {
background: var(--bg-card);
border: 2px dashed var(--border);
border-radius: 16px;
padding: 60px 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
}
.upload-zone:hover, .upload-zone.dragover {
border-color: var(--primary);
background: var(--bg-hover);
}
.upload-icon {
width: 64px;
height: 64px;
color: var(--primary);
margin-bottom: 16px;
}
.upload-text {
font-size: 1.1rem;
font-weight: 500;
margin-bottom: 8px;
}
.upload-hint {
color: var(--text-muted);
font-size: 0.875rem;
}
/* Options */
.options {
margin-top: 24px;
margin-bottom: 30px;
}
.checkbox-label {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 16px 20px;
background: var(--bg-card);
border-radius: 12px;
cursor: pointer;
border: 1px solid var(--border);
transition: border-color 0.2s;
}
.checkbox-label:hover {
border-color: var(--primary);
}
.checkbox-label input {
display: none;
}
.checkmark {
width: 22px;
height: 22px;
min-width: 22px;
border: 2px solid var(--border);
border-radius: 6px;
position: relative;
transition: all 0.2s;
}
.checkbox-label input:checked + .checkmark {
background: var(--primary);
border-color: var(--primary);
}
.checkbox-label input:checked + .checkmark::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 14px;
font-weight: bold;
}
.option-text {
display: flex;
flex-direction: column;
}
.option-text strong {
font-weight: 600;
color: var(--text);
}
.option-text small {
color: var(--text-muted);
font-size: 0.85rem;
margin-top: 2px;
}
/* Preview */
.preview {
margin-bottom: 30px;
}
.preview h3 {
margin-bottom: 16px;
font-weight: 600;
}
.preview-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.preview-item {
text-align: center;
}
.preview-item img {
width: 100%;
max-height: 200px;
object-fit: contain;
border-radius: 8px;
background: var(--bg-card);
}
.preview-label {
display: block;
margin-top: 8px;
color: var(--text-muted);
font-size: 0.875rem;
}
/* Phone Frame */
.phone-frame {
position: relative;
width: 120px;
height: 260px;
margin: 0 auto;
background: #000;
border-radius: 24px;
padding: 8px;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.phone-screen {
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 16px;
background: var(--bg-card);
}
.phone-screen img {
width: 100%;
height: 100%;
object-fit: cover;
}
.phone-notch {
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 18px;
background: #000;
border-radius: 10px;
}
/* Progress */
.progress {
background: var(--bg-card);
border-radius: 16px;
padding: 30px;
text-align: center;
}
.progress-bar {
width: 100%;
height: 6px;
background: var(--border);
border-radius: 3px;
overflow: hidden;
margin-bottom: 16px;
}
.progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--primary), #a855f7);
border-radius: 3px;
animation: progress 2s ease-in-out infinite;
}
@keyframes progress {
0% { width: 0%; opacity: 1; }
50% { width: 100%; opacity: 1; }
100% { width: 100%; opacity: 0; }
}
.progress-text {
color: var(--text-muted);
margin-bottom: 20px;
}
.processing-steps {
display: flex;
flex-direction: column;
gap: 8px;
}
.step {
color: var(--text-muted);
font-size: 0.875rem;
padding: 6px 12px;
border-radius: 20px;
transition: all 0.3s;
}
.step.active {
color: var(--primary);
background: rgba(99, 102, 241, 0.1);
font-weight: 500;
}
.step::before {
content: '○ ';
}
.step.active::before {
content: '● ';
}
/* Result */
.result {
text-align: center;
}
.result-phone {
width: 200px;
height: 430px;
margin: 0 auto 30px;
background: #000;
border-radius: 36px;
padding: 12px;
box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.result-phone img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 24px;
}
.result-actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 24px;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 28px;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
border: none;
text-decoration: none;
transition: all 0.2s;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
background: var(--bg-card);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--bg-hover);
border-color: var(--primary);
}
.result-info {
color: var(--text-muted);
font-size: 0.95rem;
line-height: 1.8;
}
.result-info strong {
color: var(--text);
}
/* Error */
.error {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--error);
color: #fca5a5;
padding: 16px;
border-radius: 12px;
margin-top: 20px;
}
/* Footer */
footer {
margin-top: 60px;
text-align: center;
color: var(--text-muted);
font-size: 0.85rem;
}
/* Utilities */
.hidden {
display: none !important;
}
/* Mobile */
@media (max-width: 600px) {
.container {
padding: 20px 16px;
}
h1 {
font-size: 1.5rem;
}
.upload-zone {
padding: 40px 20px;
}
.preview-container {
grid-template-columns: 1fr;
}
.phone-frame {
transform: scale(0.8);
}
.result-actions {
flex-direction: column;
}
.btn {
width: 100%;
justify-content: center;
}
}