:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 20px;
    padding-bottom: 50px;
}

.navbar-brand img {
    max-height: 40px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.table td {
    vertical-align: middle;
}

.progress {
    height: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-bar {
    background-color: var(--success-color);
}

.meta-indicators {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.meta-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.meta-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

.neutral {
    color: var(--warning-color);
}

.month-column {
    text-align: center;
    font-weight: bold;
    min-width: 100px;
}

.total-column {
    background-color: #f8f9fa;
    font-weight: bold;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
}

@media (max-width: 768px) {
    .meta-value {
        font-size: 1.8rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 80px;
    margin-bottom: 10px;
}

/* ... código existente ... */

/* MENU MELHORADO */
.navbar {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.btn-menu {
    padding: 12px 20px !important;
    margin: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

.btn-menu:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-menu.active {
    background-color: #e74c3c !important;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.btn-menu i {
    font-size: 1.2rem;
}

/* Para telas menores, ajustar menu */
@media (max-width: 992px) {
    .btn-menu {
        min-width: auto;
        margin: 2px;
        padding: 10px 15px !important;
    }
    
    .navbar-nav {
        gap: 5px;
        padding: 10px 0;
    }
}

/* Logo Container melhorado */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.logo-container img {
    max-height: 100px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-container p {
    color: #7f8c8d;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Cards melhorados */
.card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

/* Botões melhorados */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
}

/* Tabelas melhoradas */
.table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table td {
    padding: 12px 15px;
    border-color: #eee;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Progress bars melhoradas */
.progress {
    border-radius: 10px;
    background-color: #ecf0f1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Meta indicators melhorado */
.meta-indicators {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.meta-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.meta-label {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Alertas melhorados */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Formulários melhorados */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    transform: translateY(-1px);
}

/* Badges melhorados */
.badge {
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
}

/* Controle de Visibilidade */
.controle-visibilidade {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-visibilidade {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.btn-visibilidade:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-visibilidade.oculto {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-visibilidade.oculto:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

/* Badge para contador */
.badge-visibilidade {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nomes ocultos */
.nome-oculto {
    background: linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
    color: #7d6608;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* Tooltip para o botão */
.tooltip-visibilidade {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-visibilidade:hover + .tooltip-visibilidade {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .controle-visibilidade {
        top: 10px;
        right: 10px;
    }
    
    .btn-visibilidade {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Banner de Status de Visibilidade */
.banner-visibilidade {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-visibilidade .btn-sm {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
}

.banner-visibilidade .btn-sm:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   CONTROLE DE VISIBILIDADE - NOVA POSIÇÃO
   ============================================ */

/* Remove o posicionamento fixo anterior */
.controle-visibilidade {
    position: static; /* Mudar de fixed para static */
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.btn-visibilidade {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px; /* Mudado de 50% para 8px */
    width: auto; /* Mudado de 60px para auto */
    height: auto; /* Mudado de 60px para auto */
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn-visibilidade:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    color: white;
}

.btn-visibilidade.oculto {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-visibilidade.oculto:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

/* Badge para contador */
.badge-visibilidade {
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Remove tooltip antigo */
.tooltip-visibilidade {
    display: none;
}

/* ============================================
   LOGO CONTAINER ATUALIZADO
   ============================================ */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.logo-container h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Linha da meta melhorada */
.linha-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.linha-meta p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Separador visual */
.separador {
    color: #bdc3c7;
    font-weight: 300;
}

/* Status de visibilidade na linha da meta */
.status-visibilidade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.status-visibilidade.oculto {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .linha-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .separador {
        display: none;
    }
    
    .controle-visibilidade {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .btn-visibilidade {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Remove o banner antigo se existir */
.banner-visibilidade {
    display: none;
}