/* Estilos Gerais */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Upload Zone */
.upload-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
}

.upload-zone:hover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.upload-zone.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

/* Lista de Arquivos */
.file-list {
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item .file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.file-item .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.file-item .file-size {
    color: #6c757d;
    font-size: 0.875rem;
    white-space: nowrap;
}

.file-item .btn-remove {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Cartões */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
}

/* Barra de Progresso */
#progressContainer .progress {
    border-radius: 0.5rem;
}

#progressContainer .progress-bar {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Tabela de Resultados */
.table-responsive {
    border-radius: 0.5rem;
}

.table th {
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Animações */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.processing {
    animation: pulse 1.5s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .file-item .file-name {
        max-width: 150px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

/* Toast customizado */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* Código inline */
code {
    background-color: #e9ecef;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Botões desabilitados durante processamento */
.btn:disabled {
    cursor: not-allowed;
}

/* Template info */
#templateInfo .file-item {
    background-color: #d1e7dd;
}

/* Scrollbar customizado */
.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
