/* Estilo para a página de login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.login-box {
    background-color: #1e2c46;
    border-radius: 15px;
    padding: 40px 60px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-header img {
    height: 70px;
    margin-right: 10px;
}

.login-header h2 {
    color: white;
    text-align: center;
    margin-bottom: 0px;
}

.login-input {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    color: black;
}

.login-input:focus {
    background-color: white;
    color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-input-password {
    margin-bottom: 20px;
}

.login-button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: #00bb4c;
}


.login-output {
    color: red;
    margin-top: 20px;
    text-align: center;
}

/* Define o body das paginas*/
.body {
    display: flex;
    height: 100vh;
    background-color: #f8f8f8;
}

/* Estilos para a página home */
.home-container {
    flex-grow: 1; /* O container de conteúdo ocupa o restante do espaço */
    padding: 2rem 1rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}


/* Estilos para o sidebar */
.sidebar {
    width: 5rem; /* Largura fixa para a barra lateral */
    padding: 2rem 1rem;
    background-color: #011e41;
    transition: width 0.1s ease-in-out;
}

.sidebar:hover {
    width: 16rem;
}

.sidebar .nav-link {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar .nav-link i {
    width: 1rem;
    color: white;
}

.sidebar .nav-link span {
    visibility: hidden;
    opacity: 1;
    transition: opacity 0.1s ease-in-out;
}

.sidebar:hover .nav-link span {
    visibility: visible;
    opacity: 1;
    color: white;
}

.sidebar-header {
    display: flex;
    justify-content: left;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-header img {
    margin-left: 13px;
    height: 25px;
}

.sidebar:hover #sidebar-logo-open {
    display: block;
}

.sidebar:hover #sidebar-logo-closed {
    display: none;
}

.sidebar #sidebar-logo-open {
    display: none;
}

.sidebar #sidebar-logo-closed {
    display: block;
}

.sidebar-header h2 {
    opacity: 0;
    margin-left: 1rem;
    margin-bottom: 0;
    transition: opacity 0.1s ease-in-out;
}

.sidebar:hover .sidebar-header h2 {
    opacity: 1;
}

.sidebar hr {
    color: #7a8a9c;
    opacity: 1;
}

/* .sidebar .collapse .nav-link {
    padding-left: 2rem; 
} */

.sidebar .subitem i {
    margin-left: 1rem;
    width: 1rem;
    color: white;
}

.sidebar .subitem span {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.sidebar:hover .subitem span {
    visibility: visible;
    opacity: 1;
    color: white;
}

/* Estilo para os cards */
.card {
    width: 100%;
    height: 200px;
    margin: 10px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
}


.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card i {
    font-size: 36px;         /* Ícone maior */
    color: #1a2b4c;           /* Azul escuro */
    margin-bottom: 12px;
}

.card h5 {
    margin: 0;
    font-weight: bold;
    color: #1a2b4c;           /* Azul escuro */
}



/* Estilo para paginas */
.header-pages{
    text-align: center;
}

.add-buttons{
    background-color: limegreen;
    margin-bottom: 10px;
}

.pages-container{
    width: 90%;
    background-color: #ffffff;
    padding: 5%;
    height: fit-content;
}

.delete-buttons{
    color: #fff;
    background-color: red;
    box-shadow: none;
}

.delete-buttons:hover{
    color: #fff;
    background-color: red;
}

.delete-buttons:focus{
    color: #fff;
    background-color: red;
    border: none;
}

.search-buttons{
    color: white;
    background-color: #1c2b45;
    box-shadow: none;
}

.search-buttons:hover{
    color: white;
    background-color: #1c2b45;
}

.search-buttons:focus{
    color: white;
    background-color: #1c2b45;
    border: none;
}

.text-inputs{
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1%;
    height: 50px;
}

/* Estilo para o popover de filtro */
.filter-buttons{
    background-color: transparent;
    color: black;
    padding: 5px;
    height: 30px;
    width: 30px;
    font-size: 12px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.filter-buttons:hover{
    color: black;
    background-color: transparent;
}

.filter-buttons:focus{
    color: black;
    background-color: transparent;
    border: none;
}

.clear-filter-buttons{
    background-color: transparent;
    color: black;
    padding: 5px;
    font-size: 12px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.clear-filter-buttons:hover{
    color: black;
    background-color: transparent;
}

.clear-filter-buttons:focus{
    color: black;
    background-color: transparent;
    border: none;
}

.filter-datepicker-container .DateInput_input, 
.filter-datepicker-container .DateInput_input_1 {
    color: inherit !important;
    text-align: center;
    font-size: inherit ! important;
    height: 25px !important;
    width: 85px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}

.filter-datepicker-container .DateInput{
    width: 80px !important;
}

.filter-datepicker-container .DateRangePickerInput_clearDates,
.filter-datepicker-container .DateRangePickerInput_clearDates_1,
.filter-datepicker-container .DateRangePickerInput_clearDates_default,
.filter-datepicker-container .DateRangePickerInput_clearDates_default_2
{
    width: 10px !important;
}

.filter-datepicker-container .DateRangePickerInput_clearDates:hover,
.filter-datepicker-container .DateRangePickerInput_clearDates_1:hover,
.filter-datepicker-container .DateRangePickerInput_clearDates_default:hover,
.filter-datepicker-container .DateRangePickerInput_clearDates_default_2:hover {
    background-color: transparent;
    cursor: pointer;
}



/* Estilo para o dashboard */

/* Estrutura principal */
.body-summary {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Evita scroll duplo */
}

.home-container-summary {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* Adiciona scroll vertical */
    max-height: calc(100vh - 40px); /* Altura máxima com scroll */
}

/* Cards de KPI */
.kpi-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permite quebra de linha */
}

.kpi-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 180px; /* Largura mínima */
    transition: transform 0.3s ease;
}

.kpi-title {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.kpi-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Seções */
.section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Layout de colunas */
.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Permite quebra de linha */
}

.half-width {
    flex: 1;
    min-width: 400px; /* Largura mínima antes de quebrar */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Botão de download */
.download-container {
    text-align: center;
    margin: 30px 0;
}

.download-button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #218838;
}

/* Ajustes de gráficos */
.graph {
    height: 400px;
}

/* Container principal */
.date-picker-container {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

/* Título */
.date-picker-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Inputs de data */
.DateInput_input {
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.DateInput_input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Container do date picker */
.DateRangePicker {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Seta entre os inputs */
.DateRangePicker_picker__directionLeft {
    z-index: 1000;
}

/* Calendário dropdown */
.CalendarDay__selected {
    background-color: #3498db;
    border: 1px solid #2980b9;
}

.CalendarDay__hovered_span:hover {
    background-color: #d6eaf8;
}

/* Botões de navegação */
.DayPickerNavigation_button {
    background: #f8f9fa;
    border: 1px solid #ced4da;
}