body {
    background-color: var(--primary-colour);
}

.brand {
    font-family: Lato, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4F;
}


.red-o {
    color: #E84610;
}

.thin {
    font-weight: 300;
}

.light-bg {
    background-color: #fff;
}

.dark-bg {
    background-color: #445261;
}

.main-bg {
    background-color: var(--primary-colour);
}

.card {
    border: none;
    background-color: transparent;
}

.image-container {
    position: relative;
}

.image-flash {
    position: absolute;
    bottom: 5%;
    min-width: 30%;
    left: -2px;
    background-color: #188181;
}

.scale {
    width: 100%;
    height: auto;
}

.author {
    color: white;
    margin: 4px;
    text-transform: uppercase;
}

.masthead {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    height: 33vh;
    width: 100%;
}

.masthead-text {
    background-color: #445261;
    color: white;
    position: relative;
}

.masthead-image {
    position: relative;
    overflow: hidden;
}

.masthead-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 90%;
    height: 100%;
    width: 150%;
    background: #445261;
    -webkit-transform: skew(15deg);
    -moz-transform: skew(15deg);
    transform: skew(15deg);
    z-index: 100;
}

.post-link {
    text-decoration: none;
    color: #445261;
}

.post-link:hover,
.page-link {
    color: #E84610;
}

.post-title {
    margin-top: 10%;
    margin-left: 5%;
}

.post-subtitle {
    margin-left: 5%;
    color: lightgray;
}

.btn-signup,
.btn-edit {
    background-color: #188181;
    color: #fff;
}

.btn-signup:hover,
.btn-signup:active {
    background-color: #fff;
    color: #23BBBB;
}

.link {
    color: #23BBBB;
    text-decoration: none;
}

.link:hover,
.link:active {
    color: #445261;
    text-decoration: underline;
}

.btn-like {
    color: #E84610;
    border: none;
    background: transparent;
}

.btn-delete {
    color: #fff;
    background: #E84610;
}

.btn-like:hover,
.btn-like:active {
    color: #E84610;
    background: transparent;
    border: none;
}

.faded {
    color: rgb(172, 175, 175);
}

.approval {
    color: rgb(222, 146, 168);
}




/* Custom Styles */


:root {
    --primary-colour: #121212;
    --secondary-colour: #2E2E2E;
    --highlight-colour: #00bbff;
    --description: #BFBFBF;
    --text-white: #FFFFFF;
}

/* Base typography */
body,
button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

*, *::before, *::after {
  font-family: inherit;
}


main {
    width: 100vw;
    background-color: var(--primary-colour);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
}

p {
   color: var(--text-white);
}

label {
    color: var(--text-white);
}

a {
    color: var(--highlight-colour);
    text-decoration: none;
}
a:hover {
    color: var(--highlight-colour);
    text-decoration: underline;
}

.btn {
    color: var(--highlight-colour);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    color: var(--highlight-colour);
    text-decoration: underline;
}


.navbar {
    background-color: var(--secondary-colour);
    color: var(--text-white);
}

/* Make the navbar toggler (hamburger icon) white */
.navbar-toggler {
  border-color: var(--text-white);/* Optional: white border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link {
    color: var(--text-white);
    font-weight: bold;
}

.nav-link:hover {
    color: var(--highlight-colour);
}

.nav-link.active {
  color:  var(--text-white) !important;
}


/* Logout page styles */

.btn-signup {
  background-color: #0d6efd;
  color: white;
  border: 2px solid transparent; /* Define a transparent border initially */
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-signup:hover {
  border-color: var(--highlight-colour); /* Border changes on hover */
  color: var(--highlight-colour);        /* Text color also changes */
}

/* modal buttons */
.modal-body .btn {
  color: white;
}

.modal-dialog .btn {
  color: var(--text-white);
}


.modal-content {
  background-color: var(--secondary-colour);
}

.modal-content {
  color: var(--text-white);
}






/* Login page styles */



/* General container styling */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Full height */
    background-color: var(--background-colour);
    /* Set a background color */
}

/* Login box */
.row {
    background: var(--primary-colour);
    /* Background color */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    text-align: center;
    width: 100%;
    max-width: 500px;
    /* Set max width */
}

/* Headings */
h3 {
    color: var(--text-white);
    /* Text color */
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraph styling */
p {
    color: var(--text-light);
    /* Lighter text color */
    font-size: 1rem;
}

/* Form inputs */
.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid var(--secondary-colour);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--input-background);
    color: var(--text-dark);
}

/* Button styling */
.btn-signup {
    background-color: var(--button-colour);
    color: var(--text-white);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-top: 15px;
    width: 100%;
}

.btn-signup:hover {
    background-color: var(--button-hover);
}

/* Link styling */
.link {
    color: var(--highlight-colour);
    text-decoration: none;
    font-weight: bold;
}

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



.header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 12px 20px;
    z-index: 1000;
    background-color: var(--secondary-colour);
    color: var(--text-white);
    border-bottom: 1px solid var(--description);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-actions h1 {
    margin: 0 auto;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.header-actions a {

    position: absolute;
    left: 16px;

}



.sticky-search-bar {
    position: fixed;
    height: 10vh;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.footer-actions {
    position: fixed;
    display: flex;
    justify-content: space-between;
    /* CRUCIAL: pushes children apart */
    align-items: center;
    bottom: 0;
    width: 100%;
    min-height: 60px;
    height: 10%;
    padding: 10px 20px;
    background-color: var(--primary-colour);
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--description);
}

.footer-actions button {
    width: 30%;
    height: 90%;
    font-size: 1rem;
    background-color: var(--text-white);
    color: var(--primary-colour);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-actions button:hover {
    background-color: var(--highlight-colour);
    color: white;
}

.footer {
    background-color: var(--primary-colour);
}


/* Progress styles */

#workoutChart {
  max-height: 150px;
}

.progress-data-container {
    background-color: var(--secondary-colour);
}


/* Workout Title Styles */

.workout-title-wrapper {
    display: flex;
    justify-content: center;
    /* centers horizontally */
    margin: 20px 0;
    /* optional vertical spacing */
}

.workout-title-wrapper input {
    width: 90%;
    /* full width of its container */
    padding: 12px 20px;
    /* comfortable padding inside */
    font-size: 1.3rem;
    /* larger readable text */
    font-weight: 600;
    /* slightly bold for emphasis */
    text-align: center;
    /* center the text inside the input */
    border: 2px solid var(--primary-colour);
    /* clean border with your primary color */
    border-radius: 12px;
    /* smooth rounded corners */
    background-color: var(--background-light, #f9f9f9);
    /* light background, fallback color */
    color: var(--primary-colour);
    /* text color matching primary */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* subtle shadow for depth */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    /* remove default outline */
    cursor: text;
}

.workout-title-wrapper input:focus {
    border-color: var(--highlight-colour, #ff7f50);
    /* highlight border on focus */
    box-shadow: 0 0 8px var(--highlight-colour, #ff7f50);
    background-color: white;
}




/* Workout List Styles */

.section-header {
    background-color: var(--secondary-colour);
    color: var(--text-white);
    /* Background color */
    width: 100vw;
    /* Full width */
    height: 15vh;
    /* 10% of the viewport height */
    display: flex;
    /* Use Flexbox */
    justify-content: space-between;
    /* Push elements to left and right */
    align-items: center;
    /* Vertically center elements */
    padding: 0 20px;
    /* Space around content */
    box-sizing: border-box;
    /* Prevent width overflow */
    padding: 2%;

    border-bottom: 2px solid var(--text-white);
}

.header {
    background-color: var(--primary-colour);
    color: var(--text-white);
    /* Background color */
    width: 100vw;
    /* Full width */
    height: 15vh;
    /* 10% of the viewport height */
    display: flex;
    /* Use Flexbox */
    justify-content: space-between;
    /* Push elements to left and right */
    align-items: center;
    /* Vertically center elements */
    padding: 0 20px;
    /* Space around content */
    box-sizing: border-box;
    /* Prevent width overflow */
    padding: 2%;

}

.create-workout-btn {
    background-color: var(--secondary-colour);
    color: var(--text-white);
    padding: 12px 24px;
    /* Increases the size by adding padding */
    font-size: 1.2rem;
    /* Increases the font size */
    border-radius: 8px;
    /* Optional: Adds rounded corners for a smoother look */
    cursor: pointer;
    /* Optional: Changes the cursor on hover */
    border: 2px solid var(--text-white);
    /* Ensures there is no border */
    transition: background-color 0.3s ease;
    /* Smooth hover transition */
}

.create-workout-btn:hover {
    color: var(--highlight-colour);
    border-color: var(--highlight-colour);
}

.search-excersises-input {
    width: 100%;
    height: 100%;
}


.workout-list {
    height: 100vh;
    /* Full viewport height */
    background-color: var(--primary-colour);
    padding-top: 2%;
    /* Add padding to the top */
    padding-bottom: 2%;
    overflow-y: auto;
    /* Enable vertical scrolling */
}

.workout-item {
    display: flex;
    justify-content: space-between;
    /* Splits into two columns */
    align-items: center;
    /* Keeps content vertically aligned */
    padding: 2%;
    margin: 2%;
    background-color: var(--secondary-colour);
    color: white;
}

/* Left side: Workout details stacked */
.workout-details {
    display: flex;
    flex-direction: column;
    /* Stacks elements on top of each other */
    align-items: flex-start;
    /* Aligns text to the left */
}

/* Right side: Options button */
.options-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


.options-btn:hover {
    color: var(--highlight-colour);
    border-color: var(--highlight-colour);
}


.workout-item h3,
p {
    color: var(--description);
}



/* Create new workout styles */

body {
    background-color: var(--primary-colour);
}

/* Unique styles for the 'Create Workout' page */
.create-workout-container {
    font-family: Arial, sans-serif;
    background-color: var(--primary-colour);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.create-workout-container h1 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 20px;
    text-align: center;
    width: 95%;
    max-width: 800px;
}

.create-workout-container form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 95%;
    max-width: 800px;
}

.create-workout-container input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: var(--primary-colour);
    color: var(--text-white);
}

.create-workout-container button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: var(--text-white);
    color: var(--primary-colour);
    border: none;
    border-radius: 4px;
    border-radius: 50px;
    /* Increased border-radius for a more noticeable curve */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.create-workout-container button:hover {
    background-color: var(--highlight-colour);
    color: white;
}

@media screen and (max-width: 600px) {
    .create-workout-container h1 {
        font-size: 1.5rem;
        /* Adjust header size for smaller screens */
    }

    .create-workout-container input[type="text"],
    .create-workout-container button {
        width: 100%;
        /* Full width on smaller screens */
    }
}


/* Add excersises styles */

.exercise-list {
    flex: 1 1 auto;
    /* fill available space in main */
    height: 100vh;
    overflow-y: auto;
}

.exercise-item {
    display: flex;
    justify-content: space-between;
    /* Distributes space between the columns */
    align-items: center;
    /* Keeps content vertically aligned */
    padding: 2%;
    border-top: 1px solid var(--text-white);
    border-bottom: 1px solid var(--text-white);
    background-color: var(--secondary-colour);
    color: white;
}

.image-container {
    flex: 0 0 25%;
    /* Image takes up 25% of the width */
}

.image-container img {
    width: 50%;
    /* Ensure the image fills the container */
}

.exercise-details {
    flex-grow: 1;
    /* Takes up remaining space */
    margin-left: 20px;
}



/* Custom style for checkbox */


.circle-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: clamp(18px, 1.5vw, 28px);
    height: clamp(18px, 1.5vw, 28px);
    font-size: clamp(12px, 1.2vw, 20px);
    border: 2px solid var(--text-white); /* Dark grey/black outline */
    border-radius: 50%;      /* Makes it a circle */
    background-color: transparent; /* Keeps it unfilled */
    cursor: pointer;
}

/* When checked: black background + white tick */
.circle-checkbox:checked {
    background-color: var(--primary-colour);
    border-color: var(--primary-colour);
  }
  
  .circle-checkbox:checked::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
  }




/* Reps and sets styles */

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.custom-table th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    align-items: center;
    width: 100%;
}

.custom-table th {
    background-color: #f2f2f2;
}

.custom-table .exercise-name {
    font-size: 1.2em;
    font-weight: bold;
}

.workout-exercises {
    position: absolute;
    margin-top: 10vh;
    width: 100%;
    top: 10%;
    bottom: 10%;
    overflow-y: scroll;
}

.exercise {
    margin: 5%;
    padding: 2%;
    background-color: var(--secondary-colour);
    color: var(--text-white);
}

.workout-excersises {
    height: 100vh;
    background-color: var(--primary-colour);
    padding-top: 2%;
    /* Add padding to the top */
    padding-bottom: 2%;
    overflow-y: auto;

}

.excersise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.exercise .btn {
    color: var(--text-white);
}