:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --dark: #1a1d28;
    --dark-light: #252a38;
    --light: #f8f9fa;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --gray: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f1720, #1e293b);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 14px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    padding: 1rem 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIgZD0iTTI1IDI1aDUwdjUwaC01MHoiLz48L3N2Zz4=');
    opacity: 0.1;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    margin: 1rem auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(66, 186, 150, .1);
    color: #42ba96;
    border-radius: 50%;
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    padding: 1rem 0;
}

.card {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 0.8rem;
}

.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.file-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.file-input-label:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.file-input-label.valid {
    border-color: var(--success);
    background: rgba(6, 214, 160, 0.05);
}

.file-input-label.invalid {
    border-color: var(--danger);
    background: rgba(239, 71, 111, 0.05);
}

.file-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.file-icon {
    color: var(--primary);
    font-size: 0.9rem;
}

.text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.7rem 1rem;
    color: white;
    font-size: 0.85rem;
    transition: var(--transition);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.text-input.valid {
    border-color: var(--success);
}

.text-input.invalid {
    border-color: var(--danger);
}

.file-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
    line-height: 1.3;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Password Suggestions */
.password-suggestions {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.password-suggestion {
    background: rgba(67, 97, 238, 0.2);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
}

.password-suggestion:hover {
    background: rgba(67, 97, 238, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn i {
    font-size: 0.95rem;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #6510a5;
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Enhanced Step 2: Upload Progress */
.upload-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 0.5rem;
    flex: 1;
    max-width: 25%;
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.7rem;
}

.step-item.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.step-item.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
}

.step-text {
    transition: var(--transition);
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

.step-item.completed .step-text {
    color: var(--success);
}

.step-connector {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.step-item:last-child .step-connector {
    display: none;
}

.step-item.completed .step-connector {
    background: var(--success);
}

/* Step 3: Processing */
.processing-container {
    text-align: center;
    padding: 1.5rem;
}

.spinner {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-text {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.log-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    margin-top: 0.8rem;
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Result */
.result-container {
    text-align: center;
    padding: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 0.8rem;
}

.result-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: white;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.qr-container, .link-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 1.2rem;
}

.qr-title, .link-title {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.qr-code {
    display: flex;
    justify-content: center;
}

.download-link {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
    transition: var(--transition);
    font-size: 0.85rem;
}

.download-link:hover {
    background: rgba(67, 97, 238, 0.1);
}

.share-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.share-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.share-url {
    display: flex;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.share-url-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.6rem 0.8rem;
    color: white;
    font-size: 0.8rem;
}

.copy-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #6510a5;
}

.copy-success {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
}

.copy-success.show {
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

/* Animations */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.4s;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

.slide-enter-active, .slide-leave-active {
    transition: transform 0.4s, opacity 0.4s;
}

.slide-enter, .slide-leave-to {
    transform: translateY(15px);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .card-body {
        padding: 1.2rem;
    }
    
    .card-header {
        padding: 1rem 1.2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 0rem;
    }
    
    .share-url {
        flex-direction: column;
    }
    
    .qr-container, .link-container {
        padding: 1rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .result-title {
        font-size: 1.2rem;
    }
    
    /* Features responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.7rem;
    }
    
    /* Upload steps responsive - FIXED */
    .upload-steps {
        font-size: 0.7rem;
        padding: 0 5px;
    }
    
    .step-text {
        font-size: 0.7rem;
    }
    
    .step-icon {
        width: 22px;
        height: 22px;
    }
    
    .step-connector {
        top: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .main-content {
        padding: 0.8rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .result-container {
        padding: 1rem;
    }
    
    .features {
        padding: 0.6rem 0.8rem;
        margin: 0.8rem auto;
    }
    
    /* Upload steps responsive - FIXED */
    .upload-steps {
        font-size: 0.65rem;
    }
    
    .step-text {
        font-size: 0.65rem;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
    }
    
    .step-connector {
        top: 10px;
    }
}
