:root {
    --b3-blue: #004aad;
    --b3-yellow: #f2c94c;
    --bg-light: #f4f7f6;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Fixa */
.sidebar {
    width: 260px;
    background-color: var(--b3-blue);
    color: var(--white);
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--b3-yellow);
    text-align: center;
}

.sidebar nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--b3-yellow);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}

h2 { margin-bottom: 25px; color: var(--b3-blue); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-title { font-size: 1.1rem; margin-bottom: 15px; color: var(--text-gray); font-weight: bold; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
table th { color: var(--text-gray); font-weight: 600; }

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary { background-color: var(--b3-blue); color: white; }
.btn-primary:hover { opacity: 0.9; }

/* Barra de Notícias / Ticker Tape */
.news-ticker {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    height: 46px;
    overflow: hidden;
}

/* Ajuste fino para a main-content não ficar colada */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 40px 40px 40px; /* Reduzi o padding superior */
}