/* ===============================
   Reset e base
   =============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f5f2ed; /* fundo branco */
    color: #111; /* texto escuro */
    padding: 20px;
}
a {
    margin-right: 5px;
}
h2#timer-display {
    font-size: 55px;
}
.LogoTop {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.LogoBottom {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
h1#exercise-title {
    background: #f7f7f7;
    color: #111;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 30px;
    margin: 0;
    position: sticky;
    top: 0;
}
/* ===============================
   Header e filtros
   =============================== */
header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

header input,
header select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #111;
    border-radius: 5px;
    background: #f7f7f7;
    color: #111;
}

header input::placeholder {
    color: #555;
}

/* ===============================
   Títulos
   =============================== */
h1 {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #111;
}

h2 {
    color: #111;
    margin-bottom: 10px;
    font-size: 1.5rem;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
}

/* ===============================
   Categorias e lista de exercícios
   =============================== */
.category {
    margin-bottom: 3px;
}

section.wod-highlight {
    margin-bottom: 15px;
}

.exercise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex-direction: column;
}

.exercise-card {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.exercise-card:hover {
    transform: scale(1.05);
    background: #e0e0e0;
}

.exercise-card h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #111;
}

.exercise-card p {
    font-size: 0.95rem;
    color: #555;
}

.material-icons {
    margin-top: 5px;
    font-size: 1rem;
    color: #ffffff;
}

/* ===============================
   Slides dos exercícios
   =============================== */
.slide {
    display: none;
    background: #f7f7f7;
    color: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    font-size: 20px;
}

.buttonStyle{
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid #111;
    border-radius: 5px;
    background: #f7f7f7;
    color: #111;
    cursor: pointer;
    transition: 0.2s;
}

.slide.active {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.slide h2 {
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
    font-size: 25px;
}

ul {
    margin-left: 20px;
    margin-bottom: 10px;
    color: #555;
}

/* ===============================
   Navegação slides
   =============================== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.nav-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid #111;
    border-radius: 5px;
    background: #f7f7f7;
    color: #111;
    cursor: pointer;
    transition: 0.2s;
}

.nav-buttons button:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

li {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
    font-size: 1em;
    margin: 5px 0;
}

li.scoreline::before {
    content: "";
}

/* Loader fullscreen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* podes alterar para outra cor */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Logotipo com animação de opacidade */
#loader-logo {
    width: 150px; /* ajusta tamanho */
    animation: fadeInOut 1.5s infinite alternate;
}

/* Animação de fade-in/fade-out */
@keyframes fadeInOut {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Ajustes para ecrãs de telemóvel */
@media (max-width: 768px) {
    .slide {
        font-size: 15px;
    }

    .slide h2 {
        font-size: 20px;
    }
    h1#exercise-title {
        font-size: 20px;
    }
    h2#timer-display {
        font-size: 55px;
    }
    .exercise-card h3 {
        font-size: 15px;
    }
}
/* Estilos para ecrãs grandes (monitores/TV) */
@media (min-width: 1200px) {
    .slide {
        font-size: 28px;
    }

    .slide h2 {
        font-size: 36px;
    }

    h1#exercise-title {
        font-size: 40px;
    }

    h2#timer-display {
        font-size: 100px;
    }

    .exercise-card h3 {
        font-size: 28px;
    }
}

/* ===============================
   Caixa de Score / Formulários
   =============================== */
.score-box {
    padding: 20px;
    background: #f7f7f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}
.score-box:hover {
    transform: scale(1.01);
}

.score-box h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #ffffff;
}

.score-box input,
.score-box textarea,
.score-box select {
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-size: 1rem;
    transition: 0.2s;
}

.score-box input:focus,
.score-box textarea:focus,
.score-box select:focus {
    border-color: #000000;
    outline: none;
    background: #f0fbff;
    color: #111;
}

.score-box button {
    background: #353535;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    width: 100%;
    color: #ffffff;
}

.score-box button:hover {
    background: #009ec2;
    transform: scale(1.03);
}

/* ===============================
   Perfil do utilizador
   =============================== */
.profile-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: #f7f7f7;
    color: #111;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.profile-container h2 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #111;
}

.profile-container h3 {
    margin: 20px 0 10px;
    font-size: 1.3rem;
    border-bottom: 2px solid #00c3ff;
    display: inline-block;
    padding-bottom: 5px;
}

.profile-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.profile-container table th,
.profile-container table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.profile-container table th {
    background: #00c3ff;
    color: #fff;
    font-weight: bold;
}

.profile-container table tr:hover {
    background: #f0fbff;
    transition: 0.2s;
}

.logout {
    display: block;
    text-align: right;
    margin-top: 10px;
}

.logout a {
    color: #ff5555;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.logout a:hover {
    color: #c0392b;
}

.bottom-menu {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: #111;
display: flex;
justify-content: space-around;
padding: 10px 0;
box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
padding: 10px;
}
.bottom-menu button, .bottom-menu a button {
padding: 10px 15px;
border: none;
border-radius: 5px;
background: #353535 !important;
color: #000000;
font-size: 1.5rem;
cursor: pointer;
}
.bottom-menu button:hover, .bottom-menu a button:hover {
background: #a5a5a5;
}
#notificacoes-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.notificacao {
    background: #333;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s forwards;
}

.notificacao.sucesso {
    background: #28a745;
}
.notificacao.erro {
    background: #dc3545;
}
.notificacao.info {
    background: #007bff;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-icon {
  font-size: 1.8rem;
  user-select: none;
}

.progress-bar-container {
  flex: 1;
  height: 26px;
  background-color: #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc3545, #28a745);
  text-align: right;
  line-height: 26px;
  color: #fff;
  font-weight: 700;
  border-radius: 14px 0 0 14px;
  transition: width 0.5s ease-in-out;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 2px;
  font-size: 0.9rem;
  color: #fff;
}
