* {
    margin: 0;
    padding: 0;
    /* font-family: "Montserrat", serif; */
}

body {
    position: relative;
    min-height: 100vh;
    background-color: #f6f7fc;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%), url('images/phone-backup_wide.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    z-index: -1;
}

hr {
    margin: 10px 0;
    border: #e3e3e3 1px solid;
}

.page-counter {
    width: 100%;
    height: 30px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    margin: 15px 0 50px;
    padding: 0 4px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.page-counter p {
    color: rgba(0, 0, 0, 1);
    font-size: 14px;
    font-weight: 600;
    line-height: 0;
    margin-left: 10px;
}

.page-boxes {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-travel-left, .page-travel-right, .page-number {
    all: unset;
    width: auto;
    height: 30px;
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: background-color 150ms ease;
    box-sizing: border-box;
}

.page-travel-left, .page-travel-right {
    background-color: #ffcf1e;
    gap: 3px;
    padding: 0 10px;
}

.page-travel-left p, .page-travel-right p {
    color: black;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.page-travel-left svg, .page-travel-right svg {
    height: 15px;
    width: auto;
    fill: black;
}

.page-number {
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid #d3d3d3;
    background-color: white;
    font-size: 12px;
    font-weight: 700;
}

.page-number:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.page-number.active {
    color: black;
    background-color: #ffcf1e;
    border: 1px solid #ffcf1e;
    cursor: default;
}

/*                                                       SIGN UP START                                                       */

.message {
    box-sizing: border-box;
    width: auto;
    height: 75px;
    padding: 0 35px 0 20px;
    background-color: rgb(190, 0, 0);
    color: white;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    box-shadow: 1px 1px 8px darkgray;
    transition: top 300ms ease;
    z-index:9999;
}

.message.show {
    top: 20px;
}

.message svg {
    fill: white;
    width: auto;
    height: 70%;
    margin: 0 15px 0 0;
}

@media only screen and (max-width: 550px) {
    .message {
        width: 95vw;
        top: 4vw;
        top: -75px;
        border-radius: 5px;
        height: 65px;
        font-size: 18px;
        justify-content: center;
        padding: 0 10px;
    }

    .message.show {
        top: 4vw;
    }

    .message p {
        margin: auto;
    }

    .message svg {
        position: absolute;
        left: 3vw;
    }
}

.form-container {
    height: auto;
    min-height: 325px;
    width: clamp(0px, 100vw, 550px);
    box-sizing: border-box;
    background-color: white;
    border: 1px solid rgb(226, 232, 238);
    margin: 60px auto 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 35px 35px 30px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.form-container h1 {
    margin-top: 10px;
    font-size: 29px;
    font-weight: 500;
}

.form-container img {
    height: 140px;
    margin: 10px 0px 35px;
}

form {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

form div {
    display: flex;
    width: 100%;
    gap: 10px;
    position: relative;
}

form input, form select {
    all: unset;
    flex: 1;
    width: 100%;
    height: 52px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 400;
    /* padding: 14px 16px; */
    padding: 0 17px;
    border-radius: 8px;
    border: 1px #d5dbe0 solid;
    transition: all 150ms ease-in-out;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

form select {
    cursor: pointer;
}

#username.invalid, #password.invalid {
    border: 1px rgb(190, 0, 0) solid;
}

form input:hover, form select:hover {
    border: 1px #ffcf1e solid;
}

form input::placeholder {
    color: #8f9497;
    transition: all 150ms ease-in-out;
    font-weight: 400;
}

form input:hover::placeholder {
    color: #6e6e6e;
}

form input:focus::placeholder {
    color: #8f9497;
}

form input:focus {
    border: 2px #ffcf1e solid;
    padding: 0 18px;
}

.input-icon input {
    /* padding: 14px 0px 14px 50px; */
    padding: 0px 50px;
}

.input-icon input:focus {
    border: 2px #ffcf1e solid;
    padding: 0px 51px;
}

svg.icon {
    position: absolute;
    left: 3%;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 27px;
    height: 52%;
    fill: #8f9497;
    transition: fill 0.3s ease;
}

.input-icon input:hover + .icon {
    fill: #ffcf1e;
}

/* Change icon color when input is focused */
.input-icon input:focus + .icon {
    fill: black;
}

/* Keep icon black if input has text (when input is not showing its placeholder) */
.input-icon input:not(:placeholder-shown) + .icon {
    fill: black;
}

form button {
    margin-top: 5px;
    flex: 1;
    font-family: "Bebas Neue", sans-serif;
    font-size: 24px;
    padding: 14px 13px;
    border-radius: 5px;
    border: none;
    background-color: #ffcf1e;
    color: black;
    cursor: pointer;
    transition: background 150ms ease-in-out;
}

form button:hover {
    background-color: black;
    color: white;
}

form button:focus {
    background-color: black;
    color: white;
}

form button:active {
    background-color: black;
    color: #ffcf1e;
}

@media only screen and (max-width: 550px) {
    .form-container {
        margin: 0px auto 0px;
        border-radius: 0;
        border: none;
        border-top: 2px #ffcf1e solid;
        padding: 35px 20px 30px;
        
    }

    form {
        gap: 12px;
    }

    form input {
        font-size: 15px;
        height: 48px;
    }

    form input:focus {
        padding: 0 17px;
    }

    .input-icon input:focus {
        padding: 0px 51px;
    }
}

.bottom-message {
    margin: 60px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-weight: 300;
    font-size: 18px;
    font-family: 'Poppins';
}

.bottom-message a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    text-decoration: underline;
}

@media only screen and (max-width: 550px) {

    .bottom-message {
        margin: 50px 0;
        font-size: 16px;
    }

}

.popup {
    opacity: 0;
    display: none;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
    transition: opacity 300ms;
}

.popup-container {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    /* aspect-ratio: 1.4; */
    padding: 30px 40px;
    background-color: white;
    border-radius: 12px;
    /* border: 4px solid #ffcf1e; */
    box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

.close-popup {
    all: unset;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 30px;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms ease;
}

.close-popup:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.close-popup svg {
    fill: black;
}

/*                                                       SIGN UP END                                                         */

/*                                                        POPUP START                                                        */

.popup#popup-confirm {
  opacity: 0;
  display: none;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  transition: opacity 300ms;
}

#popup-confirm .popup-container {
  z-index: 10000;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.2);
  padding: 28px 32px 24px; /* ⬅️ tighter bottom padding */
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px; /* ⬅️ reduced vertical spacing */
}

#popup-confirm .popup-container h2 {
  font-size: 20px;
  margin: 0;
}

#popup-confirm .popup-container p {
  font-size: 14px;
  margin: 0;
  color: #333;
}

/* Buttons container (reusing .project-create-options-container) */
.project-create-options-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.confirm-button {
  all: unset;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700; /* ⬅️ increased from 600 to 700 */
  transition: background-color 150ms;
}


.confirm-button.yes {
  background-color: #f44336;
  color: black;
}

.confirm-button.yes:hover {
  background-color: #d32f2f;
}

.confirm-button.no {
  background-color: #e0e0e0;
  color: black;
}

.confirm-button.no:hover {
  background-color: #c6c6c6;
}


/*                                                        POPUP END                                                          */

/*                                                       DASHBOARD START                                                         */

#body-dashboard {
    position: relative;
    min-height: 100vh;
    background-color: #f7f8fc;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    overflow-x: hidden;
    margin-left: 75px;
    font-family: 'Times New Roman', Times, serif;
}

nav {
    z-index: 5;
    height: 100vh;
    width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* box-sizing: content-box; */
    box-sizing: border-box;
    padding: 15px 10px;
    background-color: #101929;
    box-shadow: none;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    font-family: "Poppins", serif;
    font-size: 16px;
    font-weight: 500;
    transition: width 300ms ease-out, box-shadow 300ms ease;
}

nav:hover {
    width: 260px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

nav:hover button, nav:hover #usr-photo {
    width: 240px;
}

nav:hover p, nav:hover #usr-photo p, nav:hover #usr-photo span {
    display: block;
    opacity: 1;
}

/* nav:hover button p {
    display: block;
    color: black;
} */

.nav-head, .nav-main {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

#usr-photo {
    all: unset;
    width: 55px;
    min-height: 55px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: background-color 200ms ease-in-out, width 300ms ease-out;
}

#usr-photo:hover p {
    color: #ffcf1e;
}

#usr-photo.active {
    background-color: #ffcf1e;
}

#usr-photo.active p, #usr-photo.active span {
    color: #101929;
}

#usr-photo img {
    height: 55px;
    object-fit: cover; /* Crops the image without stretching */
    object-position: center;
    border: 2px solid #ffcf1e;
    border-radius: 6px;
    box-sizing: border-box;
}

.usr-info {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    white-space:nowrap;
}

#usr-photo p {
    all: unset;
    text-align: left;
    box-sizing: content-box;
    opacity: 0;
    line-height: 23px;
    color: white;
    transition: opacity 300ms ease, color 200ms ease, text-shadow 200ms ease;
}

#usr-photo span {
    opacity: 0;
    color: #ffcf1e;
    font-size: 12px;
    line-height: 17px;
    transition: opacity 300ms ease, color 200ms ease, text-shadow 200ms ease;
}

nav button {
    all: unset;
    position: relative;
    cursor: pointer;
    width: 55px;
    height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0px 12px;
    box-sizing: border-box;
    overflow-x:hidden;
    transition: background-color 200ms ease-in-out, width 300ms ease-out;
    gap: 0px;
}

nav button:hover {
    color: #ffcf1e;
    /* box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2); */
}

nav button.active {
    background-color: #ffcf1e;
}

nav button:hover p {
    color: #ffcf1e;
    /* text-shadow: 0 0 10px #ffcf1e, 
               0 0 20px #ffcf1e; */
}

nav button:hover svg {
    fill: #ffcf1e;
    /* filter: drop-shadow(0 0 7px #ffcf1e) 
          drop-shadow(0 0 4px #ffcf1e); */
}

nav button svg:first-child {
    display: block;
}

nav button svg:nth-child(2) {
    display: none;
}

nav button.active svg:first-child {
    display: none;
}

nav button.active svg:nth-child(2) {
    display: block;
    fill: #101929;
}

nav button.active:hover svg:nth-child(2) {
    fill: #101929;
}

nav button svg {
    height: auto;
    width: 36px;
    fill: white;
    position: absolute;
    left: 9px;
    transition: width 200ms ease-in-out, fill 200ms ease, filter 200ms ease;
}

nav button p {
    /* display: none; */
    width: 100%;
    text-align: left;
    box-sizing: content-box;
    padding-left: 50px;
    opacity: 0;
    line-height: 22px;
    text-wrap: nowrap;
    color: white;
    transition: opacity 300ms ease, color 200ms ease, text-shadow 200ms ease;
}

nav button.active p {
    color: black;
    font-weight: 600;
}

nav button.active:hover p {
    color: black;
}

.page {
    width: clamp(0px, calc(100vw - 75px), 1850px);
    min-height: 100vh;
    height: auto;
    margin: auto;
    padding: 30px 50px 50px;
    font-family: 'Poppins';
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Center the .main-box horizontally */
    justify-content: flex-start;
    position: relative;
}

.dash-row {
    width: 100%;
    height: auto;
    gap: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.dash-box {
    height: clamp(45vh, 400px, 9999vh);
    min-width: 450px;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 18px 25px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.dash-box h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.dash-box h2 span {
    min-width: 22px;
    min-height: 22px;
    margin-left: 6px;
    /* padding: 1px 5px; */
    font-size: 14px;
    line-height: 0;
    font-weight: 600;
    color: white;
    background-color: red;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-box h3 {
    font-size: 90px;
    font-size: clamp(4rem, 5.0vw, 9999px); /* Adjusts dynamically within bounds */
    white-space: nowrap; /* Prevents wrapping for larger numbers */
    overflow: hidden; /* Ensures content stays within bounds */
    text-overflow: ellipsis; /* Adds ellipsis if the text overflows */
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.dash-box h4 {
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin-bottom: 5px;
}

.dash-box h4.inc {
    color: #23d792;
}

.dash-box h4.dec {
    color: #ff2c2e;
}

#mini-requests {
    height: 100%;
    width: 100%;
    cursor: pointer;
    overflow-y: hidden;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-requests-event {
    width: 100%;
    height: 65px;
    padding: 0 5px;
    gap: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 200ms ease;
    box-sizing: border-box;
}

.mini-requests-event:hover {
    background-color: rgb(244, 244, 244);
}

.mini-requests-date {
    width: 65px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-requests-date-day, .mini-requests-date-month {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.mini-requests-date-day {
    font-size: 22px;
    line-height: 25px;
}

.mini-requests-date-month {
    font-size: 14px;
    line-height: 14px;
}

.mini-requests-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.mini-requests-name, .mini-requests-client {
    margin: 0;
    white-space: nowrap;
}

.mini-requests-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.mini-requests-client {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.mini-requests-client-logo {
    width: 75%;
    margin-right: 15px;
}

#mini-clndr {
    height: 100%;
    width: 100%;
    cursor: pointer;
    overflow-y: hidden;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-clndr-event {
    width: 100%;
    height: 65px;
    padding: 0 5px;
    gap: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 200ms ease;
    box-sizing: border-box;
}

.mini-clndr-event:hover {
    background-color: rgb(244, 244, 244);
}

.mini-clndr-date {
    width: 65px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-clndr-date-day, .mini-clndr-date-month {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.mini-clndr-date-day {
    font-size: 22px;
    line-height: 25px;
}

.mini-clndr-date-month {
    font-size: 14px;
    line-height: 14px;
}

.mini-clndr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.mini-clndr-name, .mini-clndr-client {
    margin: 0;
    white-space: nowrap;
}

.mini-clndr-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.mini-clndr-client {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.mini-clndr-client-logo {
    width: 75%;
    margin-right: 15px;
}

.mini-msg {
    height: 100%;
    width: 100%;
    cursor: pointer;
    overflow-y: scroll;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-msg-usr {
    width: 100%;
    height: 70px;
    gap: 15px;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 200ms ease;
    box-sizing: border-box;
}

.mini-msg-usr:hover {
    background-color: rgb(244, 244, 244);
}

.mini-msg-usr-photo {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    object-fit: cover; /* Crops the image without stretching */
    object-position: center;
    border-radius: 50%;
}

.mini-msg-usr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.mini-msg-usr-name, .mini-msg-usr-txt {
    margin: 0;
    white-space: nowrap;
}

.mini-msg-usr-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.mini-msg-usr-txt {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
}

/*                                                         DASHBOARD END                                                         */

/*                                                         PROJECTS START                                                         */

.page#projects {
    width: 100%;
    max-width: 1300px;
    min-width: 930px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 30px 50px 50px;
    font-family: 'Poppins';
    box-sizing: border-box;
}

.project-container {
    width: auto;
    height: auto;
    background-color: white;
    border-radius: 16px;
    padding: 0px 26px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.project-bar {
    width: 100%;
    height: 45px;
    margin: 25px 0 10px;
    border-radius: 10px;
    background-color: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

#project-create-button {
    all: unset;
    color: white;
    background-color: #23d792;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 22px 0 13px;
}

#project-create-button:hover {
    background-color: #25e199;
}

#project-create-button p {
    font-size: 15px;
    font-weight: 600;
    line-height: 0;
}

#project-create-button svg {
    fill: white;
    width: 26px;
    height: auto;
    margin: 0;
}

.project-filters, #project-create-button {
    cursor: pointer;
    height: 100%;
    width: auto;
    border-radius: 10px;
    transition: background-color 100ms ease;
}

.project-filters {
    width: auto;
    background-color: white;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    box-sizing: content-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.project-filters.inactive {
    cursor: default;
}

.project-filters.inactive .project-filter-dropdown-selected svg, 
.project-filters.inactive .project-filter-dropdown-placeholder,
.project-filters.inactive .project-filter-dropdown-selected,
.project-filters.inactive .project-filters-apply,
.project-filters.inactive .project-filters-apply svg,
.project-filters.inactive .project-filter-dropdown {
    color: rgba(0, 0, 0, 0.2);
    fill: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.project-filters.inactive .project-filter-dropdown-menu {
    display: none;
  }

.project-filters hr {
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    width: 0px;
    height: 70%;
}

.project-filters-toggle {
    all: unset;
    cursor: pointer;
    width: 45px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-filters-toggle svg {
    fill: rgba(0, 0, 0, 0.6);
    width: 45px;
    height: 25px;
    transition: fill 150ms ease;
}

.project-filters-toggle svg:first-child {
    display: block;
}

.project-filters-toggle svg:last-child {
    display: none;
}

.project-filters.inactive .project-filters-toggle svg:first-child {
    display: none;
}

.project-filters.inactive .project-filters-toggle svg:last-child {
    display: block;
}

.project-filters-toggle:hover svg {
    fill: #23d792;
}

.project-filter-dropdown {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 0;
    font-style: normal;
  }

  .project-filter-dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 0 6px;
    gap: 2px;
    border-radius: 0px;
    cursor: pointer;
    user-select: none;
    color: black;
    transition: background-color 200ms ease;
  }

  .project-filter-dropdown-selected:hover {
    color: #23d792;
  }

  .project-filter-dropdown-selected svg {
    width: 40px;
    height: 27px;
    padding: 0;
    fill: rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, fill 200ms ease;
  }

  .project-filter-dropdown-selected:hover svg {
    fill: #23d792;
  }

  .project-filter-dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 2px 10px 8px rgba(0, 0, 0, 0.2);
    margin-top: 0px;
    width: 100%;
    border-radius: 0px 0px 5px 5px;
    z-index: 1;
  }

  .project-filter-dropdown-menu.active {
    display: block;
  }

  .project-filter-dropdown-menu.active + .project-filter-dropdown-selected svg {
    transform: rotate(180deg);
  }

  .project-filter-dropdown-item {
    width: 100%;
    height: 45px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding-left: 25px;
    transition: background-color 150ms;
    font-size: 14px;
  }

  .project-filter-dropdown-item:last-child {
    border-radius: 0px 0px 5px 5px;
  }

  .project-filter-dropdown-item:hover {
    background-color: #f1f1f1;
  }

  /* .project-filter-dropdown-item.selected {
    background-color: #23d792;
    color: white;
  } */

  .project-filter-dropdown-placeholder {
    color: rgba(0, 0, 0, 0.6);
    transition: color 200ms ease;
  }

  .project-filter-dropdown-placeholder svg {
    color: rgba(0, 0, 0, 0.6);
  }

  .project-filter-dropdown-selected:hover .project-filter-dropdown-placeholder {
    color: #23d792;
  }

  .project-filter-dropdown-search {
    width: 100%;
    height: 40px;
    box-sizing: border-box;;
  }

  .project-filter-dropdown-search input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    border: 0;
  }

  #projectFilterDropdownStatus {
    width: 140px;
  }

  #projectFilterDropdownClient {
    width: 200px;
  }

.project-filters-apply {
    all: unset;
    height: 100%;
    gap: 9px;
    padding: 0 24px 0 20px;
    border-radius: 0px 10px 10px 0px;
    color: black;
    background-color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease;
}

.project-filters-apply:hover {
    background-color: #f1f1f1;
}

.project-filters-apply p {
    font-size: 14px;
    font-weight: 500;
    line-height: 0;
}

.project-filters-apply svg {
    fill: black;
    width: 20px;
    height: auto;
    margin: 0;
}

/* 
.project-filter {
    height: 100%;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.project-filter p {
    font-size: 14px;
    font-weight: 600;
    line-height: 0;
    margin: 0 15px;
}

.project-filter-status {
    position: relative;
    height: 100%;
    width: auto;
    background-color: #f6f7fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius:  8px;
    padding: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.project-filter-status-cover {
    z-index: 1;
    position: absolute;
    left: 4px;
    right: auto;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius:  6px;
    background-color: white;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
    transition: left 150ms ease-in-out;
    box-sizing: border-box;
}

.project-filter-status.active .project-filter-status-cover {
    left: 4px;
}

.project-filter-status.completed .project-filter-status-cover {
    left: 50%;
}

.project-filter-status button {
    all: unset;
    z-index: 2;
    background-color: transparent;
    height: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 0;
    width: 140px;
    text-align: center;
    cursor: pointer;
}

.project-filter-status button:first-child {
    border-radius: 8px 0px 0px 8px;
}

.project-filter-status button:last-child {
    border-radius: 0px 8px 8px 0px;
} */

.project {
    background-color: transparent;
    width: 100%;
    height: 280px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: 25px 0px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.project-container .project:last-child {
    border: none;
}

.project-banner {
    width: auto;
    height: 100%;
    position: relative;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-banner img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: scale 250ms ease-in-out;
}

.project:hover .project-banner img {
    scale: 1.05;
}

.project-info {
    flex: 1;
    height: auto;
    max-height: 170px;
    margin-left: 20px;
    overflow: hidden;
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    margin-bottom: 4px;
}

.project-client {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 10px;
}

.project-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 2px;
}

.project-status {
    font-size: 12px;
    font-weight: 600;
    line-height: 0px;
    letter-spacing: 0.5px;
    position: absolute;
    top: 25px;
    right: 0px;
    padding: 16px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.project.pending .project-status {
    color: black;
    background-color: rgb(221, 222, 223);
}

.project.preproduction .project-status {
    color: black;
    background-color: #ff6f00;
}

.project.ready .project-status {
    color: black;
    background-color: #ffcf1e;
}

.project.production .project-status {
    color: black;
    background-color: #009dff; /* medium-light blue */
}

.project.postproduction .project-status {
    color: black;
    background-color: #c042f5; /* medium lavender purple */
}


.project.completed .project-status {
    color: black;
    background-color: #23d774;
}

.project.cancelled .project-status {
    color: black;
    background-color: red;
}

.project-travel {
    position: absolute;
    bottom: 25px;
    right: 0;
    width: 250px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
}

.project-travel button svg {
    fill: black;
    margin: 0;
    height: auto;
    width: 20px;
    padding: 0;
}

.project-travel button p {
    margin-right: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 0;
}

.project-edit, .project-view {
    all: unset;
    height: 100%;
    text-align: center;
    flex: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.project-edit {
    color: black;
    background-color: #ffcf1e;
}

.project-edit:hover {
    color: black;
    background-color: #f4c61e;
}

.project-edit:active {
    color: white;
    background-color: #101929;
}

.project-view {
    background-color: rgb(221, 222, 223);
}

.project-view:hover {
    background-color: rgb(202, 204, 205);
}

.project-view:active {
    background-color: rgb(184, 185, 186);
}

/*                                                         PROJECTS END                                                         */

/*                                                     PROJECT-CREATE START                                                     */

.popup#popup-project-create {
    opacity: 0;
    display: none;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
    transition: opacity 300ms;
}

#popup-project-create .popup-container {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 490px;
    height: auto;
    aspect-ratio: unset;
    padding: 30px 32px;
    background-color: white;
    border-radius: 22px;
    box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-family: "Poppins", serif;
    gap: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-create-options-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.project-create-options-container button {
    all: unset;
    height: auto;
    text-align: center;
    flex: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 11px 0px;
    gap: 5px;
}

.project-create-options-container button svg {
    fill: black;
    margin: 0;
    height: auto;
    width: 25px;
    padding: 0;
}

.project-create-options-container button p {
    font-size: 14px;
    font-weight: 600;
}

.project-create-options-container button:first-child {
    background-color: rgb(221, 222, 223);
}

.project-create-options-container button:first-child:hover {
    background-color: rgb(202, 204, 205);
}

.project-create-options-container button:first-child:active {
    background-color: rgb(184, 185, 186);
}

.project-create-options-container button:last-child {
    color: black;
    background-color: #ffcf1e;
}

.project-create-options-container button:last-child:hover {
    color: black;
    background-color: #f4c61e;
}

.project-create-options-container button:last-child:active {
    color: white;
    background-color: #101929;
}

.project-create-options-container button:last-child:active svg {
    fill: white;
}


.close-popup {
    all: unset;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 30px;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms ease;
}

.close-popup:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.close-popup svg {
    fill: black;
}

/*                                                     PROJECT-CREATE END                                                     */

/*                                                      PROJECT-EDIT START                                                       */
  
.edit-project-form {
    position: relative;
    width: clamp(500px, 100%, 1400px);
    height: auto;
    background-color: white;
    margin: auto;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.edit-project-form h1 {
    font-size: 1.5rem;
    width: 100%;
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.edit-project-form h1 svg {
    height: auto;
    width: 2.2rem;
    margin-right: 0.7rem;
}

.project-edit-status {
    font-size: 12px;
    font-weight: 600;
    line-height: 0px;
    letter-spacing: 0.5px;
    position: absolute;
    top: -2.5rem;
    right: 0rem;
    padding: 16px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.project-edit-status.pending {
    color: black;
    background-color: rgb(221, 222, 223);
}

.project-edit-status.preproduction {
    color: black;
    background-color: #ff6f00;
}

.project-edit-status.ready {
    color: black;
    background-color: #ffcf1e;
}

.project-edit-status.production {
    color: black;
    background-color: #009dff;
}

.project-edit-status.postproduction {
    color: black;
    background-color: #c042f5;
}

.project-edit-status.completed {
    color: black;
    background-color: #23d774;
}

.project-edit-status.cancelled {
    color: black;
    background-color: red;
}

.project-edit-group {
    margin-bottom: 1.8rem;
}

.project-edit-group.banner-field {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    height: auto;
}

.project-edit-group.general {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

#project-edit input[type="text"],
  #project-edit input[type="number"],
  #project-edit input[type="date"],
  #project-edit textarea,
  #project-edit select {
    all: unset;
    width: 100%;
    height: auto;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    border: 1px #d5dbe0 solid;
    transition: all 150ms ease-in-out;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

textarea {
    resize: none;
    padding: 15px 17px;
    flex: 1;
}

select,
input[type="date"] {
    cursor: pointer;
}

.char-count {
    font-size: 0.7rem;
    margin-top: 0.3rem;
}

.project-edit-group button {
    margin-top: 0.6rem;
    padding: 0.5rem 1.4rem;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-edit-group button:hover {
    background-color: #333;
}

.banner-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 500px;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.banner-preview img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 12px;
    margin: auto;
}

.edit-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.edit-icon svg {
    fill: rgba(255, 255, 255, 0.6);
    width: 6rem;
    height: auto;
}

.banner-preview:hover .edit-icon {
    opacity: 1;
}

.project-types-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.project-type-option {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-type-option:hover {
    border-color: #ffcf1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.project-type-option.selected {
    border-color: #ffcf1e;
    background-color: rgba(255, 207, 30, 0.1);
}

.project-type-option h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.project-type-option p {
    color: #666;
    font-size: 14px;
}

.section-title {
    margin: 30px 0 20px;
    font-size: 20px;
    color: #333333;
}

.packages-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.package-option {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-option:hover {
    border-color: #ffcf1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.package-option.selected {
    border-color: #ffcf1e;
    background-color: rgba(255, 207, 30, 0.1);
}

.package-info {
    flex: 1;
}

.package-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.package-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.package-cost {
    font-weight: 600;
    color: #333333;
}

.char-count {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffcf1e; /* default = yellow */
  transition: color 0.2s ease-in-out;
}

.navigation-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.back-button,
.next-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button {
    background-color: white;
    color: #333333;
    border: 1px solid #e0e0e0;
    margin-right: 10px;
}

.next-button {
    background-color: #ffcf1e;
    color: #333333;
}

.project-edit-actions {
    height: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.project-edit-actions button svg {
    fill: black;
    margin: 0;
    height: auto;
    width: 1.5rem;
    padding: 0;
}

.project-edit-actions button p {
    margin-right: 5px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 0;
}

.project-edit-save,
.project-edit-reset {
    all: unset;
    height: auto;
    padding: 0.7rem 1.2rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.project-edit-save {
    color: black;
    background-color: #ffcf1e;
}

.project-edit-save:hover {
    color: black;
    background-color: #f4c61e;
}

.project-edit-save:active {
    color: white;
    background-color: #101929;
}

.project-edit-reset {
    background-color: rgb(221, 222, 223);
}

.project-edit-reset:hover {
    background-color: rgb(202, 204, 205);
}

.project-edit-reset:active {
    background-color: rgb(184, 185, 186);
}


/*                                                      PROJECT-EDIT END                                                     */

/*                                                       CLIENTS START                                                         */

.page#clients {
    width: 90%;
    max-width: 1300px;
    min-width: 630px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    padding: 30px 50px 50px;
    font-family: 'Poppins';
    box-sizing: border-box;
}

.client-search-bar {
    height: 47px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin: 15px 0 15px;
    gap: 10px;
}

.client-search-bar input[type="text"] {
    flex: 1;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.client-search-bar input[type="text"]:focus {
    outline: none;
    border-color: #ffcf1e;
    box-shadow: 0 0 0 2px rgba(255, 207, 30, 0.2);
}

#client-add-button {
    all: unset;
    color: white;
    background-color: #23d792;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 0 22px 0 13px;
    height: 100%;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 100ms ease;
    box-sizing: border-box;
}

#client-add-button:hover {
    background-color: #25e199;
}

#client-add-button p {
    font-size: 15px;
    font-weight: 600;
    line-height: 0;
}

#client-add-button svg {
    fill: white;
    width: 26px;
    height: auto;
    margin: 0;
}

.client-table-container {
    flex: 1;
    height: 85%;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow-y: auto;
    position: relative;
}

.client-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.client-table thead {
    background-color: #ffcf1e;
}

.client-table thead tr {
    height: 50px;
}

.client-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #d0d0d0;
    background-color: #ffcf1e;
    background-clip: padding-box;
    position: sticky;
    top: 0;
    z-index: 2;
    vertical-align: middle;
    line-height: normal;
}

.client-table thead th:first-child {
    border-top-left-radius: 6px;
}

.client-table thead th:last-child {
    border-top-right-radius: 6px;
}

.client-table tbody tr {
    height: 70px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.client-table tbody tr:hover {
    background-color: #fdf9e7;
}

.client-table tbody td {
    padding: 0px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    line-height: normal;
}

.client-table thead th:first-child,
.client-table tbody td:first-child {
    padding-left: 28px;
}

.client-info,
.company-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.company-logo {
    width: auto;
    height: 22px;
    border-radius: 0%;
    object-fit: cover;
}

.popup#popup-client-view {
  opacity: 0;
  display: none;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  transition: opacity 300ms;
}

#popup-client-view .popup-container {
  z-index: 1000;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 490px;
  padding: 30px 32px;
  background-color: white;
  border-radius: 22px;
  box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  font-family: "Poppins", serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#popup-client-details img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

#popup-client-details p {
  margin: 5px 0;
  font-size: 14px;
}

#client-delete-button {
    background-color: #f44336;
}


/*                                                       CLIENTS END                                                       */

/*                                                      EDIT-CLIENT START                                                        */

.edit-client-form {
  position: relative;
  width: clamp(500px, 100%, 950px); /* narrower max width */
  background-color: white;
  margin: auto;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 2.5rem;
  box-sizing: border-box;
}

.edit-client-form h1 {
  font-size: 1.5rem;
  width: 100%;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.edit-client-form h1 svg {
  height: auto;
  width: 2.2rem;
  margin-right: 0.7rem;
}

.client-edit-group {
  margin-bottom: 1.6rem; /* slightly tighter spacing between groups */
  display: flex;
  flex-direction: column;
  gap: 0.3rem; /* reduced gap between label and input */
}

label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem; /* reduced space below label */
}


/* Input, Select, Textarea Styling */
.edit-client-form input[type="text"],
.edit-client-form input[type="email"],
.edit-client-form input[type="tel"],
.edit-client-form input[type="number"],
.edit-client-form input[type="date"],
.edit-client-form select,
.edit-client-form textarea {
  all: unset;
  width: 100%;
  height: auto;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  border: 1px solid #d5dbe0;
  transition: all 150ms ease-in-out;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.edit-client-form textarea {
  resize: none;
  padding: 15px 17px;
  flex: 1;
}

.edit-client-form input:hover,
.edit-client-form select:hover,
.edit-client-form textarea:hover {
  border-color: #bfc7cd;
}

.edit-client-form input:focus,
.edit-client-form select:focus,
.edit-client-form textarea:focus {
  border-color: #ffcf1e;
  box-shadow: 0 0 0 2px rgba(255, 207, 30, 0.25);
}

select {
  cursor: pointer;
}

/* Profile Picture Upload */
.client-image-upload {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.banner-preview {
  position: relative;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: box-shadow 0.3s ease;
}

.banner-preview:hover {
  box-shadow: 0 0 0 4px rgba(255, 207, 30, 0.3);
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.edit-icon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50%;
}

.banner-preview:hover .edit-icon {
  opacity: 1;
}

.edit-icon svg {
  fill: white;
  width: 3.5rem; /* scale up the edit icon slightly */
  height: auto;
}

/* Autocomplete */
.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: white;
  border: 1px solid #d5dbe0;
  border-top: none;
  z-index: 20;
  display: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.autocomplete-list div {
  padding: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.autocomplete-list div:hover {
  background-color: #f0f0f0;
}

/* Address Grid */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#edit-client .name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Section Title */
.section-title {
  margin: 30px 0 15px;
  font-size: 20px;
  color: #333333;
}

/* Actions layout */
.project-edit-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
}

.project-edit-actions button {
  all: unset;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-edit-actions button svg {
  fill: black;
  width: 1.5rem;
  height: auto;
}

.project-edit-actions button p {
  margin: 0;
  line-height: 1;
}

/* Save and Reset Styles */
.project-edit-save {
  background-color: #ffcf1e !important;
  color: black !important;
}

.project-edit-save:hover {
  background-color: #f4c61e !important;
}

.project-edit-save:active {
  background-color: #101929 !important;
  color: white !important;
}

.project-edit-reset {
  background-color: rgb(221, 222, 223) !important;
  color: black !important;
}

.project-edit-reset:hover {
  background-color: rgb(202, 204, 205) !important;
}

.project-edit-reset:active {
  background-color: rgb(184, 185, 186) !important;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: rgb(190, 0, 0) !important;
  box-shadow: 0 0 0 2px rgba(190, 0, 0, 0.2);
}


/*                                                      EDIT-CLIENT END                                                      */

/*                                                        MESSAGES START                                                        */

.page#messages {
    all: unset;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px 50px 50px;
    padding: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
}

.messages-container {
    width: 100%;
    min-width: 850px;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.messages-left-container {
    position: relative;
    padding-top: 118px;
    height: 100%;
    width: 370px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.messages-left-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
  }

.messages-left-header {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 370px;
    flex: 0 0 auto;
    padding: 20px 25px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.messages-left-header h4 {
    margin-left: 5px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.messages-projects-search {
    width: 100%;
    height: auto;
    position: relative;
    transition: background-color 150ms ease;
}

.messages-projects-search svg {
    position: absolute;
    height: 22px;
    top: 7px;
    left: 10px;
    fill: rgba(0, 0, 0, 0.5);
}

.messages-projects-search input {
    all: unset;
    font-size: 14px;
    line-height: 0;
    width: 100%;
    padding: 8px 12px 8px 40px;
    border-radius: 6px;
    box-sizing: border-box;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
}

.messages-left-header input:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.messages-projects-container {
    position: relative;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: scroll; /* Enable scrolling */
    scrollbar-width: none; /* For Firefox */
}

.messages-project {
    width: 100%;
    height: 80px;
    flex: 0 0 80px;
    padding: 0 10px 0 5px;
    gap: 5px;
    position: relative;
    cursor: pointer;
    transition: background-color ease 150ms;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.messages-project:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.messages-project.active {
    background-color: rgba(0, 0, 0, 0.07);
}

.messages-project-icon {
    position: relative;
    height: 100%;
    display: flex;
    flex: 0 0 80px;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    box-sizing: border-box;
}

.messages-project-icon img {
    position: absolute; /* Stack images on top of each other */
    height: 65%;
    aspect-ratio: 1;
    border-radius: 50%;
    transition: transform 300ms ease, z-index 300ms ease, box-shadow 300ms ease;
}

.messages-project-icon img:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    z-index: 2;
    box-shadow: 2px 0px 3px rgba(0, 0, 0, 0.15);
}

.messages-project-icon img:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    z-index: 1;
}

.messages-project:hover img:nth-child(1) {
    transform: translate(-40%, -50%);
    z-index: 1;
    box-shadow: none;
}

.messages-project:hover img:nth-child(2) {
    transform: translate(-60%, -50%);
    z-index: 2;
    box-shadow: 2px 0px 3px rgba(0, 0, 0, 0.15);
}

.messages-project-info {
    width: 100%;
    height: 100%;
    flex: 0 0 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    white-space: nowrap; /* Prevents wrapping for larger numbers */
    overflow: hidden; /* Ensures content stays within bounds */
    text-overflow: ellipsis;
}

.messages-project-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap; /* Prevents wrapping for larger numbers */
    overflow: hidden; /* Ensures content stays within bounds */
    text-overflow: ellipsis; /* Adds ellipsis if the text overflows */
}

.messages-project-latest {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap; /* Prevents wrapping for larger numbers */
    overflow: hidden; /* Ensures content stays within bounds */
    text-overflow: ellipsis; /* Adds ellipsis if the text overflows */
}

.messages-project.unread .messages-project-name {
    font-weight: 600;
}

.messages-project.unread .messages-project-latest {
    font-weight: 600;
}

.messages-right-none {
    height: 100%;
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.messages-right-none svg {
    height: 120px;
    width: auto;
    fill: #101929;
}

.messages-right-none h1 {
    color: #101929;
    font-size: 20px;
    font-weight: 700;
}

.messages-right-none p {
    color: #101929;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-wrap: wrap;
}

.messages-right-container {
    height: 100%;
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.messages-chat-header {
    width: 100%;
    height: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.messages-chat-header button {
    all: unset;
    cursor: pointer;
    width: auto;
    height: auto;
    padding: 3px;
    border-radius: 6px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    position: relative;
}

.messages-chat-header button svg {
    height: 27px;
    width: auto;
    fill: black;
    transition: fill 150ms ease;
}

/* FIGURE OUT WHY THIS ISN'T PRIORITIZED */

.messages-chat-options {
    background-color: red;
    border-radius: 5px;
}

.messages-options-popup {
    display: none;
    background-color: white;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    border-radius: 12px 0px 12px 12px;
    padding: 5px;
    position: absolute;
    top: 70px;
    /* left: calc(50px/2); */
    /* transform: translateX(-50%); */
    right: 10px;
    box-sizing: content-box;
}

.messages-options-popup.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.messages-options-popup button {
    all: unset;
    cursor: pointer;
    width: 150px;
    height: auto;
    aspect-ratio: unset;
    padding: 12px 14px;
    gap: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 250ms ease;
}

.messages-options-popup button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.messages-options-popup button:hover svg {
    fill: black;
}

.messages-options-popup button:first-child {
    border-radius: 8px 0px 0 0;
}

.messages-options-popup button:last-child {
    border-radius: 0 0 8px 8px;
}

.messages-options-popup button svg {
    all: unset;
    fill: black;
    height: 10%;
    width: auto;
}

.messages-options-popup button p {
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 0;
}

.messages-chat-options-delete svg, .messages-chat-options-delete p {
    color: red;
    fill: red;
}

.messages-chat-info {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

.messages-chat-info h1 {
    font-size: 16px;
    font-weight: 500;
    line-height: 0;
}


.messages-chat-container {
    width: 100%;
    height: 100%;
    padding: 17px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.messages-chat {
    width: 100%;
    height: auto;
    gap: 5px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
}

.messages-chat.received {
    flex-direction: row;
    align-items: flex-end;
}

.messages-chat.sent {
    flex-direction: row-reverse;
    align-items: flex-start;
}

.messages-chat.sent .messages-chat-text {
    align-items: flex-end;
}

.messages-chat-icon {
    height: 100%;
    width: 37px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.messages-chat-icon img {
    width: 90%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.messages-chat-text {
    height: auto;
    width: auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 3px;
}

.messages-chat-text p {
    width: auto;
    background-color: #efefef;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-wrap: wrap;
    transition: border-radius 200ms ease-in-out;
}

.messages-chat-attachment-project {
    cursor: pointer;
    width: 320px;
    height: auto;
    background-color: #efefef;
    padding: 3px 13px 5px;
    padding: 0;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-wrap: nowrap;
    transition: border-radius 200ms ease-in-out;
    overflow: hidden;
    text-overflow: hidden;
}

.messages-chat-attachment-project-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 14px 14px 0 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.messages-chat-attachment-project span {
    text-overflow:clip;
    white-space:hidden;
    
}




.messages-chat.sent .messages-chat-attachment-project:last-child {
    border-radius: 20px 5px 20px 20px;
}

.messages-chat.sent .messages-chat-attachment-project {
    border-radius: 20px 5px 5px 20px;
}

.messages-chat.sent .messages-chat-attachment-project:first-child {
    border-radius: 20px 20px 5px 20px;
}

.messages-chat.received .messages-chat-attachment-project:first-child {
    border-radius: 20px 20px 20px 5px;
}

.messages-chat.received .messages-chat-attachment-project:last-child {
    border-radius: 5px 20px 20px 20px;
}

.messages-chat.received .messages-chat-attachment-project {
    border-radius: 5px 20px 20px 5px;
}

.messages-chat.received .messages-chat-attachment-project:first-child {
    border-radius: 20px 20px 20px 5px;
}






.messages-chat-attachment-project span {
    width: 100%;
    padding: 0;
    font-size: 14px;
    text-wrap: wrap;
    margin: 10px 15px;
}

.messages-chat-attachment-project:hover span {
    text-decoration: underline;
}

.messages-chat-attachment-project-banner img {
    width: 100%; /* Ensure the image covers the width of the banner */
    height: 100%; /* Ensure the image fills the height of the banner */
    object-fit: cover; /* This ensures the image covers the area without distortion */
    object-position: center; /* Centers the image */
}




.messages-chat-attachment-file {
    /* width: clamp(320px, auto, 99999px); */
    width: auto;
    max-width: 550px;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 10px;
    border-radius: 20px;
    background-color: #efefef;
    box-sizing: border-box;
    cursor: pointer;
    text-overflow: ellipsis;
    gap: 3px;
}

.messages-chat-attachment-file-icon {
    height: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.08);
    background-color: transparent;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
}

.messages-chat-attachment-file-icon svg {
    height: 60%;
    width: auto;
    fill: black;
}

.messages-chat-attachment-file-info {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat-attachment-file-name {
    all: unset;
    width: 100%;
    height: auto;
    line-height: auto;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: text-decoration 0.3s;
    padding-right: 12px;
    box-sizing: border-box;
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

.messages-chat-attachment-file:hover .messages-chat-attachment-file-name {
    text-decoration: underline;
}

.messages-chat-attachment-file-size {
    all: unset;
    width: 100%;
    height: auto;
    line-height: auto;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
}

@keyframes panText {
    0% { transform: translateX(0); }
    50% { transform: translateX(var(--text-move)); }
    100% { transform: translateX(0); }
  }
  
  .messages-chat-attachment-file:hover .messages-chat-attachment-file-name {
    animation: panText var(--anim-duration) linear infinite;
  }
  




.messages-chat.sent .messages-chat-text p:last-child {
    border-radius: 20px 5px 20px 20px;
}

.messages-chat.sent .messages-chat-text p {
    border-radius: 20px 5px 5px 20px;
}

.messages-chat.sent .messages-chat-text p:first-child {
    border-radius: 20px 20px 5px 20px;
}

.messages-chat.received .messages-chat-text p:first-child {
    border-radius: 20px 20px 20px 5px;
}

.messages-chat.received .messages-chat-text p:last-child {
    border-radius: 5px 20px 20px 20px;
}

.messages-chat.received .messages-chat-text p {
    border-radius: 5px 20px 20px 5px;
}

.messages-chat.received .messages-chat-text p:first-child {
    border-radius: 20px 20px 20px 5px;
}

.messages-chat-time {
    width: 100%;
    margin: 13px 0 7px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

.messages-chat-footer {
    width: 100%;
    /* min-height: 55px; */
    height: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0px;
    gap: 0px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.messages-chat-footer button {
    position: relative;
    all: unset;
    cursor: pointer;
    width: auto;
    height: 55px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.messages-chat-footer button svg {
    height: 50%;
    width: auto;
    fill: black;
    transition: fill 150ms ease;
}

.messages-chat-footer button:hover svg {
    fill: #ffcf1e;
}

.messages-attachments-popup {
    display: none;
    background-color: white;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    border-radius: 12px 12px 12px 0px;
    padding: 5px;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 10px;
    box-sizing: content-box;
}

.messages-attachments-popup.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.messages-attachments-popup button {
    all: unset;
    cursor: pointer;
    width: 240px;
    height: auto;
    aspect-ratio: unset;
    padding: 12px 14px;
    gap: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 250ms ease;
}

.messages-attachments-popup button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.messages-attachments-popup button:hover svg {
    fill: black;
}

.messages-attachments-popup button:first-child {
    border-radius: 8px 8px 0 0;
}

.messages-attachments-popup button:last-child {
    border-radius: 0 0 8px 0px;
}

.messages-attachments-popup button svg {
    fill: black;
    height: 50%;
    width: auto;
}

.messages-attachments-popup button p {
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 0;
}

.messages-chat-content {
    position: relative;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.messages-chat-content textarea {
    all: unset; /* Reset all styles */
    position: relative;
    height: auto;
    box-sizing: border-box; /* Include padding and borders in height/width calculations */
    width: 100%; /* Full width */
    font-size: 14px; /* Base font size */
    font-weight: 400; /* Regular weight */
    line-height: 1.4; /* Controls vertical spacing between lines */
    margin: 0; /* Reset default margins */
    padding: 17px 0; /* Minimal padding for spacing */
    overflow-y: hidden; /* Hide overflow initially */
    resize: none; /* Disable manual resizing */
    white-space: pre-wrap; /* Maintain wrapping for long text */
    overflow-wrap: break-word; /* Break long words */
    resize: none; /* Prevent manual resizing */
    overflow: hidden;
    min-height: 40px; /* Set a minimum height */
    max-height: 200px;
}

.messages-chat-content svg {
    height: 60%;
    width: auto;
    fill: black;
    transition: fill 150ms ease;
}

.popup-container-messages {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 90vh;
    max-height: 990px;
    aspect-ratio: unset;
    padding: 30px 32px;
    background-color: white;
    border-radius: 18px;
    box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-family: "Poppins", serif;
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.popup-container-messages input {
    all:unset;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

.popup-container-messages input:hover {
    border: 1px solid #ffcf1e;
}

.messages-share-project-container {
    height: auto;
    flex: 1;
    width: 100%;
    overflow-y: scroll;
    display: flex;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
    gap: 10px;
    box-sizing: border-box;
}

.messages-share-project-container::-webkit-scrollbar {
    width: 0px;  /* Set width to 0 for vertical scrollbar */
    height: 0px; /* Set height to 0 for horizontal scrollbar */
}

/* For Firefox (to hide the scrollbar there as well) */
.messages-share-project-container {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.messages-share-project-item {
    height: 270px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 16px;
    padding: 14px 14px 0px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    transition: background-color 150ms ease;
}

.messages-share-project-item.active {
    background-color: #ffcf1e;
    border: 1px solid #ffcf1e;
}

.messages-share-project-item.active p {
    font-weight: 500;
    color: black;
}

.messages-share-project-item-banner {
    width: 100%; /* Full width of the parent container */
    height: 210px; /* Fixed height */
    border-radius: 10px;
    overflow: hidden; /* Ensures the image doesn't overflow outside the banner */
    position: relative;
}

.messages-share-project-item-banner img {
    width: 100%; /* Ensure the image covers the width of the banner */
    height: 100%; /* Ensure the image fills the height of the banner */
    object-fit: cover; /* This ensures the image covers the area without distortion */
    object-position: center; /* Centers the image */
    transition: scale 300ms ease;
}

.messages-share-project-item:hover .messages-share-project-item-banner img {
    scale: 1.05;
}

.messages-share-project-item p {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    font-size: 15px;
    font-weight: 400;
    line-height: 100%;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.messages-share-profile-container {
    height: auto;
    flex: 1;
    width: 100%;
    overflow-y: scroll;
    display: flex;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 2 equal columns */
    gap: 10px;
    box-sizing: border-box;
    grid-auto-rows: min-content;
}

.messages-share-profile-container::-webkit-scrollbar {
    width: 0px;  /* Set width to 0 for vertical scrollbar */
    height: 0px; /* Set height to 0 for horizontal scrollbar */
}

/* For Firefox (to hide the scrollbar there as well) */
.messages-share-profile-container {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.messages-share-profile-item {
    /* height: 270px; */
    height: auto;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 16px;
    padding: 14px 14px 10px;
    cursor: pointer;
    display: flex;
    flex: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    align-self: start;
    transition: background-color 150ms ease;
}

.messages-share-profile-item.active {
    background-color: #ffcf1e;
    border: 1px solid #ffcf1e;
}

.messages-share-profile-item.active .messages-share-profile-name {
    color: black;
}

.messages-share-profile-item-banner {
    width: 100%; /* Full width of the parent container */
    /* height: 210px; */
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden; /* Ensures the image doesn't overflow outside the banner */
    position: relative;
}

.messages-share-profile-item-banner img {
    width: 100%; /* Ensure the image covers the width of the banner */
    height: 100%; /* Ensure the image fills the height of the banner */
    object-fit: cover; /* This ensures the image covers the area without distortion */
    object-position: center; /* Centers the image */
    transition: scale 300ms ease;
}

.messages-share-profile-item:hover .messages-share-profile-item-banner img {
    scale: 1.05;
}

.messages-share-profile-name {
    width: 100%;
    height: auto;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 7px 0;
    font-size: 18px;
    font-weight: 400;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.messages-share-profile-position {
    width: 100%;
    height: auto;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0px;
    font-size: 14px;
    font-weight: 300;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.messages-share-project-container {
    height: auto;
    flex: 1;
    width: 100%;
    overflow-y: scroll;
    display: flex;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
    gap: 10px;
    box-sizing: border-box;
}

.messages-share-project-container::-webkit-scrollbar {
    width: 0px;  /* Set width to 0 for vertical scrollbar */
    height: 0px; /* Set height to 0 for horizontal scrollbar */
}

/* For Firefox (to hide the scrollbar there as well) */
.messages-share-project-container {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.messages-share-actions {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0px;
}

.messages-share-actions button {
    all: unset;
    height: auto;
    text-align: center;
    flex: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 11px 0px;
    gap: 5px;
}

.messages-share-actions button svg {
    fill: black;
    margin: 0;
    height: auto;
    width: 25px;
    padding: 0;
}

.messages-share-actions button p {
    font-size: 14px;
    font-weight: 600;
}

.messages-share-actions button:first-child {
    background-color: rgb(221, 222, 223);
}

.messages-share-actions button:first-child:hover {
    background-color: rgb(202, 204, 205);
}

.messages-share-actions button:first-child:active {
    background-color: rgb(184, 185, 186);
}

.messages-share-actions button:last-child {
    color: black;
    background-color: #ffcf1e;
}

.messages-share-actions button:last-child:hover {
    color: black;
    background-color: #f4c61e;
}

.messages-share-actions button:last-child:active {
    color: white;
    background-color: #101929;
}

.messages-share-actions button:last-child:active svg {
    fill: white;
}

/*                                                        MESSAGES END                                                        */

/*                                                        OFFERS START                                                        */

.page#offers {
    position: relative;
    width: 100%;
    max-width: 1300px;
    min-width: 930px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 30px 50px 50px;
    font-family: 'Poppins';
    box-sizing: border-box;
}

.offers-container {
    width: 100%;
    height: auto;
    padding: 14px 0px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/*                                                        OFFERS END                                                        */










/*                                                       FOOTER START                                                       */

footer {
    margin-top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-self: center;
    flex-wrap: nowrap;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.top-footer {
    background-color: #1a1a1a;
    color: white;
    height: 78px;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
}

.footer-left {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
}

.footer-left img {
    height: 32px;
    margin: auto 21px auto 27px;
}

.license {
    height: 100%;
    width: auto;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.license p {
    font-size: 13px;
    font-weight: 300;
}

.bottom-footer {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: black;
}

.social {
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    height: auto;
    width: auto;
    font-size: 15px;
    font-weight: 300;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    margin: 12px 20px;
}

@media only screen and (max-width: 550px) {
    footer {
        margin-top: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-self: center;
        flex-wrap: nowrap;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
    }
    
    .top-footer {
        background-color: #1a1a1a;
        color: white;
        height: 78px;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: flex-start;
    }
    
    .footer-left {
        width: auto;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: flex-start;
    }
    
    .footer-left img {
        height: 32px;
        margin: auto 21px auto 27px;
    }
    
    .license {
        height: 100%;
        width: auto;
        display: flex;
        flex-direction: column;
        align-content: flex-start;
        justify-content: center;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        padding-right: 1.6rem;
    }
    
    .license p {
        font-size: 0.6rem;
        font-weight: 300;
        line-height: 13px;
    }
    
    .bottom-footer {
        width: 100%;
        height: 43px;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: space-evenly;
        padding: 0 0px;
        box-sizing: border-box;
        background-color: black;
    }
    
    .social {
        text-decoration: none;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        height: auto;
        width: auto;
        font-size: 14px;
        font-weight: 300;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        margin: 12px 20px;
        margin: auto 5px;
    }
}

/*                                                       FOOTER END                                                         */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 1px solid #d5dbe0; /* Match the border with your existing styles */
    -webkit-text-fill-color: black; /* Set the text color */
    -webkit-box-shadow: 0 0 0px 1000px white inset; /* Set the background color */
    box-shadow: 0 0 0px 1000px white inset; /* For other browsers */
    transition: background-color 5000s ease-in-out 0s; /* Prevent the transition delay */
}