/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('style.css');
@import url('menu.css');

.fixedbar {
    margin-left: 45px;
}

.home{
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: auto;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
    padding: 25px;
    color: var(--tittle-color);
    max-width: 1200px;
    margin: 0 auto;
}
.home .text p{
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 15px 15px;
}

.section:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(247, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section {
    background-color: #fff;
    border-radius: 20px; 
    border-color: rgba(255, 255, 255, 0.231);      
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
    width: auto;
    height: auto;
}

/* Área principal centralizada */
.dashboard-shell {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.charts-grid,
.metric-cards.modern,
.seller-goals,
.seller-board {
    width: 100%;
}

/* Ajustes mobile */
@media (max-width: 768px) {
    .home {
        left: 0;
        width: 100%;
        padding: 16px 12px 120px;
    }

    .chart-card,
    .metric-card.modern,
    .seller-card {
        padding: 14px;
        border-radius: 16px;
    }
}

#obs {
    min-height: 80px;
    resize: vertical;
}

.headernav {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    position: fixed;
    margin-top: 50px;
    top: 0;
    z-index: 100;
    margin-left: -15px;
}
.headernav div {
    justify-items: left;
}

.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

.tooltip button {
    background: none;
    color: #fff;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
}

.tooltip button:hover {
    text-decoration: none;
    color: #34f87c;
}
#excluirBtn:hover{
    color: rgb(255, 128, 128);
}

/* Form scrollable container */
.form-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Loading indicator */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffa600;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
    margin-top: 400px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row hover effect */
#results-body tr:hover {
    background-color: var(--sideborder-color);
    cursor: pointer;
}


/* Alternando as cores das linhas */
#results-body tr:nth-child(odd) {
    background-color: #56565616; /* Cor de fundo para as linhas ímpares */
}

#results-body tr:nth-child(even) {
    background-color: #ffffff25; /* Cor de fundo para as linhas pares */
}
#results-body tr:last-child td:last-child {
    border-radius: 0 0 15px 0; /* Arredonda os cantos inferior direito e inferior esquerdo */
}
#results-body tr:last-child td:first-child {
    border-radius: 0 0 0 15px; /* Arredonda os cantos inferior direito e inferior esquerdo */
}

/* Estilos do Dashboard */
.dashboard-container {
    display: none;
    max-width: 200vh;
    margin: 20px auto;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    color: #b0b1b3;
    display: none;
    margin-top: 50px;
}

.dashboard-container h2 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--icon-color);
}

/* Filtros */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    background: transparent;
    padding: 5px;
    color: var(--icon-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--icon-color);
}

.filter-group select {
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(187, 187, 187, 0.305);
    border: 2px solid var(--icon-color);
    color: var(--icon-color);
    font-weight: 500;
}
#filterHotel option {
    background-color: var(--calc-color);
    color: var(--sidebar-color);
    font-weight: 500;
}
#filterYear option {
    background-color: var(--calc-color);
    color: var(--sidebar-color);
    font-weight: 500;
}
#filterMonth option {
    background-color: var(--calc-color);
    color: var(--sidebar-color);
    font-weight: 500;
}

#applyFilters {
    background: var(--icon-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
    margin-top: 22px;
    transition: background 0.3s;
}

#applyFilters:hover {
    background: #fa9b20;
}

/* Cards de Métricas */
.metric-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.metric-card {
    background: transparent;
    border: 2px solid var(--icon-color);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.metric-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--icon-color);
}

.metric-card p {
    font-size: 30px;
    font-weight: 700;
    color: var(--tittle-color);
}

/* Gráficos */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
}

.chart-box {
    background: var(--icon-color);
    border-radius: 10px;
    padding: 20px;
    width: auto;
    height: 400px;
}
#receitaMesChart{
    padding: 5px 5px 25px 5px;
}
#eventosHotelChart{
    padding: 5px 5px 25px 25px;
}
#statusChart{
    padding: 5px 5px 25px 25px;
}
#segmentoChart{
    padding: 5px 5px 25px 10px;
}

.chart-box h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffa600;
    font-size: 16px;
}

.synthetic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.synthetic-card {
    background: var(--calc-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.synthetic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.synthetic-card header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.synthetic-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--tittle-color);
}

.synthetic-card span {
    font-size: 0.85rem;
    color: var(--text-color);
}

.synthetic-card canvas {
    width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.synthetic-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding-top: 8px;
}

.synthetic-card-cta {
    margin-top: 4px;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.35));
    color: var(--icon-color);
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.synthetic-card-cta:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0.5));
    color: #fff;
}

.synthetic-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-top: 24px;
    align-items: stretch;
}

.synthetic-chart-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--calc-color);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.synthetic-board-wrapper {
    border-radius: 20px;
    padding: 20px;
    background: var(--calc-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.synthetic-board-title h3 {
    margin: 0;
    color: var(--tittle-color);
    font-size: 1.2rem;
}

.synthetic-board-title p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.synthetic-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.synthetic-modal.active {
    display: flex;
}

.synthetic-modal-content {
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

.synthetic-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--tittle-color);
    cursor: pointer;
}

.synthetic-modal-content h3 {
    margin-top: 0;
    color: var(--tittle-color);
}

.synthetic-modal-content p {
    color: var(--text-color);
    margin-bottom: 16px;
}

.synthetic-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.synthetic-modal-content li {
    font-size: 0.95rem;
}

.synthetic-modal-content li strong {
    display: inline-block;
    min-width: 70px;
    color: #101827;
}

@media (max-width: 960px) {
    .synthetic-details {
        grid-template-columns: 1fr;
    }
}