* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #243b53;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

#tituloApp {
    font-size: 2.5rem;
    font-weight: 700;
}

.container {
    width: 90%;
    margin: 20px auto;
    max-width: 1200px;
}

.intro {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro h2 {
    font-size: 2rem;
    color: #243b53;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1rem;
    color: #555;
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.actions button {
    background-color: #243b53;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 200px;
}

.actions button:hover {
    background-color: #1d2e40;
}

.actions button:focus {
    outline: none;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #243b53; 
    color: white; 
    width: 100%;
    font-size: 0.9rem; 
    margin-top: 20px; 
}

input[type="text"], input[type="number"], input[type="select"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="select"]:focus {
    border-color: #243b53;
    outline: none;
}

#formAdicionarTreino {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#formAdicionarTreino h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #243b53;
}

#formAdicionarTreino label {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

#formAdicionarTreino button {
    background-color: #243b53;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#formAdicionarTreino button:hover {
    background-color: #1d2e40;
}

#btnAdicionarExercicio {
    background-color: #243b53;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#btnAdicionarExercicio:hover {
    background-color: #1d2e40;
}

.lista-exercicios {
    list-style-type: none;
    margin-top: 20px;
}

.lista-exercicios li {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.lista-exercicios li span {
    display: block;
    font-size: 1.1rem;
    color: #333;
}

@font-face {
    font-family: 'MinhaFonte';
    src: url('minhafonte.woff2') format('woff2');
    font-display: swap;
}


/* Estilo para as notificações */
.conquista-notificacao {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745; /* Cor de sucesso */
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease-out;
}

.conquista-notificacao .conquista-icone {
    font-size: 30px;
    margin-right: 15px;
}

.conquista-notificacao .conquista-texto {
    flex-grow: 1;
}

.conquista-notificacao button.fechar-notificacao {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Animação para o slide-in */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para os cartões de conquistas */
.conquista-card {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
}

.conquista-card .conquista-icone {
    font-size: 40px;
    margin-right: 20px;
}

.conquista-card .conquista-info {
    flex-grow: 1;
}

.conquista-card.conquistado {
    background-color: #28a745;
    color: white;
}

.conquista-card.bloqueado {
    background-color: #f0f0f0;
    color: #aaa;
}

.conquista-card:hover {
    transform: translateY(-5px);
}

/* Ajustes para o layout das conquistas */
.conquistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}




@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .intro h2 {
        font-size: 1.8rem;
    }

    .actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .actions button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.2rem;
    }

    #tituloApp {
        font-size: 2rem;
    }

    #formAdicionarTreino {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #tituloApp {
        font-size: 1.5rem;
    }
}

#cardsTreinos .card {
    background-color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cardsTreinos .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

#cardsTreinos .card-header {
    background-color: #243b53; 
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

#cardsTreinos .list-group-item {
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
}

:root {
    --primary-color: #243b53; 
    --primary-dark: #1d2e40; 
    --secondary-color: #17a2b8;
    --light-bg: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 300px; 
    height: 250px; 
    object-fit: cover; 
    margin-right: 30px; 
}


[data-theme="dark"] {
    --primary-color: #2dbd4e;
    --primary-dark: #25a33e;
    --secondary-color: #20b8d0;
    --light-bg: #222222;
    --card-bg: #333333;
    --text-color: #f0f0f0;
    --border-color: #444444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    flex: 1;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-container, 
.progresso-container, 
.recordes-container {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid #0275d8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0275d8;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #555;
}
