/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    display: flex;
    min-height: 100vh;
}

/* Apply background image ONLY to the welcome page */
/*body.welcome-bg {
    background-image: url('images/hpllogo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Header */
header {
    background: linear-gradient(90deg, #4caf50, #2196f3);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 1rem;
}

#logout-btn {
    display: none; /* Ensure it's hidden by default */
}

#welcome-message {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background-color: #f0f8ff; /* Light blue background */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    max-width: 600px; /* Center message box */
    font-size: 16px;
    font-weight: 500;
    color: #333; /* Darker text for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Welcome Image - Set to Left */
#welcome-logo {
    height: 200px; /* Adjust size */
    width: auto;
    flex-shrink: 0; /* Prevent shrinking */
}

#welcome-page {
  
}

.hidden {
    display: none; /* Hides the element */
}

/* Styling for "Get Athletic" */
.highlight {
    font-size: 1.5rem; /* Larger font size */
    font-weight: bold; /* Bold text */
    color: #007bff;    /* Blue color */
}

/* Styling for "Exercise Library" */
.emphasis {
    font-weight: bold; /* Italic text */
    color: #28a745;     /* Green color */
}

/* Styling for "workouts" */
.custom-style {
    font-weight: bold; /* Underline the text */
    color: #ff5733;             /* Orange color */
}

/* Styling for "progress" */
.progress-style {
    font-weight: bold; /* Bold text */
    color: #6c757d;    /* Grey color */
}

/* Styling for "Pro" */
.pro-style {
    font-size: 1.25rem; /* Slightly larger font size */
    color: #ffc107;     /* Yellow color */
}

/* Styling for "create your workouts" */
.action-style {
    font-size: 1rem;    /* Default font size */
    font-weight: bold;  /* Bold text */
    color: #dc3545;     /* Red color */
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer Styles */
footer {
    text-align: center;
    background-color: #f4f4f4;
    padding: 0px;
    color: #555;
    font-size: 0.8rem;
    width: 100%;
    border-top: 1px solid #ccc;
    flex-shrink: 0;
    bottom: 0;
}

/* Fixed Footer for Welcome Page ONLY */
.welcome-page footer {
    position: fixed;
    bottom: 0;
}

#my-workouts-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hover Effect for Save Workout Button */
#my-workouts-btn:hover {
    background: #4caf50; /* Darker gradient on hover */
    transform: translateY(-2px) scale(1.05); /* Slight lift and enlarge */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Enhance shadow */
}

/* Active Effect (on click) */
#my-workouts-btn:active {
    transform: translateY(1px) scale(0.98); /* Push button slightly inwards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduce shadow */
}

/* Main Container */
/* Make sure the main container takes up full height */
.main-container {
    display: flex;
    flex-grow: 1;
    width: 95%;
    max-width: 1200px;
    padding: 10px;
    box-sizing: border-box;
    align-items: stretch; /* Ensure columns stretch */
    min-height: calc(100vh - 100px); /* Take full height minus header/footer */
}

h3 {
    margin: 0;
    font-size: 9px;
    font-style: italic;
    margin-left: .5px;
    padding-bottom: 5px;
}

/* Columns */
.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
}

#exercise-column h2 {
    margin: 0;
    font-size: 1.5rem;
}

#exercise-column h2,
#workout-column h2 {
    font-size: 15px;
    padding-bottom: 4px;
}


/* Scrollable List Content */
#exercise-list, #workout-items {
    flex: 1; /* Take up remaining space inside the column */
    overflow-y: auto; /* Enable scrolling when content overflows */
    margin: 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 3px solid #ddd;
    box-sizing: border-box;
}

#search-box, #workout-name {
    margin: 0;
    margin-bottom: 5px;
    padding: 4px;
    font-size: .8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    gap: 2px;
}

/* Styling for the exercise title */
.exercise-title {
    flex: 1; /* Allow the title to grow and take remaining space */
    font-size: 16px;
    font-weight: bold;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: blue; /* Match your link color */
}


/* Scrollable Lists */
#exercise-list, #workout-items {
    flex: 1; /* Takes up all remaining vertical space */
    overflow-y: auto; /* Scrollable when content exceeds available space */
    margin: 0;
    padding: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* List Items */
#exercise-list li, #workout-items li {
    display: flex;
    align-items: center;
    overflow-y: auto; /* Scroll if content overflows */
    padding: 1;
    gap: 0px;
    margin: 5px 10;
    background-color: #f4f4f4;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: grab;
    font-size: 14px;
}

#exercise-list li img,
#workout-items li img {
    flex-shrink: 0; /* Prevent shrinking */
    height: 40px; /* Set fixed height */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between image and text */
}

#exercise-list li span,
#workout-items li span {
    display: block; /* Allow wrapping */
    flex-grow: 1; /* Allow text to use available space */
    overflow: hidden; /* Prevent overflow */
    text-align: left; /* Align text left */
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word; /* Break long words */
}




/* Hover effect for exercise list items */
#exercise-list li:hover {
    background-color: #e0f7fa; /* Light blue background on hover */
    transform: scale(1.02); /* Slightly enlarge the list item */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

/* Style the title (link) */
#exercise-list li a {
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Ensure bold text */
    color: #007bff; /* Set text color */
    margin: 0; /* Remove all margin */
    padding: 0; /* Remove all padding */
}

/* Hover effect for hyperlinks */
#exercise-list li a:hover {
    color: #0056b3; /* Darker blue on hover */
    font-weight: bold; /* Bold text on hover */
}


.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 13px;
}

.workout-header h2 {
    margin: 0;
    font-size: 1.5rem;
}


/* Dropped exercise items container */
#workout-items li.dropped {
    display: flex; /* Flexbox for horizontal alignment */
    align-items: center; /* Vertically center all child elements */
    gap: 10px; /* Spacing between items (image, text, button) */
    padding: 0px; /* Add padding inside the item */
    margin: 0px 0; /* Consistent vertical spacing */
    background-color: #f4f4f4; /* Light background */
    border: 2px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    cursor: grab; /* Indicate draggable element */
    height: auto; /* Ensure the height fits its children */
}

/* Image inside the dropped exercise item */
#workout-items li.dropped img {
    flex-shrink: 0; /* Prevent the image from shrinking */
    height: 40px; /* Fixed height for uniformity */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Spacing between image and text */
}

/* Text container inside dropped exercise item */
#workout-items li.dropped span {
    flex-grow: 1; /* Use available space */
    display: block; /* Allow wrapping */
    overflow-wrap: break-word; /* Allow breaking long words */
    white-space: normal; /* Enable wrapping */
    text-align: left; /* Align text to the left */
    font-size: 14px; /* Font size for better readability */
    line-height: 1.4; /* Adjust line height for wrapped text */
    overflow: hidden; /* Prevent overflow */
}

/* Style the title (link) in dropped exercise items */
#workout-items li.dropped a.exercise-title {
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    color: #007bff; /* Set text color */
    white-space: normal; /* Enable wrapping for long text */
    overflow-wrap: break-word; /* Break long words */
    flex-grow: 1; /* Use remaining space */
    font-size: 14px; /* Adjust font size */
    margin: 0; /* Remove extra margins */
    padding: 0; /* Remove extra padding */
}


/* Placeholder for dragging */
#workout-items .drag-placeholder {
    height: 50px; /* Consistent height with items */
    margin: 5px 0; /* Minimal vertical spacing */
    background-color: #f0f9ff; /* Light blue background for contrast */
    border: 1px dashed #2196f3; /* Dashed border to indicate placement */
    border-radius: 5px; /* Match item border radius */
    transition: all 0.1s ease; /* Smooth transition effect */
}

/* Highlight the container during drag-over */
#workout-items.dragging-over {
    border: 1px solid #2196f3; /* Solid blue border */
    background-color: #f0f8ff; /* Light blue background */
}


/* Save Workout Button Styling */
#save-workout {
    background-color: #4caf50;
    color: white; /* White text */
    border: none; /* Remove default border */
    border-radius: 4px; /* Smooth rounded corners */
    padding: 4px 12px; /* Adjust padding for better spacing */
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 10px; /* Font size */
    text-transform: uppercase; /* Convert text to uppercase */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

/* Hover Effect for Save Workout Button */
#save-workout:hover {
    background: #4caf50; /* Darker gradient on hover */
    transform: translateY(-2px) scale(1.05); /* Slight lift and enlarge */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Enhance shadow */
}

/* Active Effect (on click) */
#save-workout:active {
    transform: translateY(1px) scale(0.98); /* Push button slightly inwards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduce shadow */
}



/* My Workouts Section */
#my-workouts-container {
    display: none;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
    align-items: center;
}

#my-workouts-container h2 {
    margin: 0;
    font-size: 1.5rem;
}

#my-workouts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 10px;
    box-sizing: border-box;
}


#my-workouts-container .my-workouts-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding: 0px 0;
    border-bottom: 2px solid #ddd;
}

#my-workouts-container .my-workouts-header h2 {
    display: flex; /* Use flexbox for alignment */
    margin: 0;
    font-size: 20px;
    padding: 2px;
    font-family: 'Arial', sans-serif; /* Optional: Change font family */
    color: #333; /* Optional: Text color */
}

/* Buttons inside the my-workouts-header */
.my-workouts-header button {
    background-color: gray;    /* Blue background */
    color: white;                 /* White text */
    border: none;                 /* Remove borders */
    border-radius: 2px;           /* Rounded corners */
    padding: 3px 6px;            /* Button padding */
    font-size: 10px;            /* Adjust button font size */
    cursor: pointer;              /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.my-workouts-header button:hover {
    background-color: dark gray;    /* Darker blue on hover */
}

/* Ensure both buttons are spaced evenly */
.my-workouts-header div {
    display: flex;                /* Flexbox for buttons */
    gap: 1px;                    /* Space between buttons */
}



.my-workout {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.my-workouts-header {
    display: flex;              /* Make the container a flexbox */
    justify-content: space-between; /* Push items to opposite ends */
    align-items: center;        /* Center items vertically */
    width: 100%;                /* Ensure it spans the full container width */
    margin-bottom: 10px;   /* Add spacing below the header */
    font-size: 10px;
}

.my-workouts-header h2 {
    margin: 0;                  /* Remove default margin */
    font-size: 20px;          /* Adjust font size as needed */
}

.my-workout-header span.workout-title {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-workout-exercises {
    display: none;
    list-style: none;
    padding: 10px 0 0 10px;
    margin: 0;
    border-top: 1px solid #ddd;
}

.my-workout.expanded .my-workout-exercises {
    display: block;
}


/* Authentication Container */
#auth-container {
    display: flex;
    flex-direction: row; /* Arrange elements in a single line */
    align-items: center; /* Vertically center elements */
    justify-content: flex-start; /* Align to the far left */
    gap: 5px; /* Reduce the gap between elements */
    padding: 10px; /* Add some padding for spacing */
    max-width: 100%; /* Ensure it spans across */
    width: 100%; /* Stretch across the page */
    box-sizing: border-box; /* Include padding in width calculation */
    background-color: #f9f9f9; /* Optional: Slight background to distinguish */
}

/* Email and Password Fields */
#auth-container input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    flex: 1; /* Allow inputs to grow if needed */
    width: 150px;
    max-width: 1500px; /* Set a reasonable max width */
}

/* Authentication Buttons */
#auth-container button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.forgot-password-link {
    color: #007bff; /* Default color (blue) */
    font-size: 14px; /* Adjust the size */
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Add pointer cursor */
    padding: 5px 8px; /* Add some padding for a button-like appearance */
    border-radius: 4px; /* Add rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.forgot-password-link:hover {
    color: darkblue; /* Change text color to white */
    text-decoration: none; /* Ensure no underline on hover */
}

#login-btn, #register-btn {
    background-color: #007bff; /* Default button background color (blue) */
    color: white; /* Default text color */
    border: none; /* Remove borders */
    border-radius: 4px; /* Rounded corners */
    padding: 8px 16px; /* Spacing inside the button */
    cursor: pointer; /* Pointer cursor to indicate clickability */
    font-size: 14px; /* Adjust font size */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

#login-btn:hover, #register-btn:hover {
    background-color: #0056b3; /* Darker blue for hover effect */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.my-workout {
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: white;
    padding: 5px;
    margin-bottom: 0px;
}


.my-workout-header {
    display: flex;               /* Flex container for horizontal alignment */
    justify-content: space-between; /* Spread content to far ends */
    align-items: center;         /* Center vertically */                
    padding: 10px;               /* Spacing inside the header */
    border-bottom: 1px solid #ddd; /* Optional: Separator line */
    background-color: white;     /* Keep background consistent */
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Title stays on the left and grows if needed */
.my-workout-header .workout-title {
    font-size: 1rem;
    font-weight: bold;
    margin-left: 0px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Allow title to take remaining space */
}



.my-workout-header .delete-workout {
    background-color: #ff4d4d;
    color: white;
    border: none;
    font-size: 12px;
    border-radius: 5px;
    padding: 3px 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.my-workout-header .edit-workout,
.my-workout-header .delete-workout {
    margin-left: auto;           /* Push buttons to the far right */
}

.my-workout-header .delete-workout:hover {
    background-color: #e60000;
}

.my-workout-header:hover {
    cursor: grab; /* Change to hand grab icon */
}

.my-workout-header:active {
    cursor: grabbing; /* Change to grabbing icon while actively clicking */
}


/* Style the delete button */
.remove-exercise {
    flex-shrink: 0; /* Prevent resizing */
    width: 20px; /* Fixed width */
    height: 20px; /* Fixed height */
    background-color: #ff4d4d; /* Red background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 50%; /* Circular button */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    cursor: pointer; /* Indicate interactivity */
    margin-left: auto; /* Push button to the far right */
    margin-right: 5px;
    transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth transitions */
}

/* Hover state for remove button */
.remove-exercise:hover {
    background-color: #e60000; /* Darker red for hover */
    transform: scale(1.1); /* Slightly enlarge the button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Stronger shadow */
}

/* Focus state for accessibility */
.remove-exercise:focus {
    outline: 2px solid #ff4d4d; /* Outline for focus */
    outline-offset: 2px; /* Space between button and outline */
}





/* Style for the exercise list inside workouts */
.my-workout-exercises {
    list-style: none; /* Remove default bullet points */
    padding: 5px; /* Add padding inside the container */
    margin: 0; /* Remove default margin */
    border-top: 1px solid #ccc; /* Add a separator line at the top */
}



/* Style for individual exercises */
/* Ensure the exercise item has a clear layout */
.my-workout-exercises li {
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    align-items: flex-start; /* Align content to the start */
    gap: 5px; /* Add space between the title/image row and sets/data */
    padding: 10px;
    background-color: #f9f9f9; /* Background for the item */
    border: 1px solid #ddd; /* Border for the item */
    border-radius: 5px; /* Rounded corners */
}

/* Target exercise title specifically in 'My Workouts' */
#my-workouts-container .exercise-title {
    font-size: 14px; /* Adjust the font size as needed */
    font-weight: bold; /* Optional: Make the title bold */
}

/* --- Image Title Row Styles --- */
.image-title-row {
    display: flex;
    align-items: center; /* Align items to the start of their container */
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow items to wrap */
}

.image-title-row .exercise-image-container {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto; /* pushes image to the left */
}

.image-title-row .exercise-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-title-row .exercise-title {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    flex-grow: 1;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: center;
    margin-left: 0px;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.image-title-row .exercise-title:hover {
    color: #0056b3;
    font-weight: bold;
    cursor: pointer;
}

/* Style the add sets button to the left */
.my-workout-exercises li .add-sets {
  margin-right: auto;
  margin-left: 0;
  margin-top: 0px; /* Spacing from Image */
  border-radius: 4px;           /* Rounded corners */
  padding: 2px 6px;            /* Button padding */
  font-size: 12px; 
  flex-basis: 100%; /* Full width */
  text-align: left; /* Left align */
}




/* --- Sets Container Styles --- */
.sets-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

/* Titles Row */
.set-titles {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr; /* Set Number + Equal columns */
    text-align: center;
    font-weight: bold;
    padding: 5px 0; /* Add padding for spacing */
    border-bottom: 1px solid #ddd; /* Separator line */
    font-size: 12px;
}

.set-titles span {
    font-size: clamp(10px, 1.5vw, 16px); /* Shrinks between 12px and 16px */
    line-height: 1.2; /* Adjust line spacing for smaller text */
}

/* Set Input Rows */
.set-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr; /* Match column layout with .set-titles */
    align-items: center; /* Align inputs vertically */
    padding: 1px 0; /* Add padding for spacing */
    padding-bottom: 0px;
    margin-bottom: 0px;
    gap: 1px; /* Space between columns */
}

/* Set Number Column */
.set-row span {
    text-align: left;
    font-weight: bold;
    font-size: clamp(10px, 1.5vw, 16px); /* Shrinks between 12px and 16px */

}

/* Input Styling */
.set-row input {
    width: 100%; /* Inputs stretch to fill their column */
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


/* Titles Row */
.titles-row {
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    font-size: 14px;
}

/* Individual Columns */
.set-title, .set-number {
    text-align: center;
    font-size: 14px;
}

.set-input {
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Ensures inputs fill the grid cell */
    box-sizing: border-box;
}

/* Style the name */
.my-workout-exercises li a {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    flex: 1; /* Allow the name to take up remaining space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.edit-workout {
    background-color: #4caf50; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px; /* Spacing between edit and date */
    transition: background-color 0.3s ease;
}
    

.edit-workout:hover {
    background-color: #45a049;
}

.edit-workout:focus {
    outline: none;
    box-shadow: 0 0 2px 2px #4caf50;
}

.workout-date {
    font-size: 10px;
    text-align: left;
    color: #666;
    margin-left: 10px; /* Align with the delete button */
    margin-right: 10px;
}

.add-sets {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
}

.add-sets:hover {
    background-color: #0056b3;
}

.sets-dropdown {
    width: 50px; /* Shrink the width */
    height: 20px; /* Adjust height */
    padding: 1px; /* Inner spacing for better fit */
    font-size: 12px; /* Adjust font size for smaller appearance */
    text-align: center; /* Center-align the text */
    border: 1px solid #ccc; /* Add a light border for clarity */
    border-radius: 4px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}





/* Save button styling */
.save-sets, .update-sets {
    background-color: #28a745; /* Green for save button */
    color: white; /* White text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    padding: 3px 5px; /* Internal spacing */
    margin-top: 10px; /* Space above the button */
    font-size: 10px;
    cursor: pointer; /* Pointer cursor for interactivity */
}

/* Save button hover effect */
.save-sets:hover, .update-sets:hover  {
    background-color: #218838; /* Darker green */
}


.modify-sets-dropdown {
    margin-top: 0px;
    padding: 1px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modify-sets {
    background-color: #ffc107; /* Yellow for modify sets */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 1px 1px;
    cursor: pointer;
    margin-top: 10px;
}

.modify-sets:hover {
    background-color: #e0a800; /* Darker yellow */
}

/* print and email workout buttons*/
.workout-buttons {
    display: flex;           /* Use flexbox for alignment */
    justify-content: center; /* Center items horizontally */
    align-items: center;     /* Align items vertically */
    gap: 5px;               /* Space between buttons */
    margin-top: 1px;        /* Add space above buttons */
}

.print-workout-btn {
    display: none !important;
}

.email-workout-btn, .save-pdf-btn {
    background-color: gray; /* Green background */
    color: white; /* White text */
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 2px 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    justify-content: center;
    margin: 1px;
}

.print-workout-btn:hover, .email-workout-btn:hover, .save-pdf-btn:hover {
    background-color: gray; /* Slightly darker green on hover */
    transform: translateY(-2px); /* Lift effect */
}


/* Responsive Design */
@media (max-width: 600px) {
    .main-container {
        flex-direction: column;
        gap: 10px;
    }

    .column {
        width: 100%;
        padding: 10px;
        height: 300px;
    }

    #exercise-list, #workout-items {
        height: 300px;
    }

    #exercise-column, #workout-column {
        height: 200px;
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Adjust Gap for Responsive Design */
@media (max-width: 768px) {
    #auth-container {
        gap: 3px; /* Reduce the gap further for smaller screens */
    }
}

/* For smaller screens */
@media (max-width: 768px) {
    .remove-exercise {
        font-size: 12px; /* Smaller font size for smaller screens */
        padding: 4px 8px; /* Adjust padding */
    }
}


/* Responsive Design for Smaller Screens */
@media (max-width: 300px) {
    .set-row {
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: space-between; /* Ensure space is used optimally */
    }

    .set-row input {
        flex: 1; /* Allow inputs to share available space */
        max-width: 30%; /* Limit input width to fit within the row */
        min-width: 60px; /* Set a minimum width to avoid overlap */
        margin-bottom: 0; /* Remove unnecessary margins */
    }

    .set-row span {
        flex-shrink: 0; /* Prevent the label from shrinking */
        margin-right: 5px; /* Add spacing without forcing a new line */
        width: auto; /* Ensure it does not take the full width */
    }
}

#video-productions-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px; /* Space between Video Productions and My Workouts */
}

/* Hover Effect */
#video-productions-btn:hover {
    background: #45a049; /* Darker green on hover */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

/* Active (Click) Effect */
#video-productions-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#sports-science-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px; /* Space between Video Productions and My Workouts */
}

/* Hover Effect */
#sports-science-btn:hover {
    background: #45a049; /* Darker green on hover */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

/* Active (Click) Effect */
#sports-science-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
