/* assets/css/style.css - Modernes dunkles Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.8;
    color: #cbd5e1;
}

.converter-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.upload-area {
    border: 3px dashed #3b82f6;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(30, 41, 59, 0.1));
}

.upload-area:hover {
    border-color: #60a5fa;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(30, 41, 59, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.upload-area.dragover {
    border-color: #10b981;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(30, 41, 59, 0.2));
}

.upload-icon {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.4rem;
    color: #f1f5f9;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-hint {
    color: #94a3b8;
    font-size: 1rem;
}

.file-input {
    display: none;
}

.format-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.format-group {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.format-group:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.format-title {
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.format-btn {
    background: rgba(51, 65, 85, 0.8);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
}

.format-btn:hover {
    border-color: #3b82f6;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.format-btn.selected {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.file-list {
    margin-bottom: 30px;
}

.file-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.file-icon {
    font-size: 2.5rem;
    color: #3b82f6;
}

.file-details h4 {
    color: #f1f5f9;
    margin-bottom: 6px;
    font-weight: 600;
}

.file-details p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.file-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.convert-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Container */
.progress-container {
    margin: 25px 0;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    background: rgba(15, 23, 42, 0.6);
    padding: 0 12px;
    min-width: 90px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(71, 85, 105, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid rgba(71, 85, 105, 0.5);
}

.step.active .step-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #60a5fa;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #34d399;
}

.step-text {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.step-status {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.step.active .step-status {
    color: #60a5fa;
    font-weight: 600;
}

.step.completed .step-status {
    color: #34d399;
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(59, 130, 246, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
}

.progress-bar-container {
    margin: 25px 0;
}

.progress-bar {
    background: rgba(71, 85, 105, 0.3);
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    height: 100%;
    width: 0%;
    max-width: 100%; /* Prevent overflow */
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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%
    );
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 10;
}

.progress-details {
    text-align: center;
    color: #cbd5e1;
    font-weight: 500;
    margin: 18px 0;
    min-height: 22px;
    font-size: 1rem;
}

.estimated-time {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    font-style: italic;
}

.status-indicator {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-converting {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.remove-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-1px);
}

.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-1px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    color: white;
    padding: 30px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    opacity: 0.9;
}

.feature h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
}

.feature p {
    opacity: 0.8;
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 500;
}

.success-message {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 500;
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .converter-card {
        padding: 24px;
    }
    
    .format-selector {
        grid-template-columns: 1fr;
    }
    
    .file-item {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1.2rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        min-width: 70px;
    }
}