:root {
    --clientes: #4E6BFF;
    --estatisticas: #FF6B6B;
    --operadores: #FFA500;
    --produtos: #6BCB77;
    --caixa: #9C51B6;
    --configuracoes: #4DB8D6;
    --verde: #4CAF50;
    --vermelho: #F44336;
    --homens: #4285F4;
    --mulheres: #FF4081;
    --casais: #AB47BC;
    --free: #66BB6A;
    --servicos: #FF7043;
    --limpezas: #26A69A;
	--eventario: #C8CD00;
}

/* Estilos base */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #2b2d42;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Títulos das seções */
h2 {
    color: #2b2d42;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    display: inline-block;
}

/* Cores específicas para cada título */
.clientes-title { border-bottom-color: var(--clientes); }
.estatisticas-title { border-bottom-color: var(--estatisticas); }
.operadores-title { border-bottom-color: var(--operadores); }
.produtos-title { border-bottom-color: var(--produtos); }
.caixa-title { border-bottom-color: var(--caixa); }
.configuracoes-title { border-bottom-color: var(--configuracoes); }
.servicos-title { border-bottom-color: var(--servicos); }
.limpeza-title { border-bottom-color: var(--limpezas); }
.eventario-title { border-bottom-color: var(--eventario); }

/* Estatísticas */
.stats-container {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2b2d42;
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 28px;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.homens-card i { background-color: var(--homens); }
.mulheres-card i { background-color: var(--mulheres); }
.casais-card i { background-color: var(--casais); }
.free-card i { background-color: var(--free); }
.cross-card i { background-color: var(--servicos); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
}

.stat-value {
    font-weight: 700;
    font-size: 20px;
    color: #2b2d42;
}

/* Botões principais */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.menu-button {
    position: relative; /* Essencial para o posicionamento dos badges */
    border: none;
    border-radius: 16px;
    color: white;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    width: 160px;
    height: 160px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

.menu-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
}

.menu-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.menu-button:active {
    transform: translateY(0);
}

.menu-button i {
    font-size: 42px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Cores dos botões */
.clientes-button { background-color: var(--clientes); }
.estatisticas-button { background-color: var(--estatisticas); }
.operadores-button { background-color: var(--operadores); }
.produtos-button { background-color: var(--produtos); }
.caixa-button { background-color: var(--caixa); }
.configuracoes-button { background-color: var(--configuracoes); }
.servicos-button { background-color: var(--servicos); }
.limpeza-button { background-color: var(--limpezas); }
.eventario-button { background-color: var(--eventario); }

/* Badges - Ajuste principal */
.button-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--vermelho);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid white;
    z-index: 1;
}

/* Modal */
.modal-fullscreen {
    padding: 0 !important;
}

.modal-fullscreen .modal-dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
    background-color: #f8f9fa;
}

.modal-header {
    background-color: var(--clientes);
    color: white;
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 10px;
}

.number-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.number-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.number-btn:active {
    transform: scale(0.98);
}

.btn-green {
    background-color: var(--verde);
}

.btn-red {
    background-color: var(--vermelho);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--clientes);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Rácio */
.racio-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.racio-valor {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4361ee;
    line-height: 1;
    margin: 0.5rem 0;
}

.racio-detalhes {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsividade */
@media (max-width: 992px) {
    .menu-button {
        width: 140px;
        height: 140px;
        font-size: 16px;
    }
    
    .menu-button i {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .button-container {
        gap: 15px;
    }
    
    .menu-button {
        width: 120px;
        height: 120px;
        font-size: 15px;
        padding: 20px 10px;
    }
    
    .menu-button i {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
        padding-left: 0;
    }
    
    h2::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card i {
        font-size: 24px;
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .button-badge {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Header Full Width - Ajustes específicos */
.header-fullwidth {
    width: 100%;
    background-color: var(--clientes); /* Usando sua variável existente */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-fullwidth .container-fluid {
    padding: 15px 20px; /* Mantendo o padding consistente com seu body */
    max-width: 1200px; /* Alinhado com o max-width do seu body */
    margin: 0 auto; /* Centraliza o conteúdo */
}

.header-fullwidth h4 {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.header-fullwidth small {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    line-height: 1.4;
}

/* Ajuste para o botão de logout */
.header-fullwidth .btn-light {
    background-color: white;
    color: var(--clientes);
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-fullwidth .btn-light:hover {
    background-color: #f8f9fa;
}

/* Hora atual no header */
#hora-atual {
    font-weight: 500;
    color: white;
}

/* Container principal ajustado */
.main-container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Responsividade para o header */
@media (max-width: 768px) {
    .header-fullwidth .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-fullwidth .btn-light {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .header-fullwidth h4 {
        font-size: 1.1rem;
    }
    
    .header-fullwidth small {
        font-size: 0.85rem;
    }
}

/* Estilo para o botão Sair */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: white;
}

/* Espaçamento entre botões de navegação */
.me-2 {
    margin-right: 0.5rem !important;
}

/* Alinhamento vertical dos botões */
.align-items-center {
    align-items: center !important;
}

/* Estilos para a tabela de estatísticas de entradas por hora */

/* Cores para os números das tipologias */
table.table.table-bordered.table-striped .text-homem {
    color: #0000FF !important; /* Azul para Homens */
    font-size: 1.2em; /* Fonte maior */
    font-weight: bold; /* Negrito */
}
table.table.table-bordered.table-striped .text-mulher {
    color: #FF69B4 !important; /* Rosa para Mulheres */
    font-size: 1.2em;
    font-weight: bold;
}
table.table.table-bordered.table-striped .text-casal {
    color: #FFA500 !important; /* Laranja para Casais */
    font-size: 1.2em;
    font-weight: bold;
}
table.table.table-bordered.table-striped .text-cross {
    color: #800080 !important; /* Roxo para Cross */
    font-size: 1.2em;
    font-weight: bold;
}
table.table.table-bordered.table-striped .text-hh {
    color: #008000 !important; /* Verde para H+H */
    font-size: 1.2em;
    font-weight: bold;
}
table.table.table-bordered.table-striped .text-zero {
    color: #000000 !important; /* Preto para zero */
    font-size: 1em; /* Tamanho normal para zero */
    font-weight: normal; /* Sem negrito para zero */
}

/* Estilo para a coluna Total */
table.table.table-bordered.table-striped .total-cell {
    background-color: #D3D3D3 !important; /* Cinza claro */
    color: #008000 !important; /* Verde */
    font-size: 1.2em; /* Fonte maior */
    font-weight: bold; /* Negrito */
}

/* Estilo para os intervalos com mais registros */
table.table.table-bordered.table-striped .text-top-intervalo {
    color: #FF0000 !important; /* Vermelho */
    font-weight: bold; /* Negrito */
}

/* Alinhamento das células */
table.table.table-bordered.table-striped td {
    text-align: center; /* Centralizar resultados por padrão */
    vertical-align: middle;
}
table.table.table-bordered.table-striped td:first-child {
    text-align: left; /* Alinhar Intervalo de Horas à esquerda */
}
