/* Estilos gerais */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-logo {
    font-size: 3rem;
    color: #667eea;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Stats cards */
.stats-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card.primary {
    border-left-color: #0d6efd;
}

.stats-card.success {
    border-left-color: #198754;
}

.stats-card.warning {
    border-left-color: #ffc107;
}

.stats-card.info {
    border-left-color: #0dcaf0;
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Upload area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fafafa;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.upload-area.has-file {
    border-color: #198754;
    background: #f0fff4;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-area.has-file .upload-icon {
    color: #198754;
}

/* File info */
.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.file-info .bi {
    font-size: 1.5rem;
}

.file-info .file-name {
    font-weight: 500;
    word-break: break-all;
}

.file-info .file-size {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Preview table */
.preview-table {
    font-size: 0.875rem;
}

.preview-table th {
    background: #f8f9fa;
    white-space: nowrap;
}

.preview-table td {
    vertical-align: middle;
}

.preview-table .badge {
    font-weight: 500;
}

/* Progress */
.progress-container {
    display: none;
}

.progress-container.show {
    display: block;
}

/* History */
.history-item {
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: #f8f9fa;
}

/* Status badges */
.badge-completed {
    background-color: #198754;
}

.badge-failed {
    background-color: #dc3545;
}

.badge-processing {
    background-color: #ffc107;
    color: #000;
}

.badge-pending {
    background-color: #6c757d;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .stats-card .stats-icon {
        display: none;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Navbar customization */
.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* Empty state */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

.empty-state .bi {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
