/* ================================
   BASE GERAL
==================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
}


/* ================================
   PUBLIC index.php
==================================*/

.publico section {
    padding: 4rem 0;
    text-align: center;
}

.hero {
    
    color: white;
    padding: 6rem 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .btn {
    background-color: #d32f2f;
    padding: 0.75rem 2rem;
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background-color: #b71c1c;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.grid-galeria img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.linha-do-tempo {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.linha-do-tempo li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.linha-do-tempo li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #d32f2f;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
    text-align: left;
}

form input, form textarea {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button.btn {
    background: #222;
    color: #fff;
    cursor: pointer;
}


/* ================================
   LOGIN - Estilo do formulário
==================================*/
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #000000;
}

.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="date"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background-color: #000;
}

.login-container p {
    margin-top: 15px;
    font-size: 0.9rem;
}

.login-container a {
    color: #000;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

/* ================================
   PAINEL DO ALUNO
==================================*/
.painel-aluno {
    max-width: 100%;
    /*margin: 40px auto;*/
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.painel-aluno h2 {
    margin-top: 5px;
    margin-bottom: 20px;
    color: #000;
}

.painel-aluno ul {
    list-style: none;
    padding: 0;
}

.painel-aluno ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.painel-aluno ul li strong {
    color: #555;
}

.painel-aluno form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.painel-aluno form label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

.painel-aluno form input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.painel-aluno form input[disabled] {
    background-color: #f0f0f0;
}

.painel-aluno form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.painel-aluno form button:hover {
    background-color: #000;
}


.lista-dados-aluno {
    list-style: none;
    padding-left: 0;
}

.lista-dados-aluno li {
    padding: 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lista-dados-aluno i {
    color: #3f51b5;
    font-size: 1.1rem;
    min-width: 20px;
}

.progresso-faixa {
    margin-top: 0px;
    margin-bottom: 15px;
}

.barra-externa {
    width: 100%;
    height: 16px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.barra-interna {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.4s ease;
}


.btn-edit {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20PX;
    padding: 10px 18px;
    background-color: #000;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.btn-edit:hover {
    background-color: #000;
}

#status-presenca {
        margin-top: -18px;
        padding: 10px;
        font-weight: bold;
        border-radius: 5px;
        display: none;
    }

    #status-presenca.sucesso {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    #status-presenca.erro {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

/* ================================
   HEADER - Cabeçalho Responsivo
==================================*/
.main-header {
    background-color: #1c1c1c;
    color: #fff;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-header h1 {
    font-size: 24px;
    margin: 0;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Ícone do Menu Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
}

/* RESPONSIVO: Menu Mobile */
@media (max-width: 1101px) {
    .hamburger {
        display: flex;
    }

    .main-header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2c2c2c;
        margin-top: 15px;
    }

    .main-header nav ul.active {
        display: flex;
    }

    .main-header nav ul li {
        padding: 10px;
        border-top: 1px solid #444;
    }
}

/* ================================
   FOOTER
==================================*/
.main-footer {
    background-color: #f2f2f2;
    color: #333;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    bottom: 0;
    position: relative;
}

/* ================================
   CONTAINER PÁGINAS
==================================*/
.container {
    max-width: 100%;
    /*margin: 0 auto;*/
    padding: 0 1rem;
}

.main-content {
    /*padding: 1.5rem;*/
    max-width: 100%;
    margin: 0 auto;
}


/* ==================================
   Estilo: Marcar Presença (Sensei)
================================== */

.presenca-container {
    background: #fff;
    padding: 30px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
}

.titulo-presenca {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 20px;
}

.input-data {
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.fieldset-treino,
.fieldset-alunos {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
}

legend {
    font-weight: bold;
    color: #444;
}

.label-radio,
.label-checkbox {
    display: block;
    margin: 6px 0;
    font-size: 0.95rem;
    cursor: pointer;
}

.label-checkbox-nome{
    display: block;
    margin: -2px 0;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #333;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}


/* ================================
   EXAMES GERENCIAR
==================================*/
.exames-gerenciar .container {
    max-width: 100%;
    margin: 5px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.exames-gerenciar h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.exames-gerenciar table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 15px;
}

.exames-gerenciar table thead {
    background-color: #f5f5f5;
}

.exames-gerenciar table th,
.exames-gerenciar table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.exames-gerenciar table tr:hover {
    background-color: #f9f9f9;
}

.exames-gerenciar button {
    padding: 8px 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.exames-gerenciar button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.exames-gerenciar button:hover:not(:disabled) {
    background-color: #000;
}

.exames-gerenciar .status-apto {
    color: green;
    font-weight: bold;
}

.exames-gerenciar .status-nao-apto {
    color: red;
    font-weight: bold;
}

.exames-gerenciar .tabela-responsiva {
    width: 100%;
    overflow-x: auto;
}

.exames-gerenciar .tabela-exames {
    min-width: 900px; /* valor mínimo que mantém legibilidade */
}

/* Esconde colunas em telas menores que 768px (tablets e celulares) 
@media (max-width: 768px) {
    .col-inicio,
    .col-meses,
    .col-tempo,
    .col-treinos {
        display: none;
    }

    .tabela-exames th,
    .tabela-exames td {
        font-size: 13px;
        padding: 6px 4px;
    }
}*/

.linha-apto {
    background-color: #d4edda; /* verde claro */
}





/* Título */


/* Fieldsets */
fieldset {
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    color: #000;
    padding: 0 10px;
}

/* Checkbox layout */
fieldset label {
    display: inline-block;
    margin: 8px 10px;
    font-size: 16px;
    cursor: pointer;
}



/* Botão */
button[type="submit"] {
    display: block;
    margin: 0 auto;
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsividade */
@media (max-width: 600px) {
    fieldset label {
        display: block;
        margin: 6px 0;
    }

    .container {
        padding: 0 1rem; /* espaçamento lateral */
    }
}

.form-group-inline-2{
    display: flex;
    align-items: center;
    gap: 5px; /* Espaço entre label e select */
    margin-bottom: 5px;
    margin-top: 20px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 5px; /* Espaço entre label e select */
    margin-bottom: 15px;
    
}

.form-group-inline label {
    white-space: nowrap; /* Evita quebra de linha */
    font-weight: bold;
}

.form-group-inline select {
    flex: 1;
}


/* ================================
   MODAL - Cabeçalho Responsivo
==================================*/

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-aprovar {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-aprovar form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-aprovar label {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-aprovar input[type="number"] {
    width: 70px;
    padding: 8px 10px;
    font-size: 1rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.modal-aprovar input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6; /* azul */
}

.modal-aprovar button {
    padding: 10px 15px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-aprovar button[type="submit"]:first-child {
    background-color: #10b981; /* verde */
    color: white;
}

.modal-aprovar button[type="submit"]:first-child:hover {
    background-color: #059669;
}

.modal-aprovar button[type="submit"]:nth-child(2) {
    background-color: #ef4444; /* vermelho */
    color: white;
}

.modal-aprovar button[type="submit"]:nth-child(2):hover {
    background-color: #b91c1c;
}

.modal-aprovar button[type="button"] {
    background-color: #6b7280; /* cinza */
    color: white;
}

.modal-aprovar button[type="button"]:hover {
    background-color: #4b5563;
}

.modal-aprovar div {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
    .modal-aprovar {
        width: 95%;
        padding: 20px;
        font-size: 0.9rem;
    }

    .modal-aprovar input[type="number"] {
        width: 60px;
        font-size: 0.95rem;
    }

    .modal-aprovar button {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .modal-aprovar div {
        flex-direction: column;
        gap: 10px;
    }
}

.sucesso {
    color: green;
}

.erro {
    color: red;
}


