/* GERAL E RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    background-color: #f7f7f7; /* Fundo cinza claro */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #f44336; /* Cor da marca para links */
}

/* --- HEADERS E NAVEGAÇÃO --- */
header {
    background-color: #222;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #f44336; /* Destaque na logo */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    padding: 5px 10px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #f44336;
}

/* --- SEÇÃO HERO (INDEX.HTML) --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/1200/600') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

#hero h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #ff9800;
}

/* --- BOTÕES (CTAS) --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button.primary-button {
    background-color: #f44336; /* Vermelho/Coral */
    color: white;
}

.cta-button.primary-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

.cta-button.secondary-cta {
    background-color: #1a73e8; /* Azul */
    color: white;
    padding: 10px 20px;
}

.cta-button.large-button {
    font-size: 1.2em;
    padding: 15px 40px;
}

/* --- SEÇÕES PADRÃO --- */
.padded-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #f44336;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- GRID DE RECURSOS --- */
.feature-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.feature-card h3 {
    color: #1a73e8;
    margin-bottom: 10px;
}

/* --- FORMULÁRIO DE CADASTRO --- */
.registration-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.registration-form input, .registration-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.registration-form textarea {
    resize: vertical;
}


/* ================================================= */
/* --- ESTILOS DA ÁREA DE MEMBROS E ADMIN (DASHBOARDS) --- */
/* ================================================= */

.dashboard-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.dashboard-grid, .stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Cards do Cliente */
.dashboard-card {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
    background-color: white;
}
.dashboard-card.primary { border-left: 5px solid #f44336; } /* Treino */
.dashboard-card.secondary { border-left: 5px solid #ff9800; } /* Indicação */
.dashboard-card.tertiary { border-left: 5px solid #4caf50; } /* Saldo */

.dashboard-card h3 { color: #222; margin-top: 0; }
.balance-value { font-size: 2.5em; font-weight: bold; color: #4caf50; margin: 10px 0; display: block; }

/* Link de Indicação (Input) */
.dashboard-card input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
    cursor: copy;
    background-color: #eee;
}
.copy-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

/* Cards de Estatísticas Admin */
.stat-card {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #f44336;
}
.stat-value { font-size: 2em; font-weight: bold; margin: 5px 0 0; }
.stat-success { color: #4caf50; } /* Ativos */
.stat-alert { color: #ff9800; } /* Pendentes */
.stat-commission { color: #1a73e8; } /* Comissões */

/* --- TABELAS --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}
.data-table th, .data-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}
.data-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    color: #555;
}
.td-value { font-weight: bold; color: #4caf50; }
.action-button {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.action-button.approve { background-color: #4caf50; }


/* --- PÁGINA DE TREINO (CLIENT) --- */
.exercise-list {
    padding-left: 0;
}
.exercise-item {
    list-style-type: none;
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.exercise-item h3 { color: #f44336; margin-top: 0; }

.media-area {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    align-items: center;
}
.exercise-photo {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #ccc; /* Placeholder */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* CRONÔMETRO */
.timer-box {
    text-align: center;
    padding: 20px;
    border: 2px dashed #1a73e8;
    border-radius: 8px;
    flex-grow: 1;
}
.timer-box h4 {
    font-size: 3.5em;
    color: #1a73e8;
    margin: 5px 0;
    font-weight: 700;
}
.timer-play-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}
.timer-play-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* --- FOOTER --- */
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: white;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5em;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 10px;
    }
    header nav ul {
        flex-direction: column;
    }
    header nav ul li {
        margin: 5px 0;
    }

    .dashboard-grid, .stats-grid {
        flex-direction: column;
    }
    .media-area {
        flex-direction: column;
        align-items: flex-start;
    }
    .exercise-photo {
        width: 100%;
        height: auto;
    }
    .timer-box {
        width: 100%;
        margin-top: 20px;
    }
}