.form-inputs-container {
    display: flex;
    flex-direction: column;
}

.form-submit {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    font-size: 20px;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 500;
    border: none;
    outline: none;
    cursor: pointer;
}

.link-button {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 20px;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 500;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.post-button-form {
    width: 100%;
    height: 50px;
}

.post-button {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 20px;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 500;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.link-button.highlighted, .post-button.highlighted {
    background: var(--gradient);
}

.link-button.grey, .post-button.grey {
    background: var(--grey2);
}

.link-button.red, .post-button.red {
    background: var(--red);
}

.link-button.green, .post-button.green {
    background: var(--green);
}

.link-button.orange, .post-button.orange {
    background: var(--orange);
}

.link-button img, .post-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.link-button p, .post-button p {
    margin: 2px 0 0 0;
}

.link-button-hollow {
    width: calc(100% - 6px);
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    color: var(--highlight);
    border-radius: 15px;
    font-size: 20px;
    font-family: 'Avenir Next', sans-serif;
    font-weight: 500;
    border: 3px solid var(--highlight);
    outline: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
}

.form-input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-input-container.no-margin {
    margin-bottom: 0;
}

.form-text-input {
    height: 41px;
    padding: 0 14px;
    outline: none;
    background-color: white;
    border: 2px solid var(--grey2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-text-input::placeholder {
    color: var(--grey2);
}

.form-textarea-input {
    height: 200px;
    resize: vertical;
    padding: 10px 14px;
    outline: none;
    background-color: white;
    border: 2px solid var(--grey2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-textarea-input::placeholder {
    color: var(--grey2);
}

.form-input-container:focus-within .form-text-input, .form-input-container:focus-within .form-textarea-input, .form-input-container:focus-within .form-select-container {
    border-color: var(--highlight);
    box-shadow: 0 0 15px 2px var(--highlight);
}

.form-text-input-label {
    margin: 0 0 0 10px;
    color: var(--grey2);
    font-size: 15px;
    font-weight: 500;
    height: 25px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease-in-out;
}

.form-input-container:focus-within .form-text-input-label {
    color: var(--highlight);
}

.form-input-max-counter {
    width: calc(100% - 20px);
    margin: 0 10px 0 10px;
    color: var(--grey2);
    font-size: 15px;
    font-weight: 500;
    height: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: color 0.2s ease-in-out;
    text-align: right;
}

.form-input-max-counter.text-danger {
    color: var(--red);
}

.form-text-input-error {
    font-size: 15px;
    font-weight: 500;
    color: var(--orange) !important;
    margin: 7px 0 0 10px;
}

.form-select-container {
    height: 41px;
    border: 2px solid var(--grey2);
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: white;
    overflow: hidden;
    z-index: 100;
}

.form-select-input {
    height: 41px;
    width: 100%;
    margin-right: -45px;
    padding: 0 14px;
    outline: none;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    /* Safari-specific fixes */
    -webkit-appearance: none; /* Remove default dropdown arrow */
    -moz-appearance: none;
    appearance: none;
    /* Ensure consistent height and alignment */
    line-height: normal;
    z-index: 100;
}

.form-select-input::-ms-expand {
    display: none; /* Hide dropdown arrow in IE */
}

.form-dropdown-container {
    height: 41px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey2);
    transition: background-color 0.2s ease-in-out;
    z-index: 1000;
    pointer-events: none;
    flex-shrink: 0;
}

.form-input-container:focus-within .form-dropdown-container {
    background-color: var(--highlight);
}

.select-form-img {
    width: 34px;
    height: 34px;
    transition: 0.2s transform ease-in-out;
}

.select-create-button {
    border: solid var(--grey2);
    border-width: 0 2px 2px 2px;
    outline: none;
    background-color: white;
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    font-size: 16px;
    font-weight: 500;
    border-radius: 0 0 15px 15px;
    margin-top: -15px;
    padding-top: 15px;
    /*box-shadow: var(--drop-shadow);*/
    cursor: pointer;
    z-index: 1;
}

.select-create-button img {
    width: 30px;
    height: 30px;
}

.select-create-button p {
    margin: 2px 0 0 2px;
}

.date-form-img {
    width: 20px;
    height: 20px;
}

.form-input-container:focus-within .select-form-img {
    transform: rotate(180deg);
}

.form-buttons-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 20px;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.form-button-small {
    width: 140px;
    height: 50px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    outline: none;
    text-decoration: none;
    margin-left: 20px;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.form-cancel-small {
    background-color: var(--grey2);
}

.form-submit-small {
    background: var(--gradient);
    font-family: 'Avenir Next', sans-serif;
}

.form-delete-small {
    background: var(--red);
    font-family: 'Avenir Next', sans-serif;
}

.form-complete-small {
    background: var(--green);
    font-family: 'Avenir Next', sans-serif;
}

.form-archive-small {
    background: var(--blue);
    font-family: 'Avenir Next', sans-serif;
}

.form-currency-input {
    height: 41px;
    width: 100%;
    margin-right: -45px;
    padding: 0 14px;
    outline: none;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    /* Safari-specific fixes */
    -webkit-appearance: none; /* Remove default dropdown arrow */
    -moz-appearance: none;
    appearance: none;
    /* Ensure consistent height and alignment */
    line-height: normal;
    z-index: 100;
}

.form-percentage-input {
    height: 41px;
    width: 100%;
    padding: 0 14px;
    outline: none;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    /* Safari-specific fixes */
    -webkit-appearance: none; /* Remove default dropdown arrow */
    -moz-appearance: none;
    appearance: none;
    /* Ensure consistent height and alignment */
    line-height: normal;
    z-index: 100;
}

.form-currency-input::-ms-expand {
    display: none; /* Hide dropdown arrow in IE */
}

.currency-form-img {
    width: 16px;
    height: 16px;
}

.form-toggles-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.form-input-toggle-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.form-input-toggle-container .form-text-input-label {
    color: var(--text-grey);
    font-size: 17px;
    cursor: pointer;
}

.form-input-toggle {
    width: 55px;
    height: 30px;
    border-radius: 15px;
    background: var(--grey2);
    position: relative;
    transition: 0.2s background ease-in-out;
}

input[type="checkbox"]:checked + .form-input-toggle {
    background: var(--highlight);
}

.form-input-toggle-circle {
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s transform ease-in-out;
    transform: translate(3px, 3px);
}

input[type="checkbox"]:checked + .form-input-toggle .form-input-toggle-circle {
    transform: translate(28px, 3px);
}

.form-input-check {
    width: 30px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background: var(--grey2);
    transition: background-color 0.1s ease-in-out;
}

.form-input-check img {
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

input[type="checkbox"]:checked + .form-input-check {
    background: var(--highlight);
}

input[type="checkbox"]:checked + .form-input-check img {
    opacity: 1;
}

.file-drop-container {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--text-grey);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: var(--text-grey);
    font-family: 'Avenir Next', sans-serif;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.file-drop-container.active {
    border-color: var(--highlight);
    color: var(--highlight);
}

.form-file-selected-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    margin: 10px 0 0 7px;
}

.add-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.add-item-input-text {
    height: 45px;
    background-color: white;
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    flex-grow: 1;
    box-shadow: var(--drop-shadow);
}

.add-item-button {
    height: 45px;
    width: 45px;
    border-radius: 15px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    border: none;
    flex-shrink: 0;
    padding: 0;
    margin-left: 10px;
    box-shadow: var(--drop-shadow);
}

.form-progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-progress-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-grey);
    margin: 10px 0 5px 7px;
}

.form-progress-bar-background {
    width: 100%;
    height: 10px;
    background-color: var(--grey2);
    border-radius: 5px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background-color: var(--highlight);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

/* Media Queries */
@media only screen and (max-width: 840px) {
    .form-buttons-container {
        flex-direction: column-reverse;
        justify-content: flex-end;
        align-content: center;
    }

    .form-button-small {
        margin: 12px 0 0 0;
        width: 100%;
    }

    .post-button-form {
        margin: 12px 0 0 0;
    }
}
