
/*==========  Paginação  ======*/
#paginacao {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

#paginacao .page {
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all .2s ease;
}

#paginacao .page:hover { background: #333; color: #fff; }
#paginacao .page.active { background: #333; color: #fff; pointer-events: none; }
#paginacao .page.disabled { opacity: .45; pointer-events: none; }
#paginacao .page.nav { font-weight: 600; }


/*======= Modal ==============*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

/* Imagem ampliada */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

/* Botão fechar */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

#carregando {
  text-align: center;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  z-index: 9999;
}

/*============  End modal ====================*/ 

.sub-nav{
display: flex;
gap: 20px;
}

.sub-nav li{
    list-style: none;
}


.container {
    max-width: 1200px; /* Garante que não seja muito largo */
    margin: 10px auto; /* Centraliza o container */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Inclui padding na largura total */
}

.banner-content h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
}



/*==============  Pagina inicial (Home)  =========================*/
/* ==================================== */
/* Estilos Globais e Reset (Adapte conforme necessário) */
/* ==================================== */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5em;
    color: #34495e;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    border-bottom: 3px solid #e67e22; /* Cor de destaque */
    padding-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: #e67e22; /* Cor primária */
    color: #fff;
}

.btn-primary:hover {
    background-color: #d35400;
}

.btn-secondary {
    background-color: #34495e; /* Cor secundária */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #2c3e50;
}

.btn-large {
    font-size: 1.2em;
    padding: 15px 35px;
}

.btn-full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* ==================================== */
/* Botão WhatsApp Fixo */
/* ==================================== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d366; /* Cor do WhatsApp */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button i {
    font-size: 30px;
}

/* ==================================== */
/* Cabeçalho (Menu) */
/* ==================================== */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    font-size: 1.8em;
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    z-index: 100;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #e67e22;
}

.main-nav ul li.cta-button a {
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
}

.main-nav ul li.cta-button a:hover {
    background-color: #d35400;
}


.menu-toggle {
    background: none;
    border: none;
    color: #e67e22;
    font-size: 1.5em;
    cursor: pointer;
    display: none; /* Oculto por padrão em telas grandes */
}

/* ==================================== */
/* Banner Principal */
/* ==================================== */
.main-banner {
    background-color: #f9f9f9;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    height: 500px; /* Ajuste a altura conforme necessário */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-content {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    padding: 50px;
    background-color: rgba(0, 0, 0, 0.3); /* Fundo semi-transparente para o texto */
    border-radius: 10px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.banner-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-controls button:hover {
    opacity: 1;
}

/* ==================================== */
/* Seção de Serviços */
/* ==================================== */
.services-section {
    padding: 50px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 100%;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px; /* Ajuste a altura das imagens de amostra */
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.5em;
    color: #34495e;
    margin: 20px 15px 10px 15px;
}

.service-item p {
    font-size: 1em;
    color: #555;
    margin: 0 15px 15px 15px;
}

.services-section .call-to-action {
    text-align: center;
    margin-top: 50px;
}

.services-section .call-to-action p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

/* ==================================== */
/* Seção de Planos */
/* ==================================== */
.plans-section {
    padding: 50px 0;
    background-color: #f4f4f4;
}

.plans-section .planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.plans-section .plano-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plans-section .plano-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.plans-section .plano-card h3 {
    font-size: 1.8em;
    color: #e67e22;
    margin-bottom: 15px;
}

.plans-section .plano-card .preco {
    font-size: 2em;
    font-weight: bold;
    color: #27ae60; /* Verde para o preço */
    margin-bottom: 20px;
}

.plans-section .plano-card .preco .periodicidade {
    font-size: 0.6em;
    font-weight: normal;
    color: #777;
}

.plans-section .plano-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.plans-section .plano-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.plans-section .plano-card ul li:last-child {
    border-bottom: none;
}

.plans-section .plano-card .btn-primary {
    font-size: 1.1em;
    padding: 12px 25px;
}

.plans-section .call-to-action {
    text-align: center;
    margin-top: 50px;
}

.plans-section .call-to-action p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.plans-section .plano-card-destaque {
    border: 2px solid #e67e22;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.plans-section .plano-card-destaque h3 {
    color: #d35400;
}

/* ==================================== */
/* Seção de Contato */
/* ==================================== */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form button.btn-primary {
    width: 100%;
}

.contact-info {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f4f4f4;
}

.contact-info h3 {
    font-size: 1.8em;
    color: #34495e;
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.contact-info p i {
    margin-right: 10px;
    color: #e67e22;
}

.contact-info .social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5em;
    color: #555;
    transition: color 0.3s ease;
}

.contact-info .social-links a:hover {
    color: #e67e22;
}

/* ==================================== */
/* Rodapé */
/* ==================================== */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content > div {
    margin-bottom: 20px;
}

.footer-logo a {
    font-size: 1.5em;
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #5e5d5d;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #d1bd05;
}

.footer-social a {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.5em;
    color: #5e5d5d;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #d1bd05;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9em;
}

.footer-copyright p {
    margin: 0;
    color: #5e5d5d;
}

/*==============================================================*/
/* Container principal para centralizar os formulário (Cadastro, recuperar senha, criar nova senha) */
.containers-forms {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Estilo geral para o container do formulário */
.containers-forms .form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.containers-forms h2 {
    text-align: center;
    color: #333333;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.containers-forms p.info-text {
    text-align: center;
    color: #666666;
    margin-bottom: 25px;
}

/* Estilo para as mensagens de feedback */
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}

/* Estilo para o grupo de campos (label + input) */
.containers-forms .form-group {
    margin-bottom: 20px;
}

.containers-forms .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 600;
}

/* Estilo para os campos de input e select */
.containers-forms .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.containers-forms .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Estilo para o botão de submit */
.containers-forms .btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.containers-forms .btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.containers-forms .btn-primary:hover {
    background-color: #0056b3;
}

/* Estilo para links dentro do formulário, se houver */
.containers-forms .form-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
}

.containers-forms .form-link:hover {
    text-decoration: underline;
}

/* Media Queries para responsividade */
@media (max-width: 500px) {
    .containers-forms .form-container {
        padding: 25px;
        margin: 20px;
    }
}

/* ==================================== */
/* Media Queries para Responsividade */
/* ==================================== */

@media (min-width: 1000px) {
.foe-moble{
    display: none;
}

}

@media (max-width: 1000px) {
.sub-nav{
    display: none;
}
}

@media (max-width: 576px) {
    .banner-container {
        height: 300px; /* Altura menor para o banner */
    }
    .banner-content h1 {
        font-size: 1.8em;
    }
    .banner-content p {
        font-size: 0.9em;
    }
    .banner-content .btn-large {
        font-size: 1em;
        padding: 10px 20px;
    }
    .banner-controls button {
        font-size: 1.5em;
    }
    .service-item img {
        height: 180px; /* Ajuste a altura das imagens de amostra */
    }
    .plans-section .plano-card h3 {
        font-size: 1.5em;
    }
    .plans-section .plano-card .preco {
        font-size: 1.8em;
    }
    .contact-info p {
        font-size: 1em;
    }
    .contact-info .social-links a {
        font-size: 1.2em;
    }
}

/* Ocultar barra de rolagem horizontal se não for necessária */
html, body {
    overflow-x: hidden;
}
/*==================== FIM pagina inicial (home)===================*/
/* ==================================== */
/* Estilos Gerais */
/* ==================================== */

.container {
    max-width: 1200px; /* Ajuste este valor se preferir um container mais estreito/largo */
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
}

p {
    margin: 0 0 10px; /* Espaçamento padrão para parágrafos */
}

/* ==================================== */
/* Estilos de Botões */
/* ==================================== */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap; /* Impede que o texto do botão quebre */
    font-size: 0.9em;
    box-sizing: border-box; /* Garante que padding e borda sejam incluídos na largura */
}
.btn:hover {
    opacity: 0.9;
}
.btn-sm { /* Botões menores, usados na tabela */
    padding: 6px 10px;
    font-size: 0.8em;
}

.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }
.btn-warning { background-color: #ffc107; color: #212529; }
.btn-warning:hover { background-color: #e0a800; }
.btn-info { background-color: #17a2b8; }
.btn-reativar { background-color: #2d740d; }
.btn-reativar:hover { background-color: #3e9c13; }
.btn-info:hover { background-color: #138496; }
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }


/* ==================================== */
/* Estilos para Badges de Status (opcional, se usado) */
/* ==================================== */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: capitalize;
    margin: 0 5px;
}
.status-ativa { background-color: #d4edda; color: #155724; }
.status-inativa { background-color: #f8d7da; color: #721c24; }
.status-cancelada { background-color: #f8d7da; color: #721c24; }
.status-pendente_cancelamento { background-color: #ffc107; color: #856404; }
.status-pendente_pagamento, .status-pendente { background-color: #ffeeba; color: #856404; }
.status-pago { background-color: #d4edda; color: #155724; }
.status-info {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
    display: block;
}


/* ==================================== */
/* Estilos do Formulário de Busca (Gerenciar Usuários) */
/* ==================================== */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    min-width: 150px;
}

.search-form button, .search-form .btn-clear-search {
    flex-shrink: 0;
}


/* ==================================== */
/* Estilos da Tabela (Admin - Gerenciar Usuários) */
/* ==================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal em telas grandes se a tabela for muito larga */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #fff;
    /* Remova ou ajuste o min-width se não quiser scroll horizontal em telas maiores */
    /* min-width: 700px; */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table thead th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    white-space: nowrap; /* Evita que os cabeçalhos quebrem de linha */
}

/* Larguras específicas para colunas - AJUSTE ESTES VALORES conforme seu conteúdo! */
/* Se sua tabela tem 5 colunas: ID, Nome, E-mail, Data de Registro, Ações */
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 5%; } /* ID */
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 25%; } /* Nome */
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 30%; } /* E-mail */
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 20%; } /* Data de Registro */
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 20%; } /* Ações */


.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tbody tr:hover {
    background-color: #e2e6ea;
}

/* Estilos para a célula de ações da tabela */
.action-links {
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap; /* Impede que os botões quebrem a linha em desktop */
    gap: 5px; /* Espaço entre os botões */
    justify-content: flex-start;
    align-items: center;
}
.action-links a,
.action-links button {
    flex-shrink: 0;
}
.action-links form {
    display: inline-flex;
    margin: 0;
}


/* ==================================== */
/* Estilos para "Minhas Assinaturas" (Layout de Cards) */
/* ==================================== */
.assinatura-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.assinatura-details {
    flex: 2;
    min-width: 300px;
    padding-right: 15px;
    box-sizing: border-box;
}

.assinatura-actions {
    flex: 1;
    min-width: 150px;
    text-align: right;
    display: flex;
    flex-direction: column; /* Empilha botões verticalmente em desktop */
    gap: 10px;
    box-sizing: border-box;
}

.assinatura-details h3 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.assinatura-details p {
    margin: 5px 0;
    font-size: 0.95em;
}


/* ==================================== */
/* Estilos Adicionais (para textos e barras de ações) */
/* ==================================== */
.total-records, .no-records, .no-subscriptions {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1em;
}

.no-records, .no-subscriptions {
    padding: 30px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 30px;
}

.actions-bar-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}


/* Remova o .container global se ele estiver causando problemas */
/* ou certifique-se de que ele não afeta o layout do login-page-wrapper */

/* ==================================== */
/* Estilos da Página de Login */
/* ==================================== */
.login-page-wrapper {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    min-height: 100vh;       /* Ocupa a altura total da viewport */
    background-color: #f4f4f4; /* Cor de fundo da página de login */
    padding: 20px; /* Espaçamento em volta do container de login */
    box-sizing: border-box; /* Garante que padding não adicione largura extra */
}

.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Largura máxima do formulário de login */
    text-align: center;
    box-sizing: border-box;
}

.login-container h1 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #007bff; /* Ou a cor primária que você estiver usando */
}

/* ==================================== */
/* Estilos de Formulário (Gerais, para serem reusados) */
/* ==================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left; /* Alinha labels à esquerda */
}

.form-group label {
    display: block; /* Faz o label ocupar sua própria linha */
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Garante que padding e border não adicionem largura extra */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none; /* Remove o outline padrão do navegador */
}

/* ==================================== */
/* Link de Registro e Outros Links na Tela de Login */
/* ==================================== */
.login-container .btn-primary { /* Estilo específico para o botão de login */
    width: 100%; /* Botão de login ocupa toda a largura */
    padding: 12px;
    font-size: 1.1em;
    margin-top: 10px; /* Espaço acima do botão */
}

.register-link {
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}



/* Estilo para as ações superiores (Novidade) */
.top-actions {
    display: flex;
    justify-content: flex-start; /* Alinha à esquerda */
    gap: 15px; /* Espaço entre os botões */
    margin-bottom: 30px;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
}

/* ==================================== */
/* Estilos da Tabela (Admin - Gerenciar Planos) */
/* ==================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite rolagem horizontal em telas pequenas */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.excluir-plano{
    text-align: center;
    width: 150px;
}


.data-table {
    width: 100%;
    border-collapse: collapse; /* Colapsa as bordas da tabela */
    margin: 0;
    background-color: #fff;
    min-width: 800px; /* Garante que a tabela não fique muito estreita antes de rolar */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table thead th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    white-space: nowrap; /* Impede que o texto do cabeçalho quebre */
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Fundo alternado para linhas pares */
}

.data-table tbody tr:hover {
    background-color: #e2e6ea; /* Destaque ao passar o mouse */
}



/* ==================================== */
/* Estilos do Formulário (Formulário de Criação/Edição de Planos) */
/* ==================================== */

.form-plan {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px; /* Espaçamento entre os grupos de campos */
}

.form-group label {
    display: block; /* Cada label em sua própria linha */
    margin-bottom: 8px; /* Espaço entre o label e o campo */
    font-weight: bold;
    color: #34495e;
    font-size: 0.95em;
}

.form-control {
    width: 100%; /* Campos de texto, textarea, select ocupam 100% da largura do pai */
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Inclui padding e borda na largura total */
    font-size: 1em;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #80bdff; /* Borda azul ao focar */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Sombra suave ao focar */
}

/* Estilos específicos para o grupo do checkbox */
.checkbox-group {
    display: flex; /* Para alinhar o checkbox e o label */
    align-items: center;
    margin-top: 25px; /* Espaço maior acima do checkbox */
    margin-bottom: 25px; /* Espaço maior abaixo do checkbox */
}

.checkbox-group label {
    margin-bottom: 0; /* Remove a margem padrão do label */
    display: inline-block; /* Alinha com o input */
    font-weight: normal; /* Menos negrito que os outros labels */
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px; /* Espaço entre o checkbox e o label */
    transform: scale(1.2); /* Aumenta um pouco o tamanho do checkbox */
    cursor: pointer;
}

/* Estilo para o link "Voltar" */
.back-link {
    text-align: center;
    margin-top: 30px;
}

/* ==================================== */
/* Estilos do Formulário (Geral e Específico para Usuários) */
/* ==================================== */

/* As regras para .form-plan já devem estar no seu CSS e funcionarão para .form-user */
/* Se quiser diferenciar, adicione regras para .form-user aqui: */
.form-user {
    background-color: #f8f9fa; /* Reusa o background do form-plan */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* As regras para .form-group, .form-control, .checkbox-group, .back-link já devem estar no seu CSS */
/* Elas são genéricas e funcionarão para este formulário também. */

/* Exemplo de uma possível personalização futura para .form-user se necessário */
/*
.form-user .form-group {
    border-left: 3px solid #007bff; // Exemplo: Adiciona uma borda na esquerda para este formulário
    padding-left: 10px;
}
*/

/* =================== Detalhes Usuario  ==============*/
/* ==================================== */
/* Estilos para Cards (Novo) */
/* ==================================== */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

    .botoes-acoes{
        border: none;
        text-decoration: none;
        color: #fff;
    }
    .btn-excluir{
         padding: 10px 7px 10px 7px ;
    }
    .form-excluir-user{
        background-color: rgb(196, 7, 7);
        width: 300px;
        padding: 30px;
    }

    .ver-detalhes{
        background-color: #3b95a5;
         padding: 7px ;
         border-radius: 3px;
    }

    .editar{
         border-radius: 3px;
        background-color: #0c5460;
         padding: 7px ;
    }

.user-details-card p {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.5;
    color: #555;
}

.user-details-card p strong {
    color: #333;
    display: inline-block; /* Garante que o strong não quebre a linha */
    min-width: 120px; /* Alinha os dois pontos se quiser */
}

/* Estilo para a mensagem de "sem assinaturas" (opcional) */
.no-subscriptions-message {
    background-color: #f8d7da; /* Cor de fundo suave para aviso */
    color: #721c24; /* Cor do texto */
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* ==================================== */
/* Estilos da Página de Planos (Grid de Cards) */
/* ==================================== */

.planos-grid {
    display: grid;
    /* Colunas: 3 em desktop, 2 em tablet, 1 em mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Espaço entre os cards */
    margin-top: 30px;
    margin-bottom: 30px;
}

.plano-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Sombra mais pronunciada para cards */
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Para flexbox interno */
    flex-direction: column; /* Conteúdo em coluna */
    justify-content: space-between; /* Espaçamento entre conteúdo e botões */
    position: relative;
    overflow: hidden;
}

.plano-card:hover {
    transform: translateY(-5px); /* Efeito "levantar" ao passar o mouse */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.plano-card h2 {
    color: #0056b3;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.plano-card .preco {
    font-size: 2.2em;
    font-weight: bold;
    color: #28a745; /* Cor verde para o preço */
    margin-bottom: 10px;
}

.plano-card .preco .periodicidade {
    font-size: 0.5em;
    font-weight: normal;
    color: #6c757d;
}

.plano-card .descricao {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Permite que a descrição ocupe o espaço disponível */
}

.plano-card h3 {
    font-size: 1.1em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left; /* Alinha o título dos recursos à esquerda */
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.recursos-list {
    list-style: none; /* Remove marcadores da lista */
    padding: 0;
    margin-bottom: 25px;
    text-align: left; /* Alinha os itens da lista à esquerda */
    flex-grow: 1; /* Permite que a lista de recursos ocupe o espaço disponível */
}

.recursos-list li {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #444;
}

/* Estilo para ícones de checkmark (se usar Font Awesome ou similar) */
.recursos-list li .icon-check {
    color: #28a745; /* Cor verde para o ícone de check */
    margin-right: 8px;
}
/* Se não usar Font Awesome, pode usar um pseudo-elemento */
/*
.recursos-list li::before {
    content: "\2713"; // Unicode para um checkmark
    color: #28a745;
    margin-right: 8px;
    font-weight: bold;
}
*/

.plan-actions {
    display: flex;
    flex-direction: column; /* Botões empilhados */
    gap: 10px; /* Espaço entre os botões */
    margin-top: auto; /* Empurra os botões para o final do card */
}

.btn-full-width {
    width: 100%; /* Botões ocupam a largura total do card */
    padding: 12px 20px;
    font-size: 1em;
}

/* Estilo para a mensagem de "sem planos" (opcional) */
.no-plans-message {
    background-color: #ffeeba; /* Cor de fundo suave para aviso */
    color: #856404; /* Cor do texto */
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px 20px;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
}


/* ==================================== */
/* Media Queries para Responsividade do Grid de Planos */
/* ==================================== */

@media (max-width: 992px) {
    .planos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduz min-width */
        gap: 25px;
    }
    .plano-card {
        padding: 25px;
    }
    .plano-card h2 {
        font-size: 1.6em;
    }
    .plano-card .preco {
        font-size: 2em;
    }
        .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info {
        margin-top: 30px;
    }

    .banner-content {
        padding: 30px;
    }
    .banner-content h1 {
        font-size: 2.5em;
    }
    .banner-content p {
        font-size: 1.1em;
    }

     .main-header .container {
        position: relative;
    }

    /* Estilo para o menu hambúrguer (botão) */
    .menu-toggle {
        display: block; /* MUITO IMPORTANTE: Torna o botão hambúrguer visível em telas menores */
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 101;
    }

    /* Estilo para a lista de navegação em mobile (oculto por padrão) */
.main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

    /* Estilo para a lista de navegação quando está aberta (EXIBIDO pelo JS) */
.main-nav.is-open ul {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

    /* Ajusta a margem dos itens do menu em mobile */
    .main-nav ul li {
        margin: 10px 0; /* Espaçamento vertical entre os itens */
        margin-left: 0; /* Remove margem lateral que pode ter de desktop */
    }
    .container {
        padding: 15px;
        margin: 10px auto;
    }

    /* Formulário de busca */
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .search-form input[type="text"],
    .search-form button,
    .search-form .btn-clear-search {
        width: 100%;
        margin: 0;
    }
    .search-form button[type="submit"] { order: 2; }
    .search-form .btn-clear-search { order: 1; margin-bottom: 0; }

    /* Tabela Responsiva (transformação em cards) */
    .table-responsive {
        border: none;
        box-shadow: none;
        overflow-x: visible;
    }
    .data-table {
        min-width: 100%;
        border: none;
    }
    .data-table thead {
        position: absolute; /* Esconde o cabeçalho original */
        top: -9999px;
        left: -9999px;
    }
    .data-table tbody tr {
        border: 1px solid #dee2e6;
        margin-bottom: 15px;
        display: block; /* Transforma a linha em um card */
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08);
        padding: 15px;
        position: relative;
    }
    .data-table td {
        border: none;
        border-bottom: 1px dashed #eee;
        position: relative;
        padding-left: 48%; /* Espaço para o pseudo-elemento (rótulo) */
        text-align: right;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.9em;
    }
    .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .data-table td:before { /* O pseudo-elemento que exibe o data-label */
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        font-weight: bold;
        text-align: left;
        color: #34495e;
        font-size: 0.95em;
    }
    
    .data-table td.action-links {
        /*=============== Estilo específico para a célula de ações em mobile ============*/
        display: block; /* Ocupa a largura total */
        text-align: center;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 15px;
    }
    .action-links {
        flex-direction: row; /* Mantém os botões lado a lado */
        flex-wrap: wrap; /* Permite quebrar em múltiplas linhas */
        justify-content: center;
        gap: 8px;
    }
    .action-links a,
    .action-links button,
    .action-links form {
        flex-grow: 1; /* Permite que os botões cresçam */
        width: calc(50% - 8px); /* Dois botões por linha */
        margin: 0;
        box-sizing: border-box;
    }
    .action-links a:only-child,
    .action-links button:only-child,
    .action-links form:only-child {
        width: 100%; /* Botão único ocupa a largura total */
    }
    .action-links form {
        display: flex;
        justify-content: center;
    }
    .action-links form button {
        width: 100%;
    }
}

/* ==================================== */
/* Estilos da Página de Detalhes do Plano */
/* ==================================== */

.plano-detalhes-card {
    /* Reusa estilos gerais de .card */
    text-align: center; /* Centraliza o conteúdo dentro do card */
    padding: 30px;
}

.plano-detalhes-card h1 {
    font-size: 2.2em;
    color: #0056b3;
    margin-bottom: 25px;
    text-align: center; /* Garante que o título do h1 esteja centralizado */
}

.plano-detalhes-card .preco-detalhes {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745; /* Cor verde para o preço */
    margin-bottom: 20px;
}

.plano-detalhes-card .preco-detalhes .price-value {
    font-size: 1.2em; /* Deixa o valor um pouco maior que o texto "Preço:" */
}

.plano-detalhes-card .periodicidade {
    font-size: 0.7em; /* Menor que o preço, mas maior que na listagem */
    font-weight: normal;
    color: #6c757d;
}

.plano-detalhes-card .descricao-detalhes {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.plano-detalhes-card h3 {
    font-size: 1.2em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center; /* Centraliza o título dos recursos */
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.plano-detalhes-card .recursos-list {
    margin-bottom: 30px;
    padding-left: 0; /* Remove padding padrão para centralizar */
    display: inline-block; /* Permite centralizar a UL em mobile */
    text-align: left; /* Garante que os itens dentro da UL sejam alinhados à esquerda */
}

.plano-detalhes-card .recursos-list li {
    font-size: 1em;
    margin-bottom: 10px;
}

.plan-single-action {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center; /* Centraliza o botão */
}

/* ==================================== */
/* Estilos da Página de (confirmar) Assinar Plano */
/* ==================================== */

.plano-resumo-card {
    /* Reusa estilos gerais de .card */
    padding: 30px;
    margin-bottom: 30px;
    text-align: center; /* Centraliza o conteúdo do resumo */
}

.plano-resumo-card h2 {
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 15px;
}

.plano-resumo-card h2 strong {
    color: #333; /* Cor para o nome do plano */
}

.plano-resumo-card .preco-resumo {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745; /* Cor verde para o preço */
    margin-bottom: 20px;
}

.plano-resumo-card .preco-resumo .price-value {
    font-size: 1.2em; /* Deixa o valor um pouco maior que o texto "Preço:" */
}

.plano-resumo-card .periodicidade {
    font-size: 0.7em;
    font-weight: normal;
    color: #6c757d;
}

.plano-resumo-card .descricao-resumo {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.plano-resumo-card h3 {
    font-size: 1.2em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center; /* Centraliza o título dos recursos */
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.plano-resumo-card .recursos-list {
    margin-bottom: 30px;
    padding-left: 0;
    display: inline-block; /* Permite centralizar a UL */
    text-align: left; /* Alinha os itens da lista à esquerda */
}

.plano-resumo-card .recursos-list li {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Estilos do Formulário de Pagamento */
.payment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Reusa as classes .form-group e .form-control já existentes */
/*
.form-group { ... }
.form-control { ... }
*/

/* ==================================== */
/* Estilos da Página do Painel do Usuário */
/* ==================================== */

.panel-welcome-message {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.panel-actions {
    margin-top: 40px;
    text-align: center; /* Centraliza o botão Sair */
}

.btn-logout {
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 6px;
    /* Reusa cores de btn-danger */
}

/* ==================================== */
/* Estilos da Página de Assinatura "Renovar, caso expirou" s (Usuário) */
/* ==================================== */

.info-message {
    background-color: #e2f0d9; /* Verde claro para informação positiva */
    color: #38761d;
    border: 1px solid #c7e1b7;
    text-align: center;
    margin-bottom: 30px;
}

.warning-message {
    background-color: #fce8e8; /* Vermelho claro para aviso/expirado */
    color: #c93b3b;
    border: 1px solid #f8caca;
    text-align: center;
    margin-bottom: 30px;
}

.info-message h2,
.warning-message h2 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: inherit; /* Herda a cor do pai */
}

.info-message p,
.warning-message p {
    font-size: 1.1em;
    line-height: 1.5;
    color: inherit; /* Herda a cor do pai */
}

.info-message strong,
.warning-message strong {
    font-weight: bold;
}

.section-title {
    font-size: 2em;
    color: #34495e;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* As regras para .planos-grid, .plano-card, .btn-full-width, .btn-primary, .btn-logout, .no-plans-message, etc., já devem estar no seu CSS e funcionarão aqui. */
/* ==================================== */
/* Estilos do Dashboard Administrativo */
/* ==================================== */
.dashboard-welcome {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
}

/* Grid para os Cards de Métricas */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 200px mínimo, ajusta colunas */
    gap: 25px; /* Espaçamento entre os cards */
    margin-bottom: 50px;
}

/* Estilo para cada Card de Métrica */
.metric-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Para alinhar o conteúdo verticalmente */
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.metric-card h3 {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 10px;
    margin-top: 0; /* Remover margin-top padrão */
}

.metric-card p {
    font-size: 2.2em; /* Tamanho grande para o valor da métrica */
    font-weight: bold;
    color: #007bff; /* Cor primária para os valores */
    margin-bottom: 0;
}

/* Cores específicas para alguns cards (opcional) */
.metric-card.users p { color: #28a745; } /* Verde */
.metric-card.plans p { color: #17a2b8; } /* Ciano */
.metric-card.plans-active p { color: #007bff; } /* Azul */
.metric-card.total-subscriptions p { color: #6f42c1; } /* Roxo */
.metric-card.active-subscriptions p { color: #28a745; } /* Verde */
.metric-card.pending-subscriptions p { color: #ffc107; } /* Laranja */
.metric-card.cancelled-subscriptions p { color: #dc3545; } /* Vermelho */
.metric-card.inactive-subscriptions p { color: #6c757d; } /* Cinza */
.metric-card.revenue p { color: #20c997; } /* Verde-água */


/* ========================== */
/* Seção de Gráficos */
/* ========================== */
.chart-section {
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chart-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2em;
}

/* Wrapper de todos os gráficos */
.chart-container-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

/* Cada card de gráfico */
.chart-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    height: 380px;      /* ✅ Altura fixa para evitar crescimento */
    min-height: 380px;  /* ✅ Garantia de altura mínima */
    display: flex;
    flex-direction: column;
}

/* Título do gráfico */
.chart-card h3 {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Canvas do gráfico */
.chart-card canvas {
    flex-grow: 1;
    max-width: 100% !important;
    height: 100% !important;  /* ✅ Mantém altura estável */
    min-height: 250px;
    display: block;
    box-sizing: border-box;
}

/* ========================== */
/* Botão centralizado */
.text-center {
    text-align: center;
    margin-top: 30px;
}


/* ==================================== */
/* Estilos Específicos do Painel de Upload da Criadora */
/* ==================================== */

.upload-panel {
    padding: 60px 0;
    background-color: #f8f9fa; /* Um cinza claro para o fundo */
}

.upload-panel .section-title {
    margin-top: 20px; /* Ajuste para não ficar colado no header */
    margin-bottom: 20px;
}

.panel-description {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.upload-form-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Limita a largura do formulário */
    margin: 0 auto; /* Centraliza o card */
}

/* Estilos para grupos de formulário */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
    font-size: 1.1em;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box; /* Garante que padding não adicione largura */
}

.form-group textarea.form-control {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.9em;
}

/* Estilos para o input de arquivo */
#fileInput {
    padding: 10px; /* Adiciona um pouco de padding */
    border: 1px dashed #a0a0a0; /* Borda tracejada para indicar área de drop/seleção */
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#fileInput:hover {
    background-color: #e0e0e0;
}

/* Estilos para as prévias de arquivo */
.file-preview-container {
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    min-height: 120px; /* Altura mínima para o contêiner de prévias */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center; /* Centraliza itens quando poucos */
    margin-bottom: 25px;
}

.no-files-selected {
    color: #888;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.file-preview-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 5px;
    box-sizing: border-box;
}

.file-preview-item img,
.file-preview-item video {
    max-width: 100%;
    max-height: 80px; /* Limita a altura da mídia na prévia */
    object-fit: contain; /* Garante que a imagem/vídeo seja contido no espaço */
    margin-bottom: 5px;
}

.file-preview-item .fas.fa-file {
    font-size: 40px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.file-preview-item p {
    font-size: 0.8em;
    color: #555;
    word-break: break-all; /* Quebra palavras longas */
    margin: 0;
    padding: 0 5px;
    max-height: 30px; /* Limita a altura do texto do nome do arquivo */
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona reticências se o texto for muito longo */
    white-space: nowrap; /* Evita quebra de linha inicial */
}

/* Botão de Upload */
.upload-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn .fas {
    margin-right: 10px;
}

/* Mensagens de Status de Upload (via JavaScript, se implementar AJAX) */
.upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

.upload-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.upload-progress {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==================================== */
/* Media Queries para Responsividade */
/* ==================================== */
@media (max-width: 768px) {

    .upload-panel {
        padding: 40px 0;
    }
    .upload-form-card {
        padding: 25px;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group .form-control {
        padding: 10px 12px;
    }
    .file-preview-container {
        min-height: 100px;
        gap: 10px;
    }
    .file-preview-item {
        width: 100px;
        height: 100px;
    }
    .file-preview-item img,
    .file-preview-item video {
        max-height: 60px;
    }
    .file-preview-item .fas.fa-file {
        font-size: 30px;
    }
    .upload-btn {
        padding: 12px;
        font-size: 1.1em;
    }
       .section-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .main-banner {
        padding: 80px 0;
    }
    .banner-container {
        height: 400px;
    }
    .banner-content {
        padding: 20px;
    }
    .banner-content h1 {
        font-size: 2em;
    }
    .banner-content p {
        font-size: 1em;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
    .plans-section .planos-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
    .main-footer .container {
        flex-direction: column; /* Itens do rodapé em coluna */
        align-items: center;
        text-align: center;
    }
    .footer-content > div {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-links ul {
        text-align: center;
    }
    .footer-social {
        text-align: center;
    }
    .top-actions {
        flex-direction: column;
        align-items: stretch; /* Estica os botões para a largura total */
    }
    .top-actions .btn {
        width: 100%; /* Botões ocupam 100% da largura */
    }
    .form-plan {
        padding: 20px; /* Menor padding em telas menores */
    }
    .form-group label {
        font-size: 0.9em;
    }
    .form-control {
        padding: 10px;
        font-size: 0.9em;
    }
    .btn {
        width: 100%; /* Botões ocupam largura total em mobile */
        margin-bottom: 10px; /* Espaço entre botões se tiver mais de um */
    }
    .back-link .btn {
        margin-bottom: 0; /* Remove margem extra para o botão de voltar */
    }
    .user-details-card {
        padding: 20px;
    }
    .user-details-card p {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .user-details-card p strong {
        min-width: unset; /* Remove min-width em mobile para não apertar */
        display: block; /* Ocupa a linha toda em mobile */
        margin-bottom: 3px; /* Espaço entre label e valor */
    }
    .planos-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
        gap: 20px;
    }
    .plano-card {
        padding: 20px;
    }
    .plano-card h2 {
        font-size: 1.5em;
    }
    .plano-card .preco {
        font-size: 1.8em;
    }
    .btn-full-width {
        padding: 10px 15px;
        font-size: 0.95em;
    }
    .plano-detalhes-card {
        padding: 20px;
    }
    .plano-detalhes-card h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .plano-detalhes-card .preco-detalhes {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .plano-detalhes-card .descricao-detalhes {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .plano-detalhes-card h3 {
        font-size: 1.1em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .plano-detalhes-card .recursos-list li {
        font-size: 0.9em;
    }
    .plan-single-action {
        margin-top: 30px;
    }
    .plano-resumo-card,
    .payment-form {
        padding: 20px;
    }
    .plano-resumo-card h2 {
        font-size: 1.8em;
    }
    .plano-resumo-card .preco-resumo {
        font-size: 1.6em;
    }
    .plano-resumo-card .descricao-resumo {
        font-size: 0.95em;
    }
    .plano-resumo-card h3 {
        font-size: 1.1em;
    }
    .plano-resumo-card .recursos-list li {
        font-size: 0.9em;
    }
    .panel-welcome-message {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .btn-logout {
        width: 100%; /* Botão ocupa largura total em mobile */
        padding: 10px 15px;
        font-size: 1em;
    }
    .panel-actions {
        margin-top: 30px;
    }
    .info-message,
    .warning-message {
        padding: 20px;
    }
    .info-message h2,
    .warning-message h2 {
        font-size: 1.4em;
    }
    .info-message p,
    .warning-message p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 25px;
    }
    .chart-container-wrapper {
        grid-template-columns: 1fr; 
        gap: 25px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .chart-card {
        height: 320px;     /* ✅ Menor altura em telas pequenas */
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .upload-form-card {
        padding: 20px;
        margin: 0 10px; /* Espaçamento nas bordas em telas muito pequenas */
    }
    .section-title {
        font-size: 1.8em;
    }
    .panel-description {
        font-size: 1em;
    }
    .file-preview-item {
        width: 80px;
        height: 80px;
    }
    .file-preview-item img,
    .file-preview-item video {
        max-height: 50px;
    }
    .file-preview-item .fas.fa-file {
        font-size: 25px;
    }
    .file-preview-item p {
        font-size: 0.7em;
    }
        /* Botões de ação da tabela */
    .action-links a,
    .action-links button,
    .action-links form {
        width: 100%; /* Cada botão ocupa uma linha inteira */
        margin: 5px 0;
    }
    /* Opcional: Remover data-label em telas muito pequenas para economizar espaço */
    .data-table td {
        /* padding-left: 15px; */ /* Descomente se remover o data-label */
        /* text-align: left; */ /* Descomente se remover o data-label */
    }
    .data-table td:before {
        /* display: none; */ /* Descomente para esconder o data-label */
    }

    /* Botões de ação dos cards de assinatura */
    .assinatura-actions .btn {
        width: 100%;
        margin: 5px 0;
    }

    .login-container {
        padding: 20px; /* Reduz um pouco o padding em telas muito pequenas */
        margin: 0 10px; /* Adiciona uma margem lateral para não colar nas bordas */
        box-shadow: none; /* Opcional: remover sombra em telas muito pequenas */
    }

    .action-links a,
    .action-links button,
    .action-links form {
        width: 100%; /* Um botão por linha */
        margin: 5px 0;
    }

    h1 {
        font-size: 1.8em;
    }
    .plano-card {
        padding: 15px;
    }
    .plano-card h2 {
        font-size: 1.4em;
    }
    .plano-card .preco {
        font-size: 1.6em;
    }

    .chart-card {
        height: 300px;
        min-height: 300px;
    }
}

/*Estilos Formulario de cadastro ============ */

    .form-group {
        margin-bottom: 15px;
    }
    .form-control {
        width: 100%;
        padding: 8px;
        box-sizing: border-box;
    }