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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.header p {
    font-size: 15px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 24px;
}

.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #667eea;
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 15px;
    color: #95a5a6;
}

.link {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    animation: fadeIn 0.4s ease;
    margin: 16px 0;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 12px;
}

.check-icon {
    animation: pop 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.option label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.option select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-container {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2c3e50;
}

.progress-bar {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.result {
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    margin: 20px 0;
}

#status {
    margin-bottom: 16px;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #219653;
    transform: translateY(-2px);
}

.btn-download::before {
    content: "Download";
    font-size: 18px;
}

.btn-secondary {
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.footer-note {
    text-align: center;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .card { padding: 24px; }
    .header h1 { font-size: 22px; }
    .options { flex-direction: column; align-items: center; }
    .option { width: 100%; }
}
/* Top Button Menu – NO BACKGROUND, clean & minimal */
.footer-links {

    
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem 1rem 1rem;
    position: steak;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* ללא background – נשאר שקוף */
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #667eea;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.footer-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

/* Mobile */
@media (max-width: 768px) {
    body {
        align-items: flex-start !important;
    }
}
