/* Configurações Globais */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #333;
}

/* Layout Estrutural */
nav#menu-lateral {
    width: 200px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    padding: 20px 0;
    z-index: 1000;
}

main#conteudo-principal {
    margin-left: 200px;
    flex-grow: 1;
    padding: 40px;
    width: calc(100% - 200px);
}

/* Menu e Logo */
.logo-container {
    text-align: center;
    padding: 0 10px 20px 10px;
    border-bottom: 1px solid #34495e;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

ul.nav-links {
    list-style: none;
    margin-top: 20px;
}

ul.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

ul.nav-links li a:hover {
    background-color: #34495e;
    color: #ecf0f1;
    padding-left: 30px;
}

/* Componentes de Conteúdo (Cards) */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Estilos da Tabela de Gradientes */
.route-title {
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    font-size: 1.1em;
    border-bottom: 3px solid #ff9800;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

th {
    background-color: #444;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85em;
}

.text-left { text-align: left; }

/* Cores das Faixas */
tr.subida { background-color: #fff8f0; }
tr.descida { background-color: #f0f7ff; }
tr:nth-child(even):not(.subida):not(.descida) { background-color: #f9f9f9; }

.total-row {
    background-color: #eee !important;
    font-weight: bold;
}

/* Formulários e Botões */
.upload-section {
    border: 2px dashed #bbb;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fafafa;
}

button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background: #34495e;
}