* {
  margin: 10px;
  padding: 2px;
  padding: 0;
  box-sizing: border-box;
}

/* html {
  background-image: -webkit-linear-gradient(to bottom, white 0%, #003057 100%);
  background-image: -moz-linear-gradient(to bottom, white 0%, #003057 100%);
  background-image: -o-linear-gradient(to bottom, white 0%, #003057 100%);
  background-image: linear-gradient(to bottom, white 0%, #003057 100%);
} */

/* body {
  font-family: Arial, sans-serif;
  margin: 15px auto;
  min-height: 1000px;
  padding: 2em;
  padding: 0;
  background-color: white;
  width: 100%;
} */

/* body {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  color: #222;
} */



body {
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  color: #222;
  z-index: 0;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pushup3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* Stronger now */
  z-index: -1;
}

body, p, td, th, input, select, textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  color: #222;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;

  background-color: rgba(255, 255, 255, 0.2); /* 20% opaque white */


  border: 2px solid #c6c5b9;
  border-radius: 25px;
  box-shadow: 5px 5px 0 0 #c6c5b9;
}


main {
  /* padding: 0%; */
  /* padding: 2em; */
  /* padding-right: 1em; */
  min-height: 1000px;
}

/* header {
  background-color: white;
  text-align: left;
} */

.header {
  background-color: #1a1a1a;
  color: white;
  padding: 10px 20px;
}

footer {
  padding: 10px 0;
  text-align: center;
  font-size: 0.9em;
  color: #22527b;
}

.logyourlift-logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
}


 h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 2rem;;
}

h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
}

h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  margin-left: 2rem;
  font-size: 1rem;;
} 

p {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

.copyright {
  margin-top: 8rem;
  height: 3rem;
  color: #22527b;
  /* color: rgb(56, 56, 155); */
}

.today {
  margin-top: 1rem;
  margin-bottom: 3rem;
  height: 3rem;
  /* color: rgb(56, 56, 155); */
  color: #22527b;
}
.welcome {
  width: 50%;
  margin-top: 1rem;
  margin-left: 1rem;
  margin-bottom: 8rem;
  height: 3rem;
  /* color: rgb(117, 28, 50); */
  color: maroon;
}

/* new menu */
.menu-container {
  width: 100%;
  background-color: #333;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #333;
}

/* Existing rules (unchanged) */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background-color: #22527b;
}

.menu > li {
  margin: 0;
}

.menu > li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 4px 10px;
  line-height: 1.2;
  font-size: 0.9rem;
}

/* Hover behavior (existing) */
.menu > li:hover {
  background-color: #b73338;
}

/* ✅ New rule: make highlight persist when active */
.menu > li a.active {
  background-color: #b73338;
  color: white; /* stay readable */
}

/* Optional: smooth transition for both hover and active */
.menu > li a {
  transition: background-color 0.25s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .menu > li {
    width: 100%;
  }

  .menu > li a {
    padding: 6px 12px;
    font-size: 1rem;
  }
}




.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* background-color: #444; */
  background-color: #888;
  list-style: none;
  margin: 0;
me  padding: 0;
  min-width: 150px;
  z-index: 1;
}

.submenu li a {
  display: block;
  padding: 5px;
  color: white;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #777;
}

.dropdown.active .submenu {
  display: block;
}

.dropdown .submenu {
  display: none;
}

.dropdown.active .submenu {
  display: block;
}

/* Styles from legacy pages */

.glyphicon {
  color: #b73338;
}

.glyphicon-chevron-right {
  color: #fff;
}

.glyphicon-chevron-up {
  color: #fff;
}

.glyphicon-chevron-down {
  color: #fff;
}

.glyphicon-minus-sign {
  color: #fff;
}

.glyphicon-sort {
  color: #fff;
}

textarea.form-control {
  height: 100%;
}



.btn-primary {
  color: #fff !important;
  background-color: #22527b !important;
  border: none;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}

.xxbtn-primary:hover {
  background-color: #1a3e5b !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #b73338;
  /* border-color: #b73338; */
}

.btn-primary-indented {
  color: #fff;
  background-color: #22527b;
  border-color: #2e6da4;
  line-height: 10px;
  margin-left: 1em;
}

.btn-primary-indented:hover {
  color: #fff;
  background-color: #8b4513;
}

.btn-success-indented {
  color: #fff;
  background-color: #33b7b2; /* your system’s green shade */
  border: none;
  line-height: 10px;
  margin-left: 1em;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-success-indented:hover {
  background-color: #2fa19e;
}

.btn-danger {
  color: #fff;
  background-color: #b73338;
  border-color: #b73338;
  line-height: 10px;
}

.btn-danger:hover {
  color: #fff;
  background-color: #28a745;
}

.btn-success {
  color: #fff;
  background-color: #33b7b2;
  border-color: #33b7b2;
  line-height: 10px;
}

.btn-info {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
  line-height: 10px;
}


.btn-emerald {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
  line-height: 10px;
}

.btn-emerald:hover {
  color: #fff;
  background-color: #4169e1;
}

.btn-royalblue {
  color: #fff;
  background-color: #4169e1;
  border-color: #4169e1;
  line-height: 10px;
}

.btn-royalblue:hover {
  color: #fff;
  background-color: #8b4513;
}

.btn-saddlebrown {
  color: #fff;
  background-color: #8b4513;
  border-color: #8b4513;
  line-height: 10px;
}

.btn-saddlebrown:hover {
  color: #fff;
  background-color: #4169e1;
}

.btn-cyan {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
  line-height: 10px;
}



.btn-xs,
.btn-group-xs > .btn {
  padding: 1px 5px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 3px;
}

div.figure {
  float: right;
  width: 210px;
  border: 1px;
  margin: 0.5em;
  padding: 0.5em;
}

div.figure p {
  text-align: center;
  font-style: italic;
  font-size: smaller;
  text-indent: 0;
}



.small_tb_input {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.65rem !important; /* override all others */
  width: 3em;
  height: 1.5em;
  padding: 3px 2px !important;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.small_tb_input_special {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  /* background-color:  #22527b; */
  /* background-color: #22527b; */
  color: #22527b;
  font-size: .8em;
  font-weight: 800;
  width: 2em;
  margin-bottom: 0.5em;
  height: 1.5em;
  /* font-color: #22527b; */
  border: 1px solid #22527b;
}

.small_tb_input_tempo {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: .8em;
  width: 1.5em;
  margin-bottom: 1em;
  height: 1.5em;
}

.small_tb_input_tempo_dark {
  background-color: #22527b;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: .8em;
  width: 2em;
  margin-bottom: 1em;
  height: 1.5em;
  border: 1px solid #fff;
}

.small_tb_input_dark {
  background-color: #22527b;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 2em;
  width: 3em;
  margin-bottom: 1em;
  height: 1.5em;
  border: 1px solid #fff;
}

.large_tb_input {
  /* background-color:  #22527b; */
  background-color: white;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: .8em;
  width: 30em;
  margin-bottom: 1em;
  height: 1.5em;
  border: 1px solid #22527b;
}

.float_right {
  float: right;
}

.history_text {
  font-size: 1em;
  /* line-height: 2; */
  /* color: #333; */
  /* background-color: #fff; */
}

/* .history_text {
  font-size: 1em;
  color: #22527b;
} */

.auth-icon a:hover {
  color: #0d6efd; /* Bootstrap primary blue */
}

.dd_col {
  width: 30em;
  margin-left: 2em;
}

.report-recent-sessions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.report-session {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fafafa;
  /* background: #75abd9; */
}

.report-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 1rem; */
  height: 0.5em;
}

.report-session-header h2 {
  margin: 0;
  /* font-size: 1.2rem; */
  font-size: 0.8em;
  font-weight: bold;
}

.report-edit-link {
  font-size: 0.8rem;
  color: #22527b;
  text-decoration: none;
}

.report-edit-link:hover {
  text-decoration: underline;
  color: #b73338;
}


/* ----------------------------- */

.report-exercise {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border-top: 1px dashed #ccc;
  font-size: 0.8em;
  padding: 4px 0;   /* tighter spacing */
  margin: 0;        /* remove bottom margin */
  gap: 6px;         /* reduced from 10px */
}

.report-exercise-seq {
  font-weight: bold;
  width: 20px;
  margin-top: 0;     /* aligns with exercise name */
  align-self: flex-start; /* ensures top alignment */
}


.report-exercise-name {
  flex: 2;
  min-width: 180px;
  word-break: break-word;
  white-space: normal;
  margin: 0;
  
}

.exercise-option {
  display: block;
  font-weight: normal;
  /* font-size: 0.95em; */
  margin-top: 0;
  margin-right: 5px;  /* tight top, no bottom */
  margin-bottom: 0;
  padding-left: 2px;  /* Aligns with exercise name's left edge */

  color: #444;
}

.report-exercise-weights {
  flex: 1.5;
  text-align: left;
  color: #444;
  margin: 0;
  padding-left: 10px;  /* bring closer to center */
}

/* ----------------------------- */
.date-wrapper {
  white-space: nowrap;
}

.chevron {
  cursor: pointer;
  margin: 0 0; /* 2px spacing for fine-tuned closeness */
  font-weight: bold;
  color: #22527b;
  user-select: none;
  font-size: 150%;
}

.chevron:hover {
  text-decoration: underline;
  color: #b73338;
}

.primary-background {
  background-color: #22527b;
}

/* New Development */
.exercise-row,
.exercise-header {
  display: flex;
  gap: 1px;
  /* margin-bottom: 4px; */
  font-size: 0.8rem;
  margin: 0;
}

.exercise-row .label,
.exercise-header .label {
  width: 80px;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin: 0;
}

.exercise-row .cell,
.exercise-header .cell {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  padding: 0;
  margin: 0;
}

.exercise-row input {
  width: 100%;
  padding: 0;
  text-align: center;
  font-size: 0.65rem; 

}

.units_data {
  font-size: 0.8em;
}

.units-header,
.units_row {
  font-size: 0.8em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.5;
}

.units_row .form-label {
  font-weight: 600;
}

/* Optional: apply same to children */
.units-header > div {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  margin-bottom: 0.25em;
}

.units_row > div {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  margin-bottom: 1em;
}

.units_row label {
  font-weight: 500;
  font-size: 0.8em;
  margin-bottom: 2px;
}

.exercise-block {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #f8f8f8;
}
.exercise-block-no-border {
  /* border: 1px solid #ccc;
  border-radius: 10px; */
  padding: 12px;
  margin-bottom: 12px;
  /* background-color: #f8f8f8; */
}

.input-sm {
  height: 32px;
  /* height: 24px; */
  font-size: 0.8rem;
  padding: 4px 8px;
  line-height: 1.2;
  margin-bottom: 0;
}

.form-tight .input-sm {
  margin-right: 6px;
}


input[type="text"].form-control {
  padding: 2px 4px;
  height: 28px;
  font-size: 0.8em;
}

.exercise-name-header {
  font-size: 1.2rem;
  /* background-color: #343a40; */
  background-color: #75abd9;

  color: white;
  text-align: center;
}

.exercise-category {
  font-weight: 300;
  color: #eeebeb;
}

.exercise-name {
  font-weight: bold;
  color: white;
}

.close {
  position: absolute;
  top: 6px;
  right: 12px;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
}

#addCategoryBtn {
  margin-bottom: 15px;
}

.sets-row {
  background-color: #33b7b2;
  color: #fff;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 4px 4px 0 0;
}

.sets-row .label {
  padding-left: 8px;
}

.exercise-table-grid {
  display: grid;
  grid-template-columns: 80px repeat(12, 1fr);
  gap: 4px;
  align-items: center;
  margin-top: 8px;
}

.exercise-table-grid .label {
  font-weight: 600;
  text-align: left;
  padding-left: 4px;
}

.exercise-table-grid .sets-header {
  background-color: #33b7b2;
  color: white;
  border-radius: 4px 4px 0 0;
  padding: 2px 4px;
}

.exercise-table-grid .header-cell {
  background-color: #33b7b2;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 2px 0;
}

.exercise-table-grid .cell input {
  width: 100%;
}

.exercise-header.sets-row {
  margin-bottom: 0.5rem; /* or adjust as you like */
  background-color: #2ea6a1;
}

.exercise-header.sets-row .cell:hover {
  background-color: #288f8b;
  cursor: pointer;
}

.sortable-row.moving-to-top {
  transition: transform 1s ease-out, opacity 1s ease-out;
  transform: translateY(-20px);
  opacity: 0.7;
}

.rename-cat-form .save-btn {
  background-color: #33b7b2;
  color: white;
  border: none;
}

.rename-cat-form .save-btn:hover {
  background-color: #2aa6a2;
}

.rename-cat-form .cancel-btn {
  background-color: #22527b;
  color: white;
  border: none;
}

.rename-cat-form .cancel-btn:hover {
  background-color: #1b3e5b;
}
.dismissable_instructions, .dashboard {
  border: 1px solid #e5e7eb; /* Tailwind-ish gray-200 */
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;       /* gray-50 */
  margin-bottom: 1rem;
}

.help-toggle-btn.toggle-on {
  background-color: #22527b;
  color: white;
  border-color: #22527b;
}

.help-toggle-btn.toggle-off {
  background-color: white;
  color: #22527b;
  border-color: #22527b;
}

 /* Fix session cards in dark mode */
 body.dark-mode .report-session {
  background-color: #1e1e1e;
  color: #f2f2f2;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

body.dark-mode .report-session-header h2,
body.dark-mode .report-session-comments,
body.dark-mode .report-exercise-name,
body.dark-mode .report-exercise-seq,
body.dark-mode .report-exercise-weights {
  color: #f2f2f2;
}

body.dark-mode .report-edit-link {
  color: #4da6ff;
}

body.dark-mode .report-edit-link:hover {
  color: #82cfff;
  text-decoration: underline;
}

.inline-delete-form {
  margin: 0;
  padding: 0;
}
.inline-delete-form button {
  line-height: 1.2;
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #22527b;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: none;
  transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #b73338;
}


.recent-sessions .session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-sessions .session-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.recent-sessions .date {
  font-weight: 600;
  color: #333;
  width: 40%;
}

.recent-sessions .workout {
  flex: 1;
  color: #22527b;
}

.recent-sessions .view-link {
  text-decoration: none;
  background-color: #22527b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  transition: background-color 0.2s ease;
}

.recent-sessions .view-link:hover {
  background-color: #1b4265;
}

.recent-sessions .muted {
  color: #777;
  font-size: 0.9em;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 20px;
  border-left: 5px solid #22527b;
}

.card h3 {
  color: #22527b;
  margin-top: 0;
}

.next-steps ul {
  list-style: none;
  padding-left: 0;
}

.next-steps li {
  margin: 8px 0;
}

.hint {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.quick-actions .btn {
  padding: 8px 14px;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 6px;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.icon-label {
  display: block;
  font-size: 0.7rem;
  text-align: center;
  color: #ccc;
  margin-top: 2px;
}


.icon-btn:hover .icon-label {
  color: #fff;
}

.return-link {
  color: #22527b;
  text-decoration: none;
  font-weight: 500;
}
.return-link:hover {
  text-decoration: underline;
}
/* Tooltip container */
/* Tooltip container (keeps inline layout intact) */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip text box */
.tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 3px 8px;
  position: absolute;
  bottom: -30px; /* position below the icon */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  transition: opacity 0.25s ease-in-out, bottom 0.25s ease-in-out;
  pointer-events: none; /* ensures hover stays on icon */
  z-index: 100;
}

/* Show tooltip on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  bottom: -36px; /* animate slightly downward on reveal */
}
.dashboard-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #22527b;
  text-decoration: none;
}

.dashboard-tooltip svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-tooltip:hover svg {
  color: #b73338;
  transform: scale(1.1);
}

/* Tooltip styling */
.dashboard-tooltip .tooltiptext {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, bottom 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Show tooltip */
.dashboard-tooltip:hover .tooltiptext {
  opacity: 1;
  visibility: visible;
  bottom: -36px;
}
.dashboard-tooltip svg {
  color: #22527b;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-tooltip:hover svg {
  color: #b73338;
  transform: scale(1.1);
}

.nav-tip-icon {
  color: #22527b;
  font-size: 1.2rem;
  vertical-align: middle;
  margin: 0 4px;
}
.alert-banner {
  margin: 15px 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.success-banner {
  background-color: #d4edda; /* soft green */
  color: #155724;
  border: 1px solid #c3e6cb;
}

.warning-banner {
  background-color: #fff3cd; /* soft yellow */
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-banner p {
  margin: 0;
}

.form-success,
.form-error {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.8s ease-in-out;
}

.form-success {
  background-color: #d4edda;
  border: 1px solid #b2dfb5;
  color: #155724;
}

.form-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.fade-banner {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.workout-card {
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #f9f9f9;
}

.workout-input {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px 8px;
  font-size: 0.95em;
}

.workout-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn.btn-sm {
  font-size: 0.85em;
  padding: 4px 10px;
  border-radius: 4px;
}

/* .cancel-btn {
  background-color: #ccc;
  color: #000;
} */

.btn-danger {
  background-color: #b73338;
}

.button-group {
  margin-bottom: 4px; 
}

.section .workout-header {
  margin-top: 0;      
  padding-top: 0;
}

/* keep buttons inside each card */
.column .button-group,
.column form {
  display: inline-block;
  max-width: 100%;
}

.column .toggle-btn {
  white-space: nowrap;
}

.toggle-btn.danger {
  background-color: #b73338; 
}

/* keep edit controls inside card */
.workout-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.edit-controls {
  display: flex;
  gap: 6px;
}

.save-btn,
.cancel-btn {
  background-color: #22527b;
  color: white;
  border: none;
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 3px;
  cursor: pointer;
}

.cancel-btn {
  background-color: #777;
}

.save-btn:hover {
  background-color: #184466;
}

.cancel-btn:hover {
  background-color: #555;
}

.xxxview-docs-btn {
  display: inline-block;
  background-color: #33b7b2;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.xxxview-docs-btn:hover {
  background-color: #2da19d;
}

.back-link {
  display: inline-block;
  margin-top: 1em;
  font-size: 0.9rem;
  color: #22527b;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;            /* Keeps layout tidy on small screens */
  gap: 10px;
  margin-bottom: 15px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #22527b;
}

/* .view-docs-btn {
  display: inline-block;
  background-color: #33b7b2;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.25s ease;
} */

/* .view-docs-btn:hover {
  background-color: #2da19d;
  text-decoration: none;
} */

.view-docs-btn,
.new-session-btn {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.25s ease;
  font-weight: 500;
}

.view-docs-btn {
  background-color: #33b7b2;
}

.view-docs-btn:hover {
  background-color: #2aa39e;
}

.new-session-btn {
  margin-left: 6px;
  /* background-color: #22527b; */
  background-color: #8b4513;
  border: none;  
}

.new-session-btn:hover {
  background-color: #1b4468;
}

/* Optional: make it full-width on very narrow screens */
@media (max-width: 480px) {
  .view-docs-btn {
    width: 100%;
    text-align: center;
  }
}
  
/* Buttons on edit_workout.php */
/* --- Unified button style (matches View Instructions exactly) --- */
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;          /* identical to .view-docs-btn */
  font-size: 0.9rem;
  font-weight: 500;           /* same as View Instructions */
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

/* Button colors */
.btn-blue { background-color: #22527b; }
.btn-blue:hover { background-color: #1a4363; }

.btn-teal { background-color: #33b7b2; }
.btn-teal:hover { background-color: #2a9994; }

.btn-brown { background-color: #8b4513; }
.btn-brown:hover { background-color: #70370f; }

/* Icon alignment fix */
.btn i {
  font-size: 0.9rem;
  vertical-align: middle;
  line-height: 1;
  color: #fff;
}