body {
    background: #f8fafc;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #0057b7, #00a0dc);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.5px;
}

/* Container principal */
main {
    padding: 60px 0;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: #fff;
    border-bottom: none;
    text-align: center;
    padding: 2rem 1rem 0 1rem;
}

.card-title {
    font-weight: 600;
    color: #0a4275;
}

.btn-primary {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    opacity: 0.9;
}

.processing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    text-align: center;
}

.processing-icon {
    font-size: 3rem;
    color: #007bff;
    display: inline-block;
    animation: spin 5.6s linear infinite;
}

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

.count-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0a4275;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.actions a {
    display: block;
    margin: 10px 0;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px;
    transition: 0.2s;
}

.actions a.download {
    background: linear-gradient(90deg, #00b09b, #96c93d);
    color: #fff;
}

.actions a.download:hover {
    opacity: 0.9;
}

.actions a.new {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #0a4275;
}

.actions a.new:hover {
    background: #e9ecef;
}

#progressBar {
    transition: width 0.8s ease;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #777;
    font-size: 0.9rem;
}