:root {
    --primary-bg-color: #0f0f0f;
    --secondary-bg-color: #1a1a1a;
    --tertiary-bg-color: #262626;
    --accent-bg-color: #2d2d2d;
    --primary-color: #f9fafb;
    --secondary-color: #e5e7eb;
    --tertiary-color: #9ca3af;
    --quaternary-color: #6b7280;
    --accent-color: #818cf8;
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --secondary-accent-color: #fbbf24;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    margin: 0px;
    padding: 0px;
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 100%;
    line-height: 1.6;
}

section {
    width: 100%;
    max-width: 100rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0 1rem;
    box-sizing: border-box;
}

nav {
    font-family: inherit;
    display: flex;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(26, 26, 26, 0.85);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    padding: 0 1rem;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

nav.nav--scrolled {
    min-height: 64px;
}

nav.nav--scrolled object {
    height: 48px;
}

nav object {
    transition: height 0.3s ease;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav object {
    height: 80px;
    width: auto;
}

nav box-icon {
    height: auto;
    width: 5em;
    padding-left: 1%;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 1.3em;
  height: 1.25rem;
  flex-shrink: 0;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--quaternary-color);
  transition: 0.3s ease;
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 0.875rem;
  width: 0.875rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: var(--primary-color);
  transition: 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background: var(--accent-gradient);
}

input:checked + .slider:before {
  transform: translateX(1.25rem);
}

.form-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.options-checkbox {
    justify-self: end
}

.options-checkbox-label {
}

.bw_input {
    width: 100%;
    max-width: 50vh;
    height: 2.5rem;
    font-size: 1rem;
    margin: 0;
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    flex: 1;
    min-width: 150px;
    background-color: var(--tertiary-bg-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 50%;
    height: auto;
    place-items: center;
}

[name="run"] {
    height: auto;
    width: 10em;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input::-webkit-list-button {
    display: none !important;
}

.form-datalist {
    display: none !important;
}

#bubbleChartDiv {
    width: 90%;
    height: 50%;
    margin-bottom: 100px;
    margin-top: 4%;
    background-color: var(--accent-bg-color);
    border-radius: 40px;
    border: 2px solid var(--border-color);
    padding: 20px;
    color: red;
}

.center_div {
    justify-content: center;
    text-align: center;
    margin: auto;
    width: 100%;
}

.nav__h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
    line-height: 1;
}

.nav__h1.no-logo {
    padding-left: 2rem;
}

.nav__ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding-right: 2%;
    list-style: none;
}

.nav__ul--li,
.nav__ul--li--logged-in {
    display: inline-flex;
    align-items: center;
    height: auto;
    width: auto;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    background-color: var(--tertiary-bg-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin: 0;
}

.nav__ul--li:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav__ul--li--logged-in {
    display: inline-flex;
    align-items: center;
    list-style-type: none;
    height: auto;
    width: auto;
    font-size: 0.6em;
    color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 15px 8px 15px;
    background-color: transparent;
    position: relative;
    transition: background-color 0.2s ease;
}

.nav__ul--li--logged-in:hover {
    background-color: rgba(129, 140, 248, 0.12);
}

.nav__ul--li--logged-in.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.nav__ul--li--a,
.nav__ul--li--a--logged-in {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.nav__ul--li--a--logged-in {
    text-decoration: none;
    vertical-align: middle;
    height: 48px;
    width: 48px;
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-page-main {
    text-align: center;
}

.landing-page-main>p {
    padding: 0em 20em 0em 20em;
}

.sketchfab-embed-wrapper {
    width: 100%;
    height: auto;
}

.login-wrapper {
    margin-top: 10%;
    width: 60%;
    background: var(--secondary-bg-color);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.login-wrapper h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 95%;
    height: 100%;
    background: var(--tertiary-bg-color);
    font-size: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.input-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.input-box input::placeholder {
    color: var(--tertiary-color);
}

.input-box box-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.login-wrapper .btn {
    width: 100%;
    height: 3rem;
    background: var(--accent-gradient);
    border: none;
    outline: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.workouts--options {
    width: 100%;
}

.login-wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.register-link p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.register-link p a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.content__div--buttons {
    margin-top: 1rem;
    background: var(--tertiary-bg-color);
    text-align: center;
    border-radius: var(--radius-lg);
    height: 3rem;
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.content__div--buttons:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-bg-color);
}

.content__div--a {
    font-size: 1em;
    text-decoration: none;
    font-family: "Roboto Slab", serif;
    color: #fff;
    width: 100%;
}

.content__div--button {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.content__div h1 {
    font-size: 3em;
    font-family: "Roboto Slab", serif;
}

.workouts__div {
    display: flex;
    flex-direction: column;
    font-size: 1.25rem;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-bg-color) 0%, var(--tertiary-bg-color) 100%);
    font-family: inherit;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.workouts__div:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.5), 0 15px 15px -5px rgba(0, 0, 0, 0.3);
}

.workouts--name {
    display: flex;
    flex-direction: column;
    font-size: 1.75rem;
    font-weight: 700;
    width: 100%;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.workouts--created {
    font-size: 0.875rem;
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.workouts--exercise--name {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.workouts__div--a {
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    background: var(--accent-gradient);
    color: white;
    margin: 0.5rem;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    transition: all 0.2s ease;
}

.workouts__div--a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.workouts__div--a2 {
    text-decoration: none;
    border: 2px solid var(--secondary-accent-color);
    border-radius: 10px;
    padding: 1%;
    font-size: 0.4em;
    background-color: var(--secondary-accent-color);
    color: #fff;
    width: 15%;
    box-shadow: 0 0 10px rgba(0, 0 , 0, .1);
}

.workouts__div--a3 {
    text-decoration: none;
    border: 2px solid var(--secondary-accent-color);
    border-radius: 10px;
    padding: 0.5em;
    font-size: 0.5em;
    background-color: var(--secondary-accent-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0 , 0, .1);
}

.info--table {
    width: 100%;
    font-size: 0.6em;
    margin: 0px;
    padding: 0px;
}

.info--table tr {
}

.info--table td {
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3vh;
}

.form-wrapper h1 {
    font-size: 40px;
}

.add-set-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

option {
    font-size: 100px;
    width: 100%;
}

.input_div {
    display: flex;
    height: auto;
    min-height: 2em;
    font-size: 3rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.5em;
    width: 150%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.input_div.disabled {
    opacity: 0.3;
}

.input_div.disabled .input {
    pointer-events: none;
}

.input {
    width: 100%;
    max-width: 50vh;
    height: 2.5rem;
    font-size: 3rem;
    margin: 0;
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    flex: 1;
    min-width: 150px;
    background-color: var(--tertiary-bg-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.input_div.disabled .input {
    background-color: var(--primary-bg-color);
    color: var(--accent-bg-color);
    pointer-events: none;
}

select {
    width: 9vh;
    height: 4vh;
    font-size: 75%;
    margin-top: 2vh;
    text-align: center;
}

.input__submit {
    display: flex;
    font-size: 0.875rem;
    width: 10vh;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: var(--radius-lg);
    border: none;
    margin-top: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.input__submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search_form {
    font-size: 1rem;
    flex-direction: row;
    width: 90%;
    align-items: center;
    text-align: center;
    align-content: flex-start;
    position: fixed;
    background: linear-gradient(135deg, var(--secondary-bg-color) 0%, var(--tertiary-bg-color) 100%);
    min-height: 20%;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    top: 5rem;
    backdrop-filter: blur(10px);
}

.search_form  label{
    width: 5%;
}

.search_form > select {
    width: 6em;
    margin: 0px;
    height: 3vh;
    font-size: 1em;
}

.search_form > input {
    width: 12%;
    margin-left: 0px;
}

.search_table {
    width: 100%;
    background-color: var(--secondary-bg-color);
    margin-top: 25%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search_table th {
    position: sticky;
    top: 30%;
    background-color: var(--primary-bg-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.search_table tr {
    background-color: var(--secondary-bg-color);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.search_table tr:hover {
    background-color: var(--primary-bg-color);
}

.search_table_body {
    text-align: center;
}

.search_table td {
    padding: 0.75rem 1rem;
    color: var(--primary-color);
}

.chart-container {
    padding-top: 80px;
    width: 800px;
}
.search_button {
    font-size: 1rem;
    width: 50%;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search_button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.value-input {
    width: 1%;
}

.body-weight-chart {
    position: relative;
    height: 50vh;
    width: 101%;
}

.time-range-buttons {
    text-align: center;
    margin-bottom: 10px;
}

.time-range-btn {
    margin-right: 5px;
    padding: 5px 10px;
    cursor: pointer;
    background: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
    color: black;
    font-size: 14px;
}

.time-range-btn.active {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    color: white;
}

.past-exercises {
    margin-top: 1%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 50%;
    height: auto;
}

.past-exercises-button {
    background-color: white;
    border-radius: 20px;
    border: 2px solid var(--accent-bg-color);
    font-size: 2em;
}

/* Mobile First Approach - Base styles for small screens */
@media (max-width: 480px) {
    section {
        padding: 0 0.5rem;
    }

    .nav__h1 {
        font-size: 1.5em;
        padding-left: 2%;
    }

    .nav__ul--li {
        font-size: 1.2em;
        padding: 5px 10px;
    }

    .nav__ul--li--a {
        font-size: 0.6em;
    }

    .login-wrapper {
        width: 90%;
        margin-top: 20%;
        padding: 20px;
    }

    .login-wrapper h1 {
        font-size: 24px;
    }

    .input-box input {
        font-size: 16px;
    }

    .form-wrapper h1 {
        font-size: 28px;
    }

    .input_div {
        flex-direction: column;
        gap: 0.3em;
        padding: 0.3em;
    }

    .input {
        width: 100%;
        max-width: none;
        font-size: 14px;
        order: 1;
    }

    .toggle {
        width: 1.5em;
        height: 0.8em;
        order: 2;
        align-self: flex-end;
    }

    .content__div--buttons {
        width: 90%;
        height: auto;
        padding: 10px;
    }

    .workouts__div {
        width: 90%;
        padding: 5%;
    }

    .workouts--name {
        font-size: 1.5em;
    }

    .search_form {
        width: 95%;
        font-size: 14px;
        flex-direction: column;
    }

    .search_form > input {
        width: 100%;
    }

    .search_table {
        width: 100%;
        font-size: 12px;
        margin-top: 20px;
    }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
    .nav__h1 {
        font-size: 2em;
    }

    .nav__ul--li {
        font-size: 1.8em;
    }

    .login-wrapper {
        width: 80%;
        margin-top: 15%;
    }

    .login-wrapper h1 {
        font-size: 32px;
    }

    .form-wrapper h1 {
        font-size: 36px;
    }

    .input_div {
        flex-direction: row;
        justify-content: space-between;
    }

    .input {
        width: 60%;
        max-width: 200px;
    }

    .toggle {
        width: 1.8em;
        height: 0.9em;
    }

    .workouts__div {
        width: 80%;
    }

    .search_form {
        width: 90%;
        font-size: 16px;
    }
}

/* Small desktop styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav__h1 {
        font-size: 2.5em;
    }

    .login-wrapper {
        width: 70%;
        margin-top: 10%;
    }

    .body-weight-chart {
        width: 15em;
    }

    .time-range-buttons {
    }

    .time-range-btn {
        font-size: 40%;
    }

    .form-wrapper h1 {
        font-size: 42px;
    }

    .input {
        width: 45vh;
    }

    .bw_input {
        width: 100%;
        font-size: 2.5rem;
    }

    .input_div {
        width: 80%;
    }

    .toggle {
      width: 2.6rem;
      height: 1.4rem;
    }

    .slider {
        left: 0rem;
    }

    .slider:before {
        left: 0.1rem;
        height: 0.9rem;
        width: 0.9rem;
    }

    .workouts__div {
        width: 75%;
    }
}

/* Large desktop and tablet landscape */
@media (min-width: 1025px) and (max-width: 1200px) {
    .quick-actions {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }

    .past-exercises {
        margin-top: 5%;
        width: 90%;
    }

    .nav__h1 {
        font-size: 3em;
        padding-left: 3%;
    }

    .nav__ul--li {
        font-size: 2.5em;
        padding: 0px 15px 5px 15px;
    }

    .nav__ul--li--a {
        font-size: 0.8em;
    }

    .login-wrapper {
        margin-top: 10%;
        width: 600px;
        padding: 30px 40px;
    }

    .login-wrapper h1 {
        font-size: 50px;
    }

    .input_div {
        padding-left: 2em;
        width: 50%;
    }

    .input-box input {
        font-size: 2em;
    }

    .login-wrapper .btn {
        font-size: 1.8em;
    }

    .login-wrapper .register-link {
        font-size: 1.5em;
    }

    .content__div--buttons {
        height: 6vh;
        font-size: 2.2em;
        width: 60%;
    }

    .content__div h1 {
        font-size: 2.5vh;
    }

    .workouts__div {
        width: 70%;
    }

    .workouts--name {
        font-size: 3vh;
    }

    .form-wrapper h1 {
        font-size: 50px;
    }

.toggle {
      width: 1.6em;
      height: 0.8em;
    }

.slider:before {
      height: 0.6em;
      width: 0.6em;
      left: 0.1em;
      bottom: 0.1em;
    }

    .input {
        width: 30vh;
    }

    .search_form {
        display: flex;
        font-size: 2em;
        flex-direction: row;
        width: 80%;
        flex-flow: row wrap;
    }

    .date_picker {
        font-size: 85%;
    }

    .search_button {
        font-size: 1em;
        width: 15em;
    }

    .search_form label {
        width: 50%;
        padding: 1%;
    }

    .search_form > input {
        width: 30%;
    }

    .search_table {
        width: 95%;
        font-size: 25px;
        margin-top: 60%;
    }

    .search_table td {
        width: 100px;
        font-size: 20px;
        height: 4em;
    }

    .search_table th {
        position: sticky;
        top: 35%;
        background-color: var(--accent-bg-color);
    }

    .search_table a {
        font-size: 20px;
    }

    .workouts--created {
        font-size: 0.9vh;
    }

    .info--table td {
        font-size: 1em;
    }

    .workouts__div--a3 {
        padding: 0.3em;
    }

    .search_text {
        height: 3em;
    }

    .value-input {
        font-size: 1em;
        width: 2%;
    }

    .value-control {
        font-size: 1em;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--secondary-bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.pagination-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--tertiary-color);
    font-size: 0.95rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.pagination-container button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    min-width: 80px;
}

.pagination-container button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-container button:disabled {
    background: var(--tertiary-bg-color);
    color: var(--quaternary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-container .page-info {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 0.5rem;
    min-width: 120px;
    text-align: center;
}

/* Summary Table Styles */
.summary-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.summary-container .no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.session-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.exercise-container {
    margin: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.exercise-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-lift {
    border-left: 4px solid #667eea;
}

.table-run {
    border-left: 4px solid #00c896;
}

.table-stairmaster {
    border-left: 4px solid #ff6b6b;
}

.session-section .session-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-section .session-header .session-id {
    font-size: 0.9rem;
    opacity: 0.9;
}

.add-exercise-button, .add-set-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-left: 1rem;
}

.add-exercise-button:hover, .add-set-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.add-set-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin: 0.5rem 0;
}

.add-set-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.edit-set-button {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.edit-set-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.summary-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.summary-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.summary-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.summary-table tbody tr:hover {
    background-color: #f9fafb;
}

.summary-table td {
    padding: 0.75rem 1rem;
    color: #374151;
}

.summary-table td:first-child {
    font-weight: 600;
    color: #1f2937;
}

.summary-table td:not(:first-child) {
    text-align: center;
}

.summary-table td:nth-child(2),
.summary-table td:nth-child(4),
.summary-table td:nth-child(5),
.summary-table td:nth-child(8) {
    font-weight: 500;
}

.summary-table td:last-child {
    color: #6b7280;
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-table td:first-child:not(:only-child) {
    border-top: 2px solid #e5e7eb;
}

/* Summary filter bar */
.summary-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0 0.75rem 0;
}

.summary-filter-input {
    flex: 1 1 160px;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--primary-bg-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-filter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.summary-filter-date {
    flex: 0 1 150px;
    min-width: 130px;
}

.summary-filter-input::placeholder {
    color: var(--secondary-color);
    opacity: 0.6;
}

/* Date picker calendar */
.date-picker-wrapper {
    position: relative;
    display: inline-flex;
}

.date-picker-popup {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    width: 240px;
}

.date-picker-popup.open {
    display: block;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.date-picker-nav {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s ease;
}

.date-picker-nav:hover {
    background: var(--accent-bg-color);
}

.date-picker-month-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.date-picker-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.date-picker-day-names span {
    padding: 0.25rem 0;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 1px;
}

.date-picker-day {
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.date-picker-day:hover {
    background: var(--accent-bg-color);
}

.date-picker-day.other-month {
    color: var(--secondary-color);
    opacity: 0.4;
}

.date-picker-day.selected {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
}

/* Mobile responsive for summary table */
@media (max-width: 768px) {
    .summary-container {
        padding: 0.5rem;
        gap: 1rem;
    }

    .session-section .session-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem;
    }

    .summary-table {
        font-size: 0.8rem;
    }

    .summary-table th,
    .summary-table td {
        padding: 0.5rem 0.3rem;
    }

    .summary-table td:last-child {
        max-width: 100px;
    }
}

/* Settings Button */
.settings-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 15px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    line-height: 1;
}

.settings-btn:hover {
    background: var(--tertiary-bg-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-bg-color);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    color: var(--tertiary-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.settings-grid {
    display: grid;
    gap: 1.5rem;
}

.settings-group {
    background: var(--tertiary-bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.settings-group h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.setting-item select,
.setting-item input {
    width: 100%;
    padding: 0.5rem;
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-color);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-modal {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save {
    background: var(--accent-gradient);
    color: white;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-cancel {
    background: var(--tertiary-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--accent-bg-color);
}

/* Dropdown Styles */
.input-with-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.input-with-dropdown .input {
    width: 100%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--tertiary-bg-color);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    margin-top: -2px;
    list-style: none;
    padding: 0;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--accent-bg-color);
    color: var(--accent-color);
}

.dropdown-item.selected {
    background-color: var(--accent-bg-color);
    color: var(--accent-color);
    font-weight: 600;
}

.dropdown-loading {
    padding: 0.75rem 1rem;
    color: var(--tertiary-color);
    text-align: center;
    font-style: italic;
}

.dropdown-empty {
    padding: 0.75rem 1rem;
    color: var(--tertiary-color);
    text-align: center;
    font-style: italic;
}

/* When input has focus, adjust border radius */
.input-with-dropdown .input:focus {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Exercise Suggestion Buttons */
.exercise-suggestions-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--tertiary-bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 50vh;
    box-sizing: border-box;
}

.exercise-suggestions-container p {
    margin: 0 0 0.75rem 0;
    color: var(--tertiary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.exercise-suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.exercise-suggestion-button {
    background: var(--accent-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.exercise-suggestion-button:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

/* Landing Page Styles */

.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.hero__logo {
    width: 260px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(129, 140, 248, 0.15));
    transition: transform 0.3s ease;
}

.hero__logo:hover {
    transform: scale(1.03);
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(129, 140, 248, 0.3);
}

.hero__subtitle {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.hero__highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--tertiary-color);
    margin: 0 0 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.35);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.5);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn--secondary:hover {
    border-color: var(--accent-color);
    background: rgba(129, 140, 248, 0.08);
    transform: translateY(-3px);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}

/* Features Section */

.features {
    width: 100%;
    max-width: 1100px;
    padding: 5rem 1rem;
    text-align: center;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.section__desc {
    font-size: 1.1rem;
    color: var(--tertiary-color);
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.7;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px -8px rgba(129, 140, 248, 0.2), var(--shadow-md);
}

.feature-card__icon {
    font-size: 2.25rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    background: rgba(129, 140, 248, 0.1);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
}

.feature-card__desc {
    font-size: 0.95rem;
    color: var(--tertiary-color);
    margin: 0;
    line-height: 1.6;
}

/* Steps Section */

.steps {
    width: 100%;
    max-width: 900px;
    padding: 4rem 1rem 5rem;
    text-align: center;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-card__number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
}

.step-card__desc {
    font-size: 0.95rem;
    color: var(--tertiary-color);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */

.cta-section {
    width: 100%;
    max-width: 700px;
    padding: 4rem 1rem 6rem;
    text-align: center;
}

.cta-section__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.cta-section__desc {
    font-size: 1.1rem;
    color: var(--tertiary-color);
    margin: 0 0 2rem;
    line-height: 1.7;
}

/* Landing page responsive */
@media (max-width: 600px) {
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__logo {
        width: 180px;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .steps__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-section__title {
        font-size: 1.75rem;
    }
}

/* Extra large screens */
@media (min-width: 1201px) {
    section {
        max-width: 1200px;
        margin: 0 auto;
    }
}
