:root {
    --primary-color: #0D6EFD;
    --secondary-color: #198754;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #ffffff;
    --cor-chat-privado: #f8d7da;
    --cor-chat-grupo: #fff3cd;
    --cor-texto-evento-privado: #58151c;
    --cor-texto-evento-grupo: #664d03;
}

.logo {
    height: 50px;
}

.navbar-logo-img {
    /* max-height: 40px; */
    border-radius: 5px;
}

.main {
    min-height: 500px;
}

.navbar-sticky-on .navbar-brand .navbar-brand-item {
    height: 30px;
}

.navbar-brand .navbar-brand-item {
    height: 30px;
    display: block;
    width: auto;
}

.img-avatar {
    /* height: 285px; */
    border-radius: 3px 3px 3px 3px;
}

/*Sidebar*/
/* Estilos personalizados para a sidebar (mantidos da versão anterior e ajustados) */
.offcanvas {
    --bs-offcanvas-width: 300px;
    --bs-offcanvas-bg: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 0.375rem;
    border: 1px solid var(--bs-border-color);
    border-right: 0;
}

.offcanvas-header {
    padding-top: var(--bs-offcanvas-padding-y);
    padding-bottom: var(--bs-offcanvas-padding-y);
    border-bottom: 0;
}

.offcanvas-body {
    padding-top: var(--bs-offcanvas-padding-y);
    padding-bottom: var(--bs-offcanvas-padding-y);
    display: flex;
    flex-direction: column;
}

/* Estilo para os links de navegação */
.nav-link {
    font-weight: 500;
    color: var(--bs-body-color);
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}


.nav-link:hover,
.nav-link.active {
    color: #353535 !important;
    /* background-color: var(--bs-primary-bg-subtle); */
}

.nav-link.active {
    font-weight: 700;
}

/* Estilo para o formulário de busca */
.sidebar-search-form .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.sidebar-search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Estilo para os botões de ação (Login/Registro) */
.sidebar-action-buttons .btn {
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Estilos para o modo escuro (se você tiver) */
[data-bs-theme="dark"] .offcanvas {
    background-color: var(--bs-dark-bg-subtle);
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] .nav-link {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

/* Placeholder para logo modo escuro (se necessário) */
.light-mode-item {
    display: block;
}

.dark-mode-item {
    display: none;
}

[data-bs-theme="dark"] .light-mode-item {
    display: none;
}

[data-bs-theme="dark"] .dark-mode-item {
    display: block;
}

/* end sidebar */

.navbar-blue-gradient {
    background-image: linear-gradient(to right, #497ab4, #3399cc, #497ab4);
    /* position: sticky; */
    /* top: 0; */
    /* width: 100%; */
    /* z-index: 1050; */
}

.bg {
    background: #a6b3fe;
}

.cursor-pointer {
    cursor: pointer;
}

/* .custom-dropdown-content {
    column-count: 3;
    column-gap: 1em;
} */

.nav-link-hover:hover {
    background: #f0f0f0;
}

.w-48 {
    width: 48%;
}

/* Estilo para garantir que o ícone do toggler seja branco */
/* Você pode tornar este seletor mais específico se necessário */
.navbar-toggler-icon-white .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Profile */
.profile-banner {
    height: 250px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 .375rem .375rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid white;
    margin-top: -75px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.profile-header {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Estilo para o placeholder do calendário */
.calendar-placeholder {
    border: 1px dashed #ced4da;
    padding: 3rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: .375rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

/* Ajuste fino para ícones em listas */
.list-group-item i.text-primary {
    margin-right: 0.75rem;
}

/* Estilos para badges de especialidades */
.badge.bg-light {
    border: 1px solid #dee2e6;
}

/* End Profile */

/* about-us */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('your-background-image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 7rem 0;
}

.section-icon {
    font-size: 2.8rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.value-card,
.team-card {
    border: none;
    background-color: transparent;
}

.team-card img {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
}

.img-placeholder {
    width: 100%;
    min-height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
}

.img-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}

/* End About-us */

/* contact */
.contact-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.map-placeholder {
    border: 1px dashed #ced4da;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #e9ecef;
    border-radius: .375rem;
    color: #6c757d;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* End Contact */

/* Copy */

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0558ca 100%);
    color: var(--light-text);
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.8rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-section .btn-cta {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-section .btn-cta:hover {
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.how-it-works-section .step {
    text-align: center;
    padding: 20px;
}

.how-it-works-section .step i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.agenda-section {
    background-color: #e9ecef;
    padding: 80px 0;
}

.agenda-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pricing-section {
    padding: 80px 0;
}

.pricing-section .highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-final-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.cta-final-section h2 {
    font-weight: 600;
    margin-bottom: 30px;
}

.cta-final-section .btn-cta-final {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--light-text);
    border-color: var(--light-text);
    color: var(--primary-color);
}

.cta-final-section .btn-cta-final:hover {
    opacity: 0.9;
    background-color: #f0f0f0;
}


footer {
    background-color: var(--dark-text);
    color: #adb5bd;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #dee2e6;
    text-decoration: none;
}

footer a:hover {
    color: var(--light-text);
}

.blockquote-footer {
    color: #6c757d;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #e7f1ff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

/* End Copy */

/* Start requestPayment */
.alert ul.error-list {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.alert ul.error-list li {
    margin-bottom: 0.25rem;
}

.alert-dismissible .btn-close {
    padding: 0.85rem 1rem;
}

.available-amount h2 {
    color: var(--bs-success);
    font-weight: bold;
}

.payment-details dt {
    font-weight: 600;
    color: var(--bs-secondary-color);
    width: 150px;
    float: left;
    clear: left;
}

.payment-details dd {
    margin-left: 160px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

/* EndRequestPayment */

/* dashboard */
.earning-card {
    background-color: var(--bs-light);
    border-left: 5px solid var(--bs-success);
}

.earning-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.earning-card .display-6 {
    color: var(--bs-success-text-emphasis);
}

#affiliateEarningsChart {
    max-height: 350px;
}

.affiliate-link-section {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color-translucent);
}

/* enddashboard */

/* cookie */
/* Opcional: Estilos customizados para o modal */
#cookieConsentModal .modal-content {
    border-radius: 0.5rem;
    border: none;
}

#cookieConsentModal .modal-footer {
    background-color: #f8f9fa;
}

/* endcookie */

.hover-white:hover {
    color: #ffffff !important;
    opacity: 1;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.highlight-commission {
    /* Destaque para a comissão */
    font-weight: bold;
    color: var(--bs-success);
    /* Cor de destaque (verde) */
    font-size: 1.2em;
}

.table th,
.table td {
    vertical-align: middle;
    padding: 0.8rem 0.75rem;
}

.table thead th {
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-light);
}

.table tbody td {
    text-align: center;
}

.table td.col-name,
.table th.col-name-header {
    text-align: left;
}

.table td.col-actions,
.table th.col-actions-header {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.avatar-sm-table {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--bs-gray-300);
}

/* Estilo base para os blocos de dia */
.day-availability-card {
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Estilo para dias ativos */
.day-availability-card.day-active {
    border-color: var(--bs-primary-border-subtle);
    background-color: var(--bs-primary-bg-subtle);
}

/* Animação para mostrar/esconder horários */
.time-inputs-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.day-availability-card.day-active .time-inputs-wrapper {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
}

/* Ajustes finos */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-label {
    cursor: pointer;
}

.form-control-sm[type="time"]::-webkit-calendar-picker-indicator {
    transform: scale(0.9);
}

/* Estilo para botão de mostrar/ocultar senha */
.password-toggle-btn {
    cursor: pointer;
}

/* Alinhamento e espaçamento da tabela */
.table th,
.table td {
    vertical-align: middle;
}

.table thead th {
    text-align: center;
    white-space: nowrap;
}

.table tbody td {
    text-align: center;
}

.table td.currency,
.table th.currency-header {
    text-align: right;
    white-space: nowrap;
}

.table td.date-cell,
.table th.date-header {
    text-align: left;
    white-space: nowrap;
}

.table td.actions-cell,
.table th.actions-header {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

/* Garante que ícones nos botões tenham espaço */
.actions-cell .btn i {
    margin-right: 0.25rem;
}

.profile-image-preview img {
    transition: opacity 0.3s ease-in-out;
}

.profile-image-preview img:hover {
    opacity: 0.8;
}

.dynamic-item {
    opacity: 1;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transform: translateX(0);
}

.dynamic-item.removing {
    opacity: 0;
    transform: translateX(20px);
}

/* Estilo para valor disponível */
.available-amount h2 {
    color: var(--bs-success);
    font-weight: bold;
}

/* Estilo para dados de pagamento */
.payment-details dt {
    font-weight: 600;
    color: var(--bs-secondary-color);
    width: 150px;
    float: left;
    clear: left;
}

.payment-details dd {
    margin-left: 160px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.earning-card {
    background-color: var(--bs-light);
    border-left: 5px solid var(--bs-primary);
}

.earning-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.earning-card .display-6 {
    color: var(--bs-primary-text-emphasis);
}

#earningsChart {
    max-height: 350px;
}

.card .rounded-circle {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--light-bg);
}

/* Garante uma altura mínima para o conteúdo do card antes do botão */
.package-card-content {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilo para o preço */
.package-price {
    font-weight: 600;
}

/* Alinhamento e espaçamento da tabela */
.table th,
.table td {
    vertical-align: middle;
    padding: 0.8rem 0.75rem;
}

.table thead th {
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-light);
}

/* Alinhamentos específicos */
.table th.col-company,
.table td.col-company {
    text-align: left;
}

.table th.col-item,
.table td.col-item {
    text-align: left;
}

.table th.col-time,
.table td.col-time {
    text-align: center;
    white-space: nowrap;
}

.table th.col-golds,
.table td.col-golds {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}

.table th.col-date,
.table td.col-date {
    text-align: center;
    white-space: nowrap;
}

/* Cor para golds gastos */
.text-spent {
    color: var(--bs-danger);
}

/* Estilo para botão de mostrar/ocultar senha */
.password-toggle-btn {
    cursor: pointer;
    border-left: none;
    /* Evita borda dupla no input-group */
}

.password-toggle-btn:hover {
    background-color: #e9ecef;
    /* Feedback visual leve no hover */
}

/* Garante que o input não tenha borda direita arredondada quando o botão está lá */
.input-group>.form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Garante que o select de parcelas não tenha fundo verde */
#div_installments.alert-success {
    background-color: transparent;
    border: none;
}

/* 2. Faz o CARD ser um container flex vertical e ocupar toda a altura da coluna */
.payment-option-card {
    display: flex;
    flex-direction: column;
}

/* 3. Faz o CARD-BODY ser flex e também ocupar o espaço vertical restante */
.payment-option-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.payment-icon-container {
    flex-grow: 1;
    /* Ocupa espaço para centralizar ícone */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    /* Tamanho grande para o ícone */
    color: var(--bs-primary);
    /* Cor primária para o ícone */
    margin-bottom: 1rem;
}

/* Estilo para área de resultado Pix */
#pix-result-area img.qr-code {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border: 1px solid #dee2e6;
    padding: 5px;
}

#pix-copy-paste-code {
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
}

/* Alinhamento e Quebra de Linha na Tabela */
.table th,
.table td {
    vertical-align: middle;
    padding: 0.8rem 0.75rem;
    /* Ajuste padding se necessário */
}

.table thead th {
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-light);
    /* Fundo leve para cabeçalho */
}

/* Alinhamentos específicos */
.table th.col-id,
.table td.col-id {
    text-align: left;
    font-family: monospace;
    font-size: 0.9em;
}

.table th.col-method,
.table td.col-method {
    text-align: left;
}

.table th.col-currency,
.table td.col-currency {
    text-align: right;
    white-space: nowrap;
}

.table th.col-installments,
.table td.col-installments {
    text-align: center;
}

.table th.col-status,
.table td.col-status {
    text-align: center;
}

.table th.col-date,
.table td.col-date {
    text-align: center;
    white-space: nowrap;
}

.table th.col-actions,
.table td.col-actions {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

/* Estilo para QRCode / PDF (ajuste conforme conteúdo real) */
.qr-code-cell button {
    font-size: 0.8em;
}

.qr-code-text {
    font-family: monospace;
    font-size: 0.85em;
    background-color: #e9ecef;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Estilo do Card do Calendário */
.calendar-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.calendar-card:hover {
    transform: translateY(-5px);
}

/* Ajustes no FullCalendar */
.fc {
    --fc-border-color: #dee2e6;
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: rgba(208, 208, 208, 0.3);
    --fc-list-event-hover-bg-color: #f8f9fa;
    --fc-highlight-color: rgba(6, 109, 218, 0.15);
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--bs-primary);
}

.fc .fc-button {
    background-color: var(--bs-primary);
    border: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.fc .fc-button:hover,
.fc .fc-button:active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #0a58ca;
    box-shadow: none;
}

.fc .fc-button-primary:disabled {
    background-color: #adb5bd;
}

/* Cor de fundo para horários fora do expediente (definido por businessHours) */
.fc .fc-non-business {
    background-color: #e9ecef;
}

/* Cor de fundo para os background events de dias passados */
/* Usar a cor diretamente no evento JS é mais garantido, mas esta classe pode ajudar */
.fc-bg-event.event-passado {
    background-color: #e0e0e0 !important;
    opacity: 0.7;
}

/* Garante que a seleção de highlight não apareça em dias passados */
/* .fc-day-past .fc-highlight { background: none !important; } */
/* Acima pode não funcionar bem em timeGrid, selectAllow é a melhor garantia */


/* Estilo dos eventos normais */
.fc-event {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 3px 5px;
    font-size: 0.8em;
    position: relative;
    z-index: 2;
}

.fc-event-main {
    color: #fff;
}

/* Aplicando as cores aos eventos via classes */
.fc-event.event-privado {
    border-color: var(--cor-chat-privado) !important;
}

.fc-event.event-grupo {
    border-color: var(--cor-chat-grupo) !important;
}

/* Melhorias no Modal */
.modal-header {
    background-color: var(--bs-primary);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-title i {
    margin-right: 0.5rem;
}

/* Feedback de validação */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: .875em;
    color: var(--bs-form-invalid-color);
}

.form-control.is-invalid~.invalid-feedback,
.form-check-input.is-invalid~.invalid-feedback {
    display: block;
}


/* Toast (Notificações) */
.toast-container {
    z-index: 1100;
}

/* Loading Indicator */
#calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    display: none;
}
/* Estilos para telas mÃ©dias e pequenas (md atÃ© celular) */
@media screen and (min-width: 350px) and (max-width: 768px) {

    #all-messages,
    #all-messages-model {
        height: 190px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .navbar-brand .navbar-brand-item {
        height: 30px;
    }
}

@media (max-width: 767.98px) {

    /* < md */
    .table th.col-data-cadastro,
    .table td.col-data-cadastro {
        display: none;
    }
}

/* Responsividade adicional se necessário */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Oculta colunas menos importantes em telas pequenas (exemplo) */
@media (max-width: 991.98px) {

    /* < lg */
    .table th.col-status-conta,
    .table td.col-status-conta,
    .table th.col-status-online,
    .table td.col-status-online {
        display: none;
    }
}

/* Oculta colunas menos importantes em telas pequenas (exemplo) */
@media (max-width: 767.98px) {

    .table th.col-id,
    .table td.col-id,
    .table th.col-installments-value,
    .table td.col-installments-value,
    .table th.col-expire,
    .table td.col-expire {
        display: none;
    }

    /* Ajusta o colspan do empty */
}