/* --- GERAL E FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

main {
    flex-grow: 1;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    /* Necessário para o menu dropdown */
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a5ca3;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.main-nav a:hover {
    color: #007bff;
}

.main-nav a.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* --- BOTÃO HAMBÚRGUER (SÓ APARECE NO MOBILE) --- */
.navbar-burger {
    display: none;
    /* Escondido por padrão */
    width: 3rem;
    height: 3rem;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar-burger span {
    background-color: #333;
    display: block;
    height: 2px;
    left: 50%;
    margin-left: -10px;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    width: 20px;
    transition: transform 0.3s ease;
}

.navbar-burger span:nth-child(1) {
    transform: translateY(-6px);
}

.navbar-burger span:nth-child(3) {
    transform: translateY(6px);
}

.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* --- PÁGINAS DE CONTEÚDO (INÍCIO, SOBRE, REGRAS) --- */
.page-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-content p,
.page-content li {
    line-height: 1.7;
    font-size: 1.05em;
    color: #333;
}

.hero-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #333;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 1.5rem auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #218838;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-box {
    text-align: center;
}

.info-box i {
    color: #007bff;
    margin-bottom: 1rem;
}

.info-box h3 {
    color: #333;
}

/* --- RODAPÉ --- */
.site-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #777;
}

/* Página de Blog */
.blog-post {
    margin-bottom: 2rem;
}
.blog-post h3 {
    color: #1a5ca3;
}
.post-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 1rem;
    font-style: italic;
}
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}

/* Página do Elenco */
.elenco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.player-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}
.player-card .player-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
}
.player-card .player-name {
    font-weight: 600;
    color: #333;
}
.player-card .player-stars {
    color: #ecd905; /* Amarelo estrela */
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* Rodapé com link de privacidade */
.site-footer a {
    color: #007bff;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}


/* Estilos para o Cabeçalho de Informações do Jogo */
.game-info-header {
    background-color: #e9f5ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #bee0f7;
}

.game-info-header h1 {
    font-size: 1.8em;
    color: #1a5ca3;
    margin-bottom: 20px;
    text-align: center;
}

.game-info-header h3 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 5px;
}

.game-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-section p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.info-section .label {
    font-weight: bold;
    color: #34495e;
}

.warning-text {
    color: #c0392b;
    font-weight: bold;
}

.warning-text .label {
    color: #c0392b;
}

.payment-info a,
.external-links a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

.payment-info a:hover,
.external-links a:hover {
    text-decoration: underline;
    color: #1f638b;
}

.external-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.external-links p {
    margin: 8px 0;
    text-align: center;
}


/* Contêiner de Autenticação */
#auth-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

#user-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #2980b9;
}

#logout-button {
    background-color: #e74c3c;
}

#logout-button:hover {
    background-color: #c0392b;
}

button i.fab,
button i.fas,
button i.far {
    margin-right: 7px;
}

/* --- Estilos para Abas --- */
.tabs-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1em;
    color: #495057;
    border-right: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background-color: #e9ecef;
}

.tab-button.active {
    background-color: #fff;
    color: #007bff;
    border-bottom: 3px solid #007bff;
    font-weight: bold;
    position: relative;
}

.tab-content {
    display: none;
    padding: 20px;
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* Controles dentro da Aba de Listas de Jogo */
.tab-content .controls {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-content .controls label {
    font-size: 0.95em;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group-inline input[type="checkbox"] {
    width: auto;
    margin-right: 0;
    transform: scale(1.1);
    cursor: pointer;
}

.form-group-inline label i.far.fa-clock {
    margin-right: 4px;
    color: #007bff;
}

#is-goalkeeper,
#needs-tolerance {
    margin-left: 5px;
    transform: scale(1.1);
}

#confirm-presence-button {
    padding: 10px 20px;
    font-size: 1em;
}

/* Seções de Lista (Geral) */
.list-section {
    margin-bottom: 25px;
}

.list-section:last-child {
    margin-bottom: 0;
}

.list-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.list-section ul {
    list-style-type: none;
    padding: 0;
}

/* Estilo para cada item da lista (jogador) - LAYOUT WHATSAPP */
.list-section ul li {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    border: 1px solid #f0f0f0;
    gap: 12px;
}

/* Estilos para Avatar do Jogador */
.player-avatar-container {
    flex-shrink: 0;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-avatar i.fas.fa-user-circle {
    font-size: 2em;
    color: #adb5bd;
}

/* Estilos para Detalhes do Jogador */
.player-details-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.player-name-display {
    font-size: 1.1em;
    font-weight: 500;
    color: #212529;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-confirmation-timestamp {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 4px;
}

.player-additional-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.player-additional-tags span {
    font-size: 0.75em;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #e9ecef;
    color: #495057;
    white-space: nowrap;
}

.player-additional-tags span.tolerance-tag {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.player-additional-tags span.tolerance-tag i {
    color: #e67e22;
    margin-right: 3px;
}

.player-additional-tags span.guest-tag {
    background-color: #e2e3e5;
    color: #383d41;
    font-style: italic;
}

.player-confirmation-timestamp .penalty-removal-tag {
    font-style: italic;
    font-size: 0.9em;
    margin-left: 4px;
    color: #c0392b;
}

.list-section li .remove-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-section li .remove-button:hover {
    background-color: #c0392b;
}

.list-section li .remove-button.remove-guest-btn {
    background-color: #d9534f;
}

.list-section li .remove-button.remove-guest-btn:hover {
    background-color: #c9302c;
}

.list-section li .remove-button.admin-remove-player-btn {
    background-color: #f39c12;
}

.list-section li .remove-button.admin-remove-player-btn:hover {
    background-color: #e08e0b;
}


/* --- Estilos para o Conteúdo do Painel do Admin (Restaurados e Validados) --- */
.admin-panel-content {
    border-radius: 6px;
}

.admin-panel-content h3 {
    color: #333;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.admin-panel-content p small {
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-bottom: 15px;
}

#admin-search-user {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#admin-all-users-list {
    list-style-type: none;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.admin-user-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.admin-user-item:last-child {
    border-bottom: none;
}

.admin-user-info {
    flex-grow: 1;
    margin-right: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.admin-user-info strong {
    color: #212529;
}

.admin-user-info small {
    color: #6c757d;
    font-size: 0.85em;
    margin-left: 6px;
}

.config-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.config-section h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #337ab7;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.config-section h4 i {
    margin-right: 8px;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

.form-group input[type="number"],
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    width: 100%;
}

.form-group small {
    font-size: 0.8em;
    color: #777;
    margin-top: 4px;
}

.admin-action-button {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-action-button:hover {
    background-color: #0056b3;
}

.admin-action-button i {
    margin-right: 8px;
}

.status-feedback {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    display: none;
}

.status-feedback.visible {
    display: block !important;
}

.status-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-feedback.neutral {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

hr.admin-section-divider,
hr.section-divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 30px 0;
}

.status-badge {
    font-size: 0.8em;
    padding: 3px 7px;
    border-radius: 4px;
    color: white;
    margin-left: 10px;
    font-weight: bold;
    vertical-align: middle;
    white-space: nowrap;
}

.confirmed-badge {
    background-color: #5cb85c;
}

.waiting-badge {
    background-color: #f0ad4e;
}

.admin-user-item-actions {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-user-item-actions label {
    font-size: 0.9em;
    color: #495057;
    margin-right: 3px;
}

.admin-user-item-actions .admin-add-gk-checkbox {
    margin-right: 8px;
    transform: scale(1.1);
    vertical-align: middle;
}

.admin-user-item-actions .admin-add-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.admin-user-item-actions .admin-add-button:hover {
    background-color: #218838;
}

.error-message {
    color: #721c24;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    display: none;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 1px solid transparent;
}

.error-message.error-active {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.error-message.success-active {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.list-status {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.list-status.open {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.list-status.closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.list-status.neutral {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.guest-controls {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.guest-controls h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.guest-controls h4 i {
    margin-right: 8px;
    color: #007bff;
}

.guest-controls .form-group {
    margin-bottom: 15px;
}

.guest-controls .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.guest-controls .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.guest-controls .guest-is-goalkeeper-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.guest-controls .guest-is-goalkeeper-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
}

.guest-controls .guest-is-goalkeeper-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.guest-controls .action-button,
#add-guest-button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
}

.guest-controls .action-button:hover,
#add-guest-button:hover {
    background-color: #4cae4c;
}

.guest-tag {
    font-style: italic;
    color: #555 !important;
    margin-left: 5px;
}

/* Estilos para Tabela Financeira */
.financial-table-container {
    overflow-x: auto;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95em;
}

.financial-table th,
.financial-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.financial-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
    white-space: nowrap;
}

.financial-table tbody tr:hover {
    background-color: #f5f5f5;
}

.financial-table .col-photo {
    width: 60px;
}

.financial-table .col-balance,
.financial-table .col-stars {
    width: 110px;
}

.financial-table .col-actions {
    width: 130px;
    text-align: right;
}

.financial-table .player-avatar {
    width: 40px;
    height: 40px;
}

.financial-table .player-name-financial {
    font-weight: 500;
}

.financial-table .player-balance {
    font-weight: bold;
}

.financial-table .player-balance.negative {
    color: #c0392b;
}

.financial-table .player-balance.positive {
    color: #27ae60;
}

.financial-table .star-rating .fa-star {
    color: #f39c12;
}

.financial-table input[type="number"] {
    width: 90px;
    padding: 6px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 1em;
}

.financial-table .action-button-small {
    padding: 6px 10px;
    font-size: 0.8em;
    margin: 0 3px;
}

.financial-table .save-btn {
    background-color: #28a745;
}

.financial-table .cancel-btn {
    background-color: #6c757d;
}

.financial-table .edit-btn {
    background-color: #007bff;
}

/* --- NOVOS ESTILOS PARA "TOTAL EM CAIXA" --- */
.total-cash-container {
    background-color: #e9f5ff; /* Um azul claro para destaque */
    border: 1px solid #cce5ff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.total-cash-container h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #004085; /* Azul escuro */
}
.total-cash-container h4 i {
    margin-right: 8px;
}

.total-cash-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004085;
    margin-bottom: 1rem;
}

.total-cash-value input {
    font-size: 1.5rem; /* Fonte menor para o input */
    font-weight: 700;
    color: #004085;
    text-align: center;
    border: 1px solid #007bff;
    border-radius: 6px;
    padding: 0.5rem;
    max-width: 150px; /* Largura máxima para o input */
}

/* Esconde as setas padrão do input number */
.total-cash-value input[type=number]::-webkit-inner-spin-button, 
.total-cash-value input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.total-cash-value input[type=number] {
  -moz-appearance: textfield;
}

#edit-total-cash-button {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

.total-cash-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* === Media Queries para Responsividade Mobile === */
@media (max-width: 768px) {
    .site-header {
        /* Não precisa mais do flex-direction column */
    }

    .container {
        padding: 15px;
    }

    .game-info-header h1 {
        font-size: 1.5em;
    }

    .game-info-header h3 {
        font-size: 1.05em;
    }

    .info-section p {
        font-size: 0.9em;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .list-section h2,
    .financial-table th {
        font-size: 1.25em;
    }

    .admin-panel-content h3 {
        font-size: 1.3em;
    }

    .guest-controls h4 {
        font-size: 1.1em;
    }

    .main-nav {
        display: none;
        /* Esconde o menu por padrão no mobile */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e0e0e0;
    }

    .main-nav.is-active {
        display: flex;
        /* Mostra o menu quando ativo */
    }

    .main-nav a {
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .navbar-burger {
        display: block;
        /* Mostra o botão hambúrguer no mobile */
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    .game-info-header {
        padding: 15px;
    }

    .game-info-header h1 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .game-details-grid {
        gap: 10px;
    }

    .info-section {
        padding: 10px;
    }

    .info-section p {
        font-size: 0.85em;
    }

    .tab-button {
        padding: 9px 10px;
        font-size: 0.85em;
    }

    .tab-content {
        padding: 15px;
    }

    .tab-content .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .tab-content .controls .form-group-inline {
        width: 100%;
        justify-content: space-between;
    }

    .tab-content .controls .form-group-inline label {
        justify-content: flex-start;
    }

    #confirm-presence-button {
        width: 100%;
        padding: 12px;
        font-size: 0.95em;
    }

    .list-section h2,
    .financial-table th {
        font-size: 1.15em;
    }

    .list-section ul li {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .player-details-main {
        margin-bottom: 0;
    }

    .list-section li .remove-button {
        width: auto;
        margin-left: auto;
        padding: 6px 10px;
    }

    .guest-controls {
        padding: 15px;
    }

    .guest-controls .form-group input[type="text"] {
        width: 100%;
        box-sizing: border-box;
    }

    .guest-controls .guest-is-goalkeeper-group {
        justify-content: flex-start;
    }

    .guest-controls .controls {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: space-between;
    }

    .guest-controls .controls .form-group-inline {
        width: auto;
        justify-content: flex-start;
    }

    #add-guest-button {
        width: auto;
        padding: 10px 12px;
    }

    .admin-panel-content h3 {
        font-size: 1.2em;
    }

    #admin-search-user {
        padding: 10px;
        font-size: 0.9em;
    }

    .admin-user-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-user-info {
        margin-bottom: 10px;
        width: 100%;
    }

    .admin-user-item-actions {
        width: 100%;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-item-actions label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-right: 0;
        width: 100%;
    }

    .admin-user-item-actions .admin-add-gk-checkbox {
        margin-right: 3px;
        margin-left: auto;
    }

    .admin-user-item-actions .admin-add-button {
        width: 100%;
        padding: 10px;
        margin-left: 0;
    }

    /* AJUSTE PARA BOTÕES DE EDIÇÃO FINANCEIRA EM MOBILE */
    .financial-table .col-actions {
        display: flex;
        flex-direction: column;
        /* Empilha botões no mobile */
        justify-content: center;
        align-items: stretch;
        /* Estica para ocupar espaço */
        gap: 5px;
        width: auto;
        /* Deixa o tamanho ser definido pelo conteúdo */
    }

    .financial-table .action-button-small {
        margin: 0;
        /* Remove margem lateral */
    }
}

@media (max-width: 420px) {
    .game-info-header h1 {
        font-size: 1.15em;
    }

    .tab-button {
        font-size: 0.8em;
        padding: 8px 6px;
    }

    .list-section h2,
    .financial-table th {
        font-size: 1.05em;
    }

    .player-name-display,
    .admin-user-info strong {
        font-size: 0.95em;
    }

    .list-section li .remove-button,
    .admin-user-item-actions .admin-add-button,
    .financial-table .action-button-small {
        font-size: 0.9em;
        padding: 9px 10px;
    }

    .info-section p,
    .external-links p {
        font-size: 0.8em;
    }

    .tab-content .controls label,
    #confirm-presence-button {
        font-size: 0.9em;
    }

    .guest-controls h4 {
        font-size: 1.0em;
    }
}

.welcome-container {
    max-width: 600px;
    text-align: center;
}
.welcome-container .title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.welcome-container .subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}
.welcome-container .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.welcome-container .btn-large {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}
.user-info-text {
    color: #333;
}
.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #007bff;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}