* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
}

.login-body {
    background: linear-gradient(135deg, #0a3d2a, #1a6d4a);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #0a3d2a;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
}

.login-box button {
    background: #1a6d4a;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    background: #0a3d2a;
    color: white;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: auto;
    z-index: 100;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.sidebar .logo-area {
    display: none;
}

.sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 5px 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.sidebar nav a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
    display: inline-block;
}

.sidebar nav a:hover, .sidebar nav a.ativo {
    background: #1a6d4a;
}

.main-content {
    padding: 15px;
    padding-bottom: 80px;
    flex: 1;
}

.top-bar {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar h2 {
    font-size: 18px;
    color: #0a3d2a;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #1a6d4a;
    text-align: center;
}

.card h3 {
    color: #0a3d2a;
    font-size: 13px;
    margin-bottom: 10px;
}

.card .numero {
    font-size: 28px;
    font-weight: bold;
    color: #1a6d4a;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

th {
    background: #0a3d2a;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

button, .btn {
    background: #1a6d4a;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    font-size: 13px;
    font-weight: 500;
}

.btn-whatsapp {
    background: #25D366;
    font-size: 11px;
    padding: 5px 10px;
}

.btn-editar {
    background: #ffc107;
    color: #333;
    font-size: 11px;
    padding: 5px 10px;
}

.btn-excluir {
    background: #dc3545;
    font-size: 11px;
    padding: 5px 10px;
}

.btn-ver {
    background: #17a2b8;
    font-size: 11px;
    padding: 5px 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input, .search-box select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.search-box button {
    padding: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1a6d4a;
    font-size: 14px;
}

.pagination .active {
    background: #1a6d4a;
    color: white;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info-card {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.info-card h4 {
    margin: 0;
    color: #1a6d4a;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #0a3d2a;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.badge-adulto { background: #1a6d4a; color: white; }
.badge-jovem { background: #ff9800; color: #333; }
.badge-mirim { background: #17a2b8; color: white; }

.btn-fechar-mes {
    background: #ff9800;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .dashboard-container {
        flex-direction: row;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: auto;
        width: 260px;
        height: 100vh;
        border-radius: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        overflow-y: auto;
    }
    
    .sidebar .logo-area {
        display: block;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .sidebar .logo-area img {
        max-width: 100%;
        max-height: 80px;
        margin-bottom: 10px;
    }
    
    .sidebar nav {
        display: block;
        overflow-x: visible;
        white-space: normal;
    }
    
    .sidebar nav a {
        display: block;
        margin: 8px 0;
        background: transparent;
        padding: 12px 15px;
    }
    
    .main-content {
        margin-left: 260px;
        padding: 20px;
        padding-bottom: 20px;
    }
    
    .cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .search-box {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-box input {
        flex: 2;
    }
    
    .search-box select {
        flex: 1;
    }
    
    .btn-fechar-mes {
        width: auto;
    }
}

@media (max-width: 480px) {
    .card .numero {
        font-size: 22px;
    }
    
    .card h3 {
        font-size: 11px;
    }
    
    th, td {
        font-size: 11px;
        padding: 8px 5px;
    }
    
    .top-bar h2 {
        font-size: 16px;
    }
    
    .login-box {
        padding: 25px 20px;
    }
    
    .login-box h2 {
        font-size: 20px;
    }
}
/* ===== AJUSTES DE TAMANHO - GUARDAS MIRINS ===== */

/* Tabela principal - aumenta tudo */
.table-container table {
    font-size: 15px;
}

.table-container table td {
    padding: 14px 10px;
}

.table-container table td strong {
    font-size: 16px;
}

/* Números de presenças - DESTAQUE */
.table-container table td:nth-child(5) {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.table-container table td:nth-child(6) {
    font-size: 20px;
    font-weight: bold;
    color: #ff9800;
}

.table-container table td:nth-child(7) {
    font-size: 20px;
    font-weight: bold;
    color: #dc3545;
}

/* Cabeçalho da tabela */
.table-container table thead th {
    font-size: 14px;
    padding: 15px 10px;
    background: #0a3d2a;
    color: white;
}

/* Coluna de ações - botões maiores */
.table-container table td:last-child .btn-editar,
.table-container table td:last-child .btn-excluir,
.table-container table td:last-child .btn-whatsapp,
.table-container table td:last-child .btn-ver {
    font-size: 13px !important;
    padding: 6px 12px !important;
}

/* Ranking - Tamanhos maiores */
#ranking h2 {
    font-size: 26px;
    color: #0a3d2a;
}

#ranking table td {
    font-size: 16px;
    padding: 12px 15px;
}

#ranking table td:first-child { /* Posição */
    font-size: 20px;
    font-weight: bold;
    color: #1a6d4a;
}

#ranking table td:last-child { /* Presenças */
    font-size: 22px !important;
    font-weight: bold;
    color: #28a745;
}

#ranking table td:nth-child(2) { /* Nome */
    font-size: 18px;
    font-weight: 500;
}

/* Info card - total de mirins */
.info-card h4 {
    font-size: 20px;
}

.info-card h4 strong {
    font-size: 26px;
    color: #1a6d4a;
}

/* Números dos cards no dashboard */
.cards .card .numero {
    font-size: 40px !important;
    font-weight: bold;
}

.cards .card h3 {
    font-size: 16px;
}

/* Paginação - números maiores */
.pagination a, .pagination span {
    font-size: 16px;
    padding: 10px 18px;
}

/* Modal - edição */
.modal-content h3 {
    font-size: 22px;
}

.modal-content .form-group label {
    font-size: 15px;
}

.modal-content .form-control {
    font-size: 16px;
    padding: 10px 12px;
}