:root {
  --bg: #0b0f12;
  --panel: #0f1417;
  --muted: #9aa6ae;
  --accent: #25d07f;
  --accent-2: #1fb6ff;
  --text: #e6eef3;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --danger: #ff6b6b;
  --danger-dark: #ff5252;
}

/* Modo Claro - quando o utilizador ativa o modo claro, estas cores substituem as de cima */
.light-mode {
  --bg: #f0f2f5 !important;
  --panel: #ffffff !important;
  --muted: #4a5568 !important;
  --accent: #0b5e4a !important;
  --accent-2: #1a4c8c !important;
  --text: #1e293b !important;
  --glass: rgba(0,0,0,0.02) !important;
  --danger: #ff6b6b !important;
  --danger-dark: #ff5252 !important;
}

/* Aplicar as variáveis aos elementos */
* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  height: 100%; 
  font-family: Inter, sans-serif; 
  color: var(--text); 
  background: var(--bg); 
  transition: background-color 0.3s ease, color 0.3s ease; 
}

/* Garantir que as caixas e painéis usam as variáveis atualizadas */
.sidebar,
.card,
.modal,
.notification,
.ps-card,
.feature-detailed-item,
.timeline-content,
.developer-section,
.setting-row:hover,
.exercise-card,
.history-item:hover,
.profile-section {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Layout principal */
.app { 
  display: flex; 
  height: 100vh; 
  overflow: hidden; 
}

.sidebar {
  width: 260px; 
  background: var(--panel); 
  padding: 22px; 
  display: flex; 
  flex-direction: column; 
  box-shadow: 8px 0 30px rgba(2,8,12,0.1);
  position: relative;
  z-index: 10;
  transition: var(--transition);
  height: 100vh;
  overflow-y: auto;
}

.brand { 
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 25px; 
  padding: 5px 0;
}

.logo { 
  width: 100px; 
  height: 90px; 
  background: url('imagens/logo.png') center/contain no-repeat;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav button {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav button:hover::before {
  transform: translateX(0);
}

.nav button:hover {
  background: rgba(0,0,0,0.03);
}

.nav button.active::before {
  transform: translateX(0);
}

.nav button i { 
  width: 20px; 
  text-align: center; 
}

.sidebar .spacer {
  flex: 1;
}

.content {
  flex: 1;
  padding: 5px;
  overflow: auto;
  position: relative;
  height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  padding: 5px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(2,8,12,0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 12px 25px rgba(2,8,12,0.15); 
}

.big-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.big-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
}

.big-btn:hover::after { 
  left: 100%; 
}

.big-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(37, 208, 127, 0.4); 
}

.small {
  font-size: 12px;
  color: var(--muted);
}

button {
  font-family: inherit;
}

/* Top bar login */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 20px;
  z-index: 20;
}

.login-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 208, 127, 0.2);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 208, 127, 0.4);
}

.login-btn i {
  font-size: 14px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  transform: translateY(-2px);
  border-color: #ff6b6b;
}

.logout-btn i {
  font-size: 14px;
}

/* Mensagem de boas-vindas */
.welcome-message {
  background: rgba(37, 208, 127, 0.15);
  border: 1px solid rgba(37, 208, 127, 0.3);
  border-radius: 40px;
  padding: 12px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.4s ease;
  font-weight: 500;
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.welcome-message i {
  color: var(--accent);
  font-size: 20px;
}

.welcome-message strong {
  color: var(--accent);
  font-weight: 700;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* Modal login */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.modal {
  background: var(--panel);
  padding: 28px;
  border-radius: 14px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal input {
  padding: 12px;
  border-radius: 8px;
  border: 0;
  background: rgba(0,0,0,0.05);
  color: var(--text);
  transition: var(--transition);
}

.modal input:focus {
  outline: none;
  background: rgba(0,0,0,0.08);
  box-shadow: 0 0 0 2px var(--accent);
}

.modal button {
  margin-top: 8px;
}

.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: -8px;
  display: none;
}

/* Página Início */
#inicio {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 400px;
}

.welcome-content {
  position: relative;
  z-index: 3;
}

.welcome-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-content p {
  max-width: 500px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: rgba(0,0,0,0.03);
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(0,0,0,0.05);
  border-color: rgba(37, 208, 127, 0.2);
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-content {
  padding: 20px 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#pausas, #exercicios, #historico, #definicoes {
  position: relative;
  overflow: hidden;
  padding: 15px;
  min-height: 400px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  border: 2px solid transparent;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.settings-option {
  background: rgba(0,0,0,0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.settings-option:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(37, 208, 127, 0.2);
  transform: translateY(-2px);
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.option-label i {
  color: var(--accent);
  width: 20px;
  font-size: 1.1rem;
}

.notification-highlight {
  animation: softPulse 2s infinite ease-in-out;
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 20px rgba(37, 208, 127, 0.5) !important;
  background: rgba(37, 208, 127, 0.1) !important;
  position: relative;
  z-index: 10;
}

@keyframes softPulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Estilos específicos para a página Acerca de */
.about-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.about-section:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(37, 208, 127, 0.2);
  transform: translateY(-2px);
}

.about-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

.about-section p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.about-section ul {
  margin: 0;
  padding-left: 20px;
}

.about-section li {
  margin-bottom: 10px;
  color: var(--muted);
}

.about-section li strong {
  color: var(--text);
}

#acerca {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 400px;
}


/* Sistema de autenticação */
.auth-modal {
  width: 380px;
  max-width: 90vw;
  padding: 30px !important;
  position: relative;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-tabs {
  display: flex;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 30px;
  gap: 4px;
}

.modal-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  background: transparent;
  color: var(--muted);
}

.modal-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 208, 127, 0.3);
}

.modal-tab.inactive:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.form-group label i {
  color: var(--accent);
  width: 16px;
}

.form-group input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
  margin-top: 2px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.05);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.auth-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 5px;
}

.auth-btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
}

.auth-btn.success {
  background: linear-gradient(90deg, var(--accent), #2ecc71);
  color: white;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 208, 127, 0.3);
}

.auth-btn:active {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}

.close-modal-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 5px;
  display: none;
  animation: fadeIn 0.3s ease;
  line-height: 1.5;
}

/* Notificações */
.notification {
  position: fixed;
  top: 25px;
  right: 25px;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  color: var(--text);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  border-left-color: var(--accent);
}

.notification.error {
  border-left-color: #ff6b6b;
}

.notification.info {
  border-left-color: var(--accent-2);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.notification-content i {
  font-size: 18px;
}

.notification.success .notification-content i {
  color: var(--accent);
}

.notification.error .notification-content i {
  color: #ff6b6b;
}

.notification.info .notification-content i {
  color: var(--accent-2);
}

.close-notification {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
  margin-left: 10px;
}

.close-notification:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .auth-modal {
    width: 90vw;
    padding: 25px 20px !important;
  }
  
  .notification {
    min-width: 280px;
    max-width: 90vw;
    right: 15px;
    left: 15px;
  }
  
  .modal-header h3 {
    font-size: 1.4rem;
  }
  
  .modal-tab {
    padding: 12px 10px;
    font-size: 13px;
  }
  
  .form-group input {
    padding: 14px 12px;
  }
  
  .auth-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .auth-form {
    gap: 22px;
  }
}

.notification-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}

.notification-line {
  font-size: 14px;
}

.notification-line:first-child {
  font-weight: 600;
}

.notification-line:last-child {
  color: var(--muted);
  font-size: 13px;
}

.notification {
  min-height: 80px;
  align-items: center;
  padding: 16px 20px;
}

/* Menu de Produtividade */
.nav-section {
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.03);
}

.nav-section-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  background: rgba(0,0,0,0.02);
}

.nav-section-header:hover {
  background: rgba(0,0,0,0.05);
}

.nav-section-header i:first-child {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.nav-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.01);
}

.nav-submenu button {
  padding-left: 46px !important;
  font-size: 14px;
  background: transparent !important;
}

.nav-submenu button:hover {
  background: rgba(0,0,0,0.03) !important;
}

.nav-submenu button.active {
  background: rgba(37, 208, 127, 0.1) !important;
}

/* Página de Pausas */
.timer-container {
  text-align: center;
  padding: 20px;
}

.time-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  border: 8px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.5s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#timer {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.5s ease;
}

.timer-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  transition: color 0.5s ease;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.timer-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.start-btn {
  background: var(--accent);
  color: white;
}

.pause-btn {
  background: var(--accent-2);
  color: white;
}

.reset-btn {
  background: linear-gradient(90deg, var(--danger), var(--danger-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.break-settings {
  background: rgba(0,0,0,0.03);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: left;
}

.break-settings h4 {
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-row:hover {
  background: rgba(37, 208, 127, 0.05);
  transform: translateX(5px);
}

.setting-row label {
  min-width: 100px;
  font-weight: 600;
  transition: color 0.25s ease;
  cursor: default;
}

.setting-row:hover label {
  color: var(--accent);
}

.setting-row label i {
  transition: transform 0.25s ease;
}

.setting-row:hover label i {
  transform: scale(1.1);
}

.setting-row input {
  width: 60px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: var(--text);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-row input:hover {
  border-color: var(--accent);
  background: rgba(37, 208, 127, 0.15);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.1);
}

.setting-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(37, 208, 127, 0.2);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.2);
  color: var(--text);
}

.unit-select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.unit-select:hover {
  border-color: var(--accent);
  background: rgba(37, 208, 127, 0.15);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.1);
}

.unit-select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(37, 208, 127, 0.2);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.2);
  color: var(--text);
}

.unit-select option {
  background: var(--panel);
  color: var(--text);
  padding: 10px;
}

.save-settings-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
}

.save-settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 208, 127, 0.3);
}

/* Modo claro - inputs */
.light-mode .setting-row input,
.light-mode .unit-select {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}

.light-mode .setting-row input:hover,
.light-mode .unit-select:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 94, 74, 0.2);
}

.light-mode .setting-row input:focus,
.light-mode .unit-select:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 94, 74, 0.3);
  color: #1e293b;
}

.light-mode .unit-select option {
  background: #ffffff;
  color: #1e293b;
}

/* Página de Exercícios */
.subtitle {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 16px;
}

.exercise-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.05);
  color: var(--text);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
}

.filter-btn:hover:not(.active) {
  background: rgba(0,0,0,0.08);
  transform: translateY(-2px) scale(1.05);
}

.filter-btn:active {
  transform: translateY(0) scale(0.98);
}

.exercises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.exercise-card {
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.exercise-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: rgba(37, 208, 127, 0.3);
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.exercise-category {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.exercise-duration {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exercise-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exercise-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.exercise-image:hover {
  opacity: 0.95;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.exercise-image:hover .image-overlay i {
  transform: scale(1.2);
  color: var(--accent);
}

.exercise-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.exercise-image:hover .exercise-img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}

.exercise-image:hover .image-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 100%
  );
}

.image-overlay i {
  font-size: 36px;
  color: white;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.exercise-image:hover .image-overlay i {
  opacity: 1;
  transform: scale(1.1);
}

.exercise-info h4 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: var(--text);
}

.exercise-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: justify;
}

.exercise-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.detail-item i {
  color: var(--accent);
}

.view-exercise-btn {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(37, 208, 127, 0.3);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.view-exercise-btn:hover {
  background: rgba(37, 208, 127, 0.1);
  transform: translateY(-2px);
}

/* Modal de Exercícios */
.exercise-modal {
  width: 800px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: var(--panel);
  border-radius: 20px;
  padding: 30px;
}

.exercise-modal .close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.exercise-modal .close-modal-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.exercise-modal .close-modal-btn i {
  font-size: 16px;
}

.exercise-modal .modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 25px;
  margin-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.exercise-modal .modal-footer .secondary-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--muted);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.exercise-modal .modal-footer .secondary-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
}

.exercise-modal .modal-footer .big-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.exercise-modal .modal-footer .big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 208, 127, 0.3);
}

.light-mode .exercise-modal .close-modal-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

.light-mode .exercise-modal .close-modal-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.light-mode .exercise-modal .modal-footer .secondary-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  color: #666;
}

.light-mode .exercise-modal .modal-footer .secondary-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.exercise-modal-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin: 20px 0;
}

.modal-exercise-image {
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
  position: relative;
}

#modalExerciseImage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  font-size: 120px;
  color: white;
}

#modalExerciseImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal-instructions {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.instructions-section h4 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.step-number {
  background: var(--accent);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  color: var(--text);
  line-height: 1.6;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 10px 15px;
  background: rgba(37, 208, 127, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.benefit-item i {
  color: var(--accent);
}

.precautions {
  padding: 15px;
  background: rgba(255, 152, 0, 0.05);
  border-radius: 8px;
  color: var(--text);
  border-left: 3px solid #FF9800;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .exercise-modal-content {
    grid-template-columns: 1fr;
  }
  
  .modal-exercise-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .exercises-grid {
    grid-template-columns: 1fr;
  }
  
  .exercise-modal .modal-footer {
    flex-direction: column;
  }
  
  .exercise-modal .modal-footer button {
    width: 100%;
    justify-content: center;
  }
  
  .exercise-modal .close-modal-btn {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .exercise-filters {
    justify-content: center;
  }
  
  .exercise-details {
    flex-direction: column;
    gap: 10px;
  }
  
  .exercise-modal {
    padding: 20px !important;
  }
}

/* Perfil do Utilizador */
.profile-section {
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(37, 208, 127, 0.2);
  animation: slideDown 0.4s ease;
}

.profile-avatar-container {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(37, 208, 127, 0.3);
  transition: transform 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-avatar i {
  font-size: 48px;
  color: white;
  opacity: 0.9;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.avatar-btn.secondary {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.avatar-btn.secondary:hover {
  background: rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
}

.avatar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 208, 127, 0.3);
}

.profile-field {
  margin-top: 20px;
}

.profile-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.profile-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-field input {
  flex: 1;
  min-width: 250px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
}

.profile-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 208, 127, 0.2);
}

.save-name-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.save-name-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 208, 127, 0.3);
}

.profile-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 30px 0 20px 0;
}

#userStatus {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 208, 127, 0.1);
  padding: 6px 12px 6px 6px;
  border-radius: 40px;
  border: 1px solid rgba(37, 208, 127, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.user-info:hover {
  background: rgba(37, 208, 127, 0.15);
  transform: translateY(-2px);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid white;
}

.user-avatar-small i {
  font-size: 16px;
  color: white;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name-small {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .profile-avatar-container {
    justify-content: center;
  }
  
  .profile-field-row {
    flex-direction: column;
  }
  
  .profile-field input {
    width: 100%;
  }
  
  .save-name-btn {
    width: 100%;
    justify-content: center;
  }
  
  .user-info {
    padding: 4px 8px 4px 4px;
  }
  
  .user-name-small {
    font-size: 13px;
  }
}

/* Séries */
.series-config {
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(37,208,127,0.2);
  animation: slideDown 0.4s ease;
}

.series-progress {
  background: rgba(37,208,127,0.1);
  padding: 10px 25px;
  border-radius: 40px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(37,208,127,0.3);
  font-size: 16px;
}

.series-progress i {
  color: var(--accent);
  font-size: 18px;
}

.reset-series-btn {
  background: linear-gradient(90deg, var(--danger), var(--danger-dark));
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.reset-series-btn:hover {
  background: linear-gradient(90deg, var(--danger-dark), var(--danger));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

#seriesCount {
  width: 80px;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

#seriesCount:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,208,127,0.1);
}

#seriesCount:hover {
  border-color: var(--accent);
  background: rgba(37,208,127,0.05);
}

@keyframes celebration {
  0% { transform: scale(1); border-color: var(--accent); }
  50% { transform: scale(1.1); border-color: #ffd700; box-shadow: 0 0 30px rgba(255,215,0,0.5); }
  100% { transform: scale(1); border-color: var(--accent); }
}

.time-circle.complete {
  animation: celebration 0.8s ease;
}

/* Aviso de notificações */
.notification-warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  animation: slideDown 0.4s ease;
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.warning-content i {
  font-size: 24px;
  color: #ffc107;
}

.warning-content strong {
  font-size: 16px;
  color: var(--text);
}

.warning-content p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: var(--muted);
}

.warning-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.warning-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 208, 127, 0.3);
}

@media (max-width: 600px) {
  .notification-warning {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .warning-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CORREÇÕES APENAS PARA TELEMÓVEL (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .logo {
    width: 100px;
    height: 88px;
  }
  
  /* ===== MENU MOBILE - AJUSTADO ===== */
  .nav {
    flex-flow: row nowrap !important;
    overflow-x: auto;
    padding: 4px 0px;
    gap: 1px !important;
  }
  
  .nav button {
    white-space: nowrap;
    font-size: 9px !important;
    padding: 5px 3px !important;
    gap: 2px !important;
  }
  
  .nav button i {
    font-size: 10px !important;
    width: 11px !important;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-content h2 {
    font-size: 2rem;
  }
  
  .notification-highlight::after {
    right: 10px;
    font-size: 10px;
    padding: 3px 8px;
    top: -25px;
  }

  /* ===== PÁGINA INÍCIO - Botão centralizado ===== */
  .welcome-content .big-btn {
    display: inline-flex !important;
    margin: 20px 0 0 auto !important;
    justify-content: center !important;
  }
  
  /* ===== PÁGINA PAUSAS - Painel Configuração de Séries ===== */
  .series-config .series-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
  }
  
  .series-config .series-row > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  
  .series-config .series-row > div:first-child label {
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  
  .series-config .series-row > div:first-child input {
    width: 70px !important;
  }
  
  .series-progress {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .series-config .series-row > div:last-child {
    margin-left: 0 !important;
    width: auto !important;
  }
  
  .reset-series-btn {
    margin-left: 0 !important;
    width: auto !important;
    justify-content: center !important;
  }
  
  /* ===== PÁGINA EXERCÍCIOS - Centralizar cards ===== */
  .exercises-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    justify-items: center !important;
    width: 100% !important;
  }
  
  .exercise-card {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }
  
  .exercise-filters {
    display: flex !important;
    flex-flow: row nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 10px 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
  }
  
  .exercise-filters::-webkit-scrollbar {
    display: none !important;
  }
  
  .filter-btn {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
  }
  
  .exercise-card .exercise-content {
    align-items: center !important;
  }
  
  .exercise-card .exercise-info {
    text-align: center !important;
    align-items: center !important;
  }
  
  .exercise-card .exercise-description {
    text-align: center !important;
  }
  
  .exercise-card .exercise-details {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }
  
  .exercise-card .detail-item {
    flex-shrink: 0 !important;
  }
  
  .exercise-card .view-exercise-btn {
    justify-content: center !important;
  }
  
  /* Aumentar imagem do exercício */
  .exercise-card .exercise-image {
    height: 220px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* ===== PÁGINA ACERCA DE - Problema e Solução ===== */
  .problem-solution-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }
  
  .ps-card {
    width: 100% !important;
    padding: 24px 20px !important;
  }
  
  .ps-card p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    word-break: normal !important;
    hyphens: auto !important;
  }

  /* ===== PÁGINA ACERCA DE - Passos ===== */

  .timeline-content {
    width: 42% !important;
    background: rgba(0, 0, 0, 0.02);
    padding: 10px 10px 0 10px !important;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  
  /* ===== PÁGINA ACERCA DE - Desenvolvedor ===== */
  .developer-section {
    padding: 20px 16px !important;
    gap: 20px !important;
    display: block !important;
  }

  .feature-detailed-item{
    text-align: left !important;
  }

  .feature-detailed-item p {
    text-align: justify !important;
    hyphens: auto !important;
  }

  .feature-detailed-item h4 {
    font-size: 1.15rem !important;
  }
  
  .dev-avatar {
    width: 70px !important;
    height: 70px !important;
  }
  
  .dev-info h4 {
    font-size: 1.2rem !important;
  }
  
  .developer-section .dev-info p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
  }

  .timeline-content p{
    font-size: 0.9rem !important;
}
  
  /* ===== PÁGINA HISTÓRICO ===== */
  .history-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 16px !important;
    align-items: stretch !important;
  }
  
  .history-date {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: baseline !important;
    min-width: unset !important;
  }
  
  .history-date .day {
    font-size: 1rem !important;
  }
  
  .history-date .time {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
  }
  
  .history-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .history-details h4 {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }
  
  .history-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .history-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }
  
  .history-badge {
    align-self: flex-start !important;
    width: auto !important;
    padding: 4px 14px !important;
    font-size: 0.8rem !important;
  }
  .stat-card {
    padding: 0px 0px !important;
  }
  .stat-card h3{
    font-size: 1.5rem !important;
  }
  .stat-card p{
    font-size: 0.8rem !important;
  }
  .history-actions{
    padding-top: 30px !important;
    margin-bottom: 10px !important;
  }


}
