body {
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #5c5c5c;
    width: 100%;
    overflow-x: hidden;
    color: #ffffff;
}

.fullSize {
    box-sizing: border-box;
    width: 100vw;
    min-height: 100dvh; /* dynamic viewport height */
    height: calc(var(--vh, 1vh) * 100); /* fallback for older iOS */
    border: #4e4e4e solid 3px;
    border-radius: 20px;
    background-color: #2d2d31;
    color: #ffffff;
    overflow: auto;
    /* padding: 10px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
.largeText {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}

.button {
    background-color: #da496d;
    border-radius: 5px;
    border: none;
    font-size: large;
    color: #ffffff;
    padding: 10px;
    margin: 10px 5px;
    cursor: pointer;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

.buttonSecondary {
    background-color: #585858;
}

.buttonClear {
    background-color: transparent;
}

.buttonDanger {
    background-color: #ff4d4d;
    color: #ffffff;
}

.buttonOutline {
    background-color: transparent;
    border: 1.5px solid #5b58ff;
    color: #5b58ff;
}

.buttonOutlineRed {
    border: 1.5px solid #ff4d4d;
    color: #ff4d4d;
}

.workoutHeader {
    /* margin-top: 20px; */
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    /* margin-bottom: 20px; */
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #2d2d31;
    padding: 20px;
}

.workoutFooter {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    z-index: 10;
    background-color: #2d2d31;
    position: sticky;
    bottom: 0;
}

.verticalDivider {
    width: 1px;
    background-color: #4e4e4e;
    margin: 0 10px;
}

.horizontalDivider {
    height: 1px;
    background-color: #4e4e4eb0;
    margin: 10px 0;
    width: 75%;
}

.exerciseList {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.exerciseItem:nth-child(odd) {
    background-color: #333337;
}

.exerciseItem {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}

.exerciseName {
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 10px;
}

.exerciseHeader {
    display: flex;
    width: 100%;
    padding: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.exerciseHeader > div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.exerciseDetails {
    display: flex;
    flex-direction: column;
    width: 90%;
}

.setsContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}

.setItem {
    display: flex;
    height: 50px;
    align-items: center;
    border-radius: 5px;
    padding: 5px;
    transition: height 0.3s ease;
    will-change: transform, opacity, height;
}

.setItem.adding {
    opacity: 0;
    transform: translateY(2px) scale(calc(1 - .02*var(--motion-scale)));
    animation: fadeIn var(--t-med) var(--ease-smooth) forwards;
}
.setItem.removing  { opacity: 0; transform: translateY(-4px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }

.setItemCompleted {
    border:#5cc453 solid 2px!important;
    background-color: #5cc45380!important;
    height: 40px;
  background: rgba(50, 200, 120, 0.15);
  border-left: 4px solid #32c878;
  transition: background 0.4s ease, transform 0.3s ease, height 0.3s ease;
}

.setItemCompleted.added {
  animation: popIn 0.35s ease forwards;
}

@keyframes popIn {
  0%   { transform: scale(0.95); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}


.setItem > span {
    width: 10%;
    margin: 0 10px 0 10px;
}

.setItem > button {
    width: 50px;
    margin: 0 0 0 10px;
}

.setItem >  input {
    width: 100%;
    height: 100%;
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

.setItem > div > input {
    width: 100%;
    height: 40px;
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

.setItem > div {
    padding: 0 5px;
}

.repsDiv {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
}

.setItem > div > span {
    position: absolute;
    bottom: -7px;
}

.weightDiv {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.setItemCompleted > input {
    background-color: #5cc45380;
}

.setItemCompleted > div > input {
    background-color: #5cc45380;
}

.setItemCompleted > div > span {
    display: none!important;
}

.setItemCompleted > .setSeparator {
    margin-bottom: 0!important;
}

.setNumber {
    text-align: center;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 11; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-header {
    padding: 2px 16px 16px 16px;
    background-color: #333337;
    border-radius: 10px 10px 0 0;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.modal-body {
    padding: 16px;
    background-color: #333337;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #333337;
    border-radius: 0 0 10px 10px;
    display: flex;
    color: white;
    flex-direction: row;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

#exerciseSearchResults {
    width: 100%;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    background-color: #333337;
    border-radius: 10px;
}

.exercise-result {
    padding: 10px;
    border-bottom: 1px solid #4e4e4e;
    cursor: pointer;
    justify-content: space-between;
    display: flex;
}

.exercise-result.selected {
    background-color: #5b58ff;
    color: #ffffff;
}

.active-set {
    border: 2px solid #5b58ff;
    background-color: #5b58ff80;
}

/* .complete-set-button {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 70px;
    font-size: 48px;
    border-radius: 50%;
    color: white;
    background-color: #da496d;
    height: 70px;
    padding: 10px;
    margin: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    animation-name: animatebottom;
    animation-duration: 0.4s;
    z-index: 10;
} */

#completeSetButton {
    width: 20px;
    height: 20px;
    font-size: 48px;
    border-radius: 50%;
    color: white;
    background-color: #da496d;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bi-check-circle {
    color: white;
    background-color: #da496d;
    border-radius: 50%;
    /* height: 16px; */
    display: flex;
    font-size: 24px;
}

.bi-circle {
    color: white;
    border-radius: 50%;
    /* height: 16px; */
    display: flex;
    font-size: 24px;
}

@keyframes animatebottom {
    from {bottom: -100px; opacity: 0}
    to {bottom: 0; opacity: 1}
}

.settingsSection {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.settingsSection:nth-child(even) {
    background-color: #333337;
}

.settingsSection > input {
    background-color: #3c3c3f;
    height: 50px;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

.settingsSection > input[type="checkbox"] {
    width: 40px;
    height: 40px;
    accent-color: #da496d;
    margin-right: 10px;
    cursor: pointer;
}

.settingsSection > * {
    width: 50%;
}

.editExerciseSection {
    display: flex;
    flex-direction: row;
    max-width: 600px;
    padding: 20px;
    background-color: #333337;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.editExerciseSection:nth-child(even) {
    background-color: #2d2d31;
}

.editExerciseSection > input {
    background-color: #3c3c3f;
    height: 50px;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

.editExerciseSection > input[type="checkbox"] {
    width: 40px;
    height: 40px;
    accent-color: #da496d;
    margin-right: 10px;
    cursor: pointer;
}

.editExerciseSection > * {
    width: 50%;
}

.quickLogSection {
    display: flex;
    flex-direction: row;
    max-width: 600px;
    padding: 20px;
    background-color: #333337;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.quickLogSection:nth-child(even) {
    background-color: #2d2d31;
}

.quickLogSection > label {
    margin-right: 5px;
}

.quickLogSection > input {
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
    width: 100%;
}

.quickLogSection > textarea {
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
    width: 100%;
}

select {
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
    width: 100%;
}

input {
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
}

#exerciseSearch {
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

#viewStatsModal > div > .modal-body {
    display: flex;
    flex-direction: column;
}

.statsHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px 10px 10px 10px;
    background-color: #333337;
    border-radius: 10px 10px 0 0;
    flex-direction: row;
}

.statsHeader > button {
    position: absolute;
    left: 5px;
    top: 0px;
}

.statsSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border-radius: 10px;
    gap: 10px;
}

.statsSection:nth-child(even) {
    background-color: #333337;
}

.statsSection > h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    font-style: italic;
}

.bi-caret-down-fill {
    color: #f74848ff;
    font-size: .7em;
}

.bi-caret-up-fill {
    color: #88f748ff;
    font-size: .7em;
}

.workoutHistoryEntry {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.workoutHistoryEntry:nth-child(odd) {
    background-color: #333337;
}

.workoutHistoryDetails {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.workoutHistoryDetails > div {
    margin: 2px 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.workoutHistoryDetails > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.workoutHistoryDetails > ul > li {
    margin: 2px 0;
}

.workoutHistoryExerciseEntry {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding-top: 5px;
    border-radius: 10px;
}

input:disabled {
    color: #ffffff!important;
}

.workoutHistoryExerciseEntry:nth-child(odd) {
    background-color: #333337;
}

.workoutHistoryExercisesList {
    flex-direction: column;
    gap: 10px;
}

.jsCalendar table {
    background-color: #2d2d31!important;
    color: #ffffff!important;
}

.jsCalendar thead {
    background-color: #333337;
    color: #ffffff;
}

.jsCalendar tbody {
    background-color: #2d2d31;
}

.jsCalendar tbody td.jsCalendar-current {
    background-color: #da496d!important;
}

.jsCalendar tbody td.jsCalendar-next, .jsCalendar tbody td.jsCalendar-previous, .jsCalendar tbody td.jsCalendar-unselectable {
    color: #4f4f57!important;
}

#importExportData {
    background-color: #3c3c3f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    font-family: 'Inter', 'Source Code Pro', Arial, sans-serif;
    width: 100%;
    min-height: 200px;
}

#importExportBody {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  /* border-bottom: 1px dotted black; If you want dots under the hoverable text */
}

.tooltip > i {
    cursor: pointer;
    color: #79797f;
    font-size: 1.2em;
}

.quickLogSection > .tooltip {
    margin-right: 5px;
}

.summarySection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.summarySection:nth-child(even) {
    background-color: #2d2d31;
}

:root{
  /* Durations */
  --t-fast: 120ms;
  --t-med: 220ms;
  --t-slow: 380ms;

  /* Easings */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in: cubic-bezier(.55,.06,.68,.19);
  --ease-smooth: cubic-bezier(.16,1,.3,1);     /* “easeOutQuint”-ish */
  --ease-bounce: cubic-bezier(.34,1.56,.64,1); /* subtle pop */

  /* Motion scale for reduced-motion fallback */
  --motion-scale: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  :root{ --motion-scale: 0; }
  * { animation: none !important; transition: none !important; }
}

/* Fades */
.fade-in   { opacity: 0; transform: translateY(2px) scale(calc(1 - .02*var(--motion-scale)));
             animation: fadeIn var(--t-med) var(--ease-smooth) forwards; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Collapses (for add/remove set rows, accordions) */
.collapse {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height var(--t-slow) var(--ease-smooth),
              opacity   var(--t-med)  var(--ease-out);
}
.collapse.open { max-height: 600px; opacity: 1; } /* tune 600px to your largest section */

/* Pop highlight (PRs, success, badges) */
.pop-in { animation: popIn calc(var(--t-med) + 80ms) var(--ease-bounce) forwards; }
@keyframes popIn {
  0%   { transform: scale(calc(0.96 + .04*(1 - var(--motion-scale)))); opacity: 0; }
  60%  { transform: scale(calc(1.03 - .03*(1 - var(--motion-scale)))); opacity: 1; }
  100% { transform: scale(1); }
}

/* Soft hover/focus transitions for inputs/buttons/cards */
.transition-base {
  transition: background-color var(--t-fast) var(--ease-out),
              border-color     var(--t-fast) var(--ease-out),
              box-shadow       var(--t-fast) var(--ease-out),
              transform        var(--t-fast) var(--ease-out),
              opacity          var(--t-fast) var(--ease-out);
}

/* Slide-in (toasts/modals) */
.slide-up { opacity: 0; transform: translateY(10px);
            animation: slideUp var(--t-med) var(--ease-smooth) forwards; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
