/* Animation Classes for PDF Tools */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Gentle Bounce Animation */
@keyframes bounceGentle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce-gentle {
    animation: bounceGentle 2s infinite;
}

/* File Item Styles */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #64748b;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.file-size {
    font-size: 0.875rem;
    color: #64748b;
}

.remove-file {
    width: 32px;
    height: 32px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

/* Upload Zone Styles */
.upload-zone.dragover {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.05) !important;
    transform: scale(1.02);
}

/* Result Styles */
.result-success {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.result-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: #5558e3;
    transform: translateY(-1px);
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-reset {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #6366f1;
    color: white;
}

/* Progress Styles */
.progress-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-label {
    font-weight: 600;
    color: #1e293b;
}

.progress-pct {
    font-weight: 700;
    color: #6366f1;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal.error .modal-icon {
    background: #ef4444;
    color: white;
}

.modal.success .modal-icon {
    background: #10b981;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.modal-message {
    color: #64748b;
    margin-bottom: 24px;
}

.modal-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: #5558e3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-item {
        padding: 10px 12px;
    }
    
    .file-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .download-links {
        flex-direction: column;
    }
    
    .btn-download {
        margin: 0 0 8px 0;
    }
}
