/**
 * Estilos para Upload de Documentos
 * Integrado com Nextcloud
 */

/* ==================== Área de Upload ==================== */
.cadastro-upload-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border: 2px dashed #6c63ff;
}

.upload-title {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.upload-desc {
    text-align: center;
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==================== Documentos Necessários ==================== */
.documentos-necessarios {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.documentos-necessarios h5 {
    color: #6c63ff;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.documentos-necessarios h5:first-child {
    margin-top: 0;
}

.documentos-necessarios ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.documentos-necessarios li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #4a5568;
}

.documentos-necessarios li:before {
    content: "📄";
    position: absolute;
    left: 0;
}

.documentos-necessarios strong {
    color: #2d3748;
}

/* ==================== Formulário de Upload ==================== */
.upload-area {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upload-form-group {
    margin-bottom: 20px;
}

.upload-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.cadastro-input-file {
    width: 100%;
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cadastro-input-file:hover {
    border-color: #6c63ff;
    background: #edf2f7;
}

.file-help {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 12px;
}

.cadastro-btn-upload {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cadastro-btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cadastro-btn-upload:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==================== Feedback ==================== */
.upload-feedback {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.upload-feedback.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.upload-feedback.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* ==================== Lista de Arquivos Enviados ==================== */
.arquivos-enviados {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.arquivos-enviados h5 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 10px;
}

.lista-arquivos-enviados {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-arquivos-enviados li {
    padding: 10px;
    background: #f7fafc;
    border-left: 4px solid #48bb78;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3748;
}

.lista-arquivos-enviados:empty:before {
    content: "Nenhum arquivo enviado ainda.";
    display: block;
    padding: 10px;
    color: #a0aec0;
    font-style: italic;
    text-align: center;
}

/* ==================== Ações de Upload ==================== */
.upload-actions {
    margin-top: 20px;
    text-align: center;
}

.cadastro-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.cadastro-btn-secondary:hover {
    background: #cbd5e0;
}

.cadastro-btn-pular-upload {
    padding: 12px 24px;
    font-size: 14px;
}

/* ==================== Responsivo ==================== */
@media (max-width: 768px) {
    .cadastro-upload-section {
        padding: 20px 15px;
    }
    
    .documentos-necessarios {
        padding: 15px;
    }
    
    .upload-title {
        font-size: 18px;
    }
    
    .documentos-necessarios li {
        font-size: 13px;
    }
}

/* ==================== Animações ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cadastro-upload-section {
    animation: fadeInUp 0.5s ease;
}

/* ==================== Ícone de Loading no Botão ==================== */
.btn-loading {
    display: inline-block;
}

.btn-loading:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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