body {
    background: #f4f4f4;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1300px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    background: #222;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.topo-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.parametros-tabela {
    border-collapse: collapse;
    min-width: 420px;
    background: #222;
    color: #fff;
    font-size: 1.05em;
}
.parametros-tabela td {
    border: 1px solid #444;
    padding: 8px 14px;
    background: #222;
    color: #fff;
}
.parametros-tabela tr td:first-child {
    font-weight: bold;
    width: 220px;
    color: #fff;
}
.parametros-tabela tr td:last-child {
    background: #fff;
    color: #222;
}
.parametros-tabela select, .parametros-tabela input[type="number"] {
    width: 90%;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #bbb;
    font-size: 1em;
}
.mapa-fake {
    min-width: 400px;
    max-width: 420px;
    background: #eee;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.veiculos-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 10px 0;
}
.veiculos-titulo {
    background: #222;
    color: #fff;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-align: center;
    padding: 8px 0;
}
.veiculos-tabela td {
    border: 1px solid #bbb;
    padding: 8px 10px;
    background: #f8f8f8;
    text-align: left;
    font-size: 1em;
}
.veiculos-tabela input[type="checkbox"] {
    margin-right: 6px;
}
button[type="submit"] {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin-bottom: 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
}
button[type="submit"]:hover {
    background: #444;
    transform: translateY(-1px);
}
.tabela-dados {
    overflow-x: auto;
    margin-top: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}
th {
    background: #222;
    color: #fff;
}
tr:nth-child(even) {
    background: #f9f9f9;
}
.resultado {
    background: #e0ffe0;
    border: 1px solid #b2ffb2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.erro {
    background: #ffe0e0;
    border: 1px solid #ffb2b2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #a00;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === ESTILOS DA BARRA DE PROGRESSO MELHORADA === */
.progress-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    animation: pulse 3s infinite;
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.progress-header h3 {
    color: #007bff;
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.progress-header p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1em;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(0,123,255,0.1);
    border-radius: 8px;
    font-weight: bold;
}

.progress-stats span {
    color: #007bff;
    font-size: 1.1em;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 25px;
    height: 35px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #007bff, #0056b3, #004494);
    height: 100%;
    width: 0%;
    border-radius: 25px;
    transition: width 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.progress-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 10;
}

.progress-text {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
    margin: 15px 0;
    min-height: 30px;
}

.progress-details {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0,123,255,0.05);
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: scale(1.02);
    box-shadow: 0 3px 8px rgba(33,150,243,0.2);
}

.progress-step.completed {
    background: #e8f5e8;
    border-color: #4caf50;
}

.step-icon {
    font-size: 1.2em;
    margin-right: 12px;
}

.step-text {
    flex: 1;
    text-align: left;
    color: #555;
    font-weight: 500;
}

.step-status {
    color: #888;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: bold;
}

.progress-step.active .step-status {
    color: #2196f3;
}

.progress-step.completed .step-status {
    color: #4caf50;
}

.progress-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cancel-button {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.progress-info {
    flex: 1;
    text-align: right;
}

.progress-info small {
    color: #666;
    font-style: italic;
}

/* === VALIDAÇÃO EM TEMPO REAL === */
.validation-feedback {
    margin: 15px 0;
    min-height: 20px;
}

.validation-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.validation-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

/* === ANIMAÇÕES === */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    }
    50% {
        box-shadow: 0 8px 35px rgba(0,123,255,0.25);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* === BOTÃO DESABILITADO === */
button[type="submit"]:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

button[type="submit"]:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .topo-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .parametros-tabela {
        min-width: 100%;
    }
    
    .mapa-fake {
        min-width: 100%;
        max-width: 100%;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .progress-step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* === CONTAINER DE BOTÕES === */
.buttons-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

.download-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #218838;
    transform: translateY(-1px);
}

.download-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.download-button:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Estilos para seção de upload */
.upload-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.upload-section h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.upload-container {
    position: relative;
}

.upload-container input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.upload-label:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.upload-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.upload-info {
    margin-top: 15px;
    color: #6c757d;
    font-style: italic;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.file-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.file-name {
    font-weight: bold;
    margin-right: 10px;
}

.file-size {
    color: #6c757d;
    font-size: 0.9em;
}

/* Estilos para mensagem de dados vazios */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.no-data-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-data-message h3 {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-data-message p {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.no-data-help {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.95em !important;
    color: #856404 !important;
}

/* Estilos para arquivo carregado */
.arquivo-carregado {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.arquivo-carregado h4 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.arquivo-carregado p {
    color: #155724;
    margin: 8px 0;
    font-size: 1.1em;
}

.carregar-novo-button {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.carregar-novo-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.limpar-dados-button {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.limpar-dados-button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.arquivo-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.processar-arquivo-button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.processar-arquivo-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Upload loading */
.upload-loading {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.upload-loading p {
    color: #1976d2;
    margin: 10px 0;
    font-size: 1.1em;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para status de upload */
.upload-status {
    color: #007bff;
    font-weight: bold;
    margin-left: 10px;
    font-size: 0.9em;
}

/* === BOTÕES SIMPLES SEM JAVASCRIPT === */
.upload-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.upload-button:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.calcular-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.calcular-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.download-button {
    background: linear-gradient(135deg, #6f42c1, #563d7c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: linear-gradient(135deg, #563d7c, #4c366d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.limpar-dados-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.limpar-dados-button:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.upload-form {
    text-align: center;
    margin: 20px 0;
}

.calcular-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.buttons-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* === MELHORIAS NO LAYOUT === */
.arquivo-carregado {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.arquivo-carregado h4 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 18px;
}

.arquivo-carregado p {
    color: #155724;
    margin: 5px 0;
    font-weight: 500;
}

.arquivo-buttons {
    margin-top: 15px;
}

.upload-container {
    background: white;
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #0056b3;
    background: #f8f9ff;
}

.upload-label {
    display: block;
    cursor: pointer;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upload-label:hover {
    background: #e6f3ff;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    display: block;
}

.upload-info {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

.upload-info small {
    display: block;
    margin: 5px 0;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
    }
    
    .calcular-button,
    .download-button {
        margin: 5px 0;
        width: 100%;
    }
    
    .arquivo-buttons {
        flex-direction: column;
    }
    
    .limpar-dados-button {
        margin: 5px 0;
        width: 100%;
    }
}

/* === ESTILOS DO PAINEL GERENCIAL === */
.painel-gerencial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,123,255,0.1);
}

.painel-gerencial h2 {
    text-align: center;
    color: #007bff;
    margin: 0 0 30px 0;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

/* Cards de Resumo Principal */
.cards-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-stat {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.card-stat.principal {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #0056b3;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.card-content h3 {
    font-size: 2.5em;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.card-content p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* Grid de Análises */
.analises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.analise-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.analise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.analise-card h3 {
    color: #007bff;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: bold;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Métricas */
.metricas-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metrica {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.metrica-label {
    font-weight: 500;
    color: #495057;
}

.metrica-valor {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

/* Extremos */
.extremos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.extremo-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #28a745;
}

.extremo-item h4 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 1.1em;
}

.extremo-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.extremo-detalhes span {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #e9ecef;
}

.rota-numero {
    background: #007bff !important;
    color: white !important;
}

.rota-distancia {
    background: #28a745 !important;
    color: white !important;
}

.rota-entregas {
    background: #ffc107 !important;
    color: #495057 !important;
}

.rota-veiculo {
    background: #6c757d !important;
    color: white !important;
}

/* Categorias Chart */
.categorias-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.categoria-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.categoria-barra {
    flex: 1;
    height: 25px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.barra-preenchimento {
    height: 100%;
    transition: width 0.8s ease;
    border-radius: 12px;
    position: relative;
}

.categoria-info {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    text-align: center;
}

.categoria-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9em;
}

.categoria-valor {
    font-weight: bold;
    color: #007bff;
    font-size: 1.2em;
}

/* Veículos */
.veiculos-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.veiculo-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.veiculo-nome {
    font-weight: 500;
    color: #495057;
}

.veiculo-barra {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.veiculo-count {
    font-weight: bold;
    color: #007bff;
    min-width: 70px;
    text-align: right;
}

/* Top Rotas */
.top-rotas-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-rota-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.top-rota-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.rota-rank {
    background: #007bff;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.rota-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rota-numero {
    font-weight: bold;
    color: #495057;
    font-size: 1.1em;
}

.rota-stats {
    color: #6c757d;
    font-size: 0.9em;
}

.rota-veiculo-small {
    color: #007bff;
    font-size: 0.8em;
    font-weight: 500;
}

/* Responsividade do Painel */
@media (max-width: 768px) {
    .painel-gerencial {
        padding: 20px;
        margin: 20px 0;
    }
    
    .cards-resumo {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analises-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-stat {
        padding: 20px;
    }
    
    .analise-card {
        padding: 20px;
    }
    
    .extremo-detalhes {
        grid-template-columns: 1fr;
    }
    
    .veiculo-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .categoria-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .categoria-barra {
        width: 100%;
    }
}

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

.painel-gerencial {
    animation: slideInUp 0.6s ease-out;
}

.card-stat {
    animation: slideInUp 0.8s ease-out;
}

.analise-card {
    animation: slideInUp 1s ease-out;
}

/* Melhorias do Layout Geral */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.parametros-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.parametros-section h3 {
    color: #007bff;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.parametros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.parametro-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.parametro-item label {
    display: block;
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.parametro-item input,
.parametro-item select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parametro-item input:focus,
.parametro-item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.parametro-item small {
    display: block;
    color: #6c757d;
    margin-top: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

.veiculos-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.veiculos-section h3 {
    color: #007bff;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.dados-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.dados-info p {
    margin: 5px 0;
    color: #1565c0;
    font-weight: 500;
}

.tabela-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.dados-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.dados-tabela th {
    background: #007bff;
    color: white;
    padding: 15px 12px;
    font-weight: bold;
    text-align: left;
    border-bottom: none;
}

.dados-tabela td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.dados-tabela tr:hover {
    background: #f8f9fa;
}

.tabela-info {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.sem-dados {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== ESTILOS PARA BOTÕES OTIMIZADOS PARA VPS ===== */

.download-button-rapido {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-button-rapido:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.download-button-rapido:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.download-info {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-info h4 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.download-info ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.download-info li {
    margin: 8px 0;
    line-height: 1.5;
    color: #6c757d;
}

.download-info li strong {
    color: #495057;
}

.vps-status {
    animation: slideInFromLeft 0.5s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade para botões VPS */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-button-rapido,
    .dashboard-button {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .download-info {
        padding: 15px;
    }
    
    .download-info ul {
        padding-left: 15px;
    }
} 