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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Estilos para el área de carga */
.upload-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

#drop-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#drop-area.highlight {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    cursor: pointer;
    font-size: 1.1rem;
    color: #7f8c8d;
}

.file-label i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.file-list {
    margin-top: 1.5rem;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    flex-grow: 1;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
}

/* Botones */
.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.primary {
    background-color: #3498db;
    color: white;
}

.primary:hover:not(:disabled) {
    background-color: #2980b9;
}

.secondary {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.secondary:hover:not(:disabled) {
    background-color: #bdc3c7;
}

/* Resultados */
.result-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.result-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
}

.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.download-container {
    text-align: center;
}

/* Spinner de carga */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

/* Utilidades */
.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .upload-container, .result-container {
        padding: 1.5rem;
    }
    
    #drop-area {
        padding: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
