/* Text inputs / Text areas */

textarea,
.textarea {
    display: block;
    width: 100%;
    height: 120px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    appearance: none;
    color: hsl(0, 0%, 30%);
    background-color: hsl(0, 0%, 92.5%);
    background-clip: padding-box;

    border-radius: 0.5rem;
    border: var(--border-card);
    box-shadow: var(--shadow);
    transition: all 0.1s linear;
}

.text-input {
    height: 30px;
    border-radius: 0.25rem;
}

.text-input:read-only {
    background-color: hsl(0, 0%, 82.5%);
    color: hsl(0, 0%, 45%);
    border: solid 1px hsl(0, 0%, 70%);
}

textarea.textarea-large {
    height: 200px;
}

.textarea-input {
    margin-top: 20px;
    margin-bottom: 20px;
}

.textarea-input label {
    margin-bottom: 10px;
}

/* Custom Select */

.custom-select,
.number-button {
    position: relative;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    list-style: none;
    color: hsl(0, 0%, 0%);
    padding: 0;
    margin: 0;

    background: hsl(0, 0%, 100%);
    border-radius: 12px;
    border: 2px solid hsl(0, 0%, 80%);
    overflow: hidden;

    display: none;
    z-index: 10;
}

.select-options li {
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}

.select-options li:hover {
    background: hsl(0, 0%, 95%);
}

.select-options li .select-icon {
    display: none
}

.custom-select.open .select-options {
    display: block;
}

.custom-select .select-content {
    max-height: 100%;
    max-width: 100%;
}

.custom-select .select-text-above-icon {
    margin-bottom: 5px;
}

.custom-select .select-icon {
    margin-bottom: 5px;
}

/* Custom Number Input Button */

.number-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.number-display:disabled,
.number-display:disabled:hover {
    background-color: hsl(0, 0%, 80%);
    color: var(--text-greyed-out);
    cursor: default;
}

.number-display i {
    font-size: 1.6rem;
}

.number-value,
.number-label {
    font-size: 1.4rem;
}

.number-input {
    display: none;

    width: 100%;
    height: 88px;
    padding: 0 1rem;

    font-size: 1.6rem;
    text-align: center;

    border-radius: 16px;
    border: 2px solid hsl(0, 0%, 0%);
}

.number-button.open .number-display {
    display: none;
}

.number-button.open .number-input {
    display: block;
}

/* Custom number select */
.num-select {
    height: 40px;
    border-radius: 10px;
    padding: 0.1 0.1rem;

    font-size: 1rem;
    font-weight: 600;
    color: hsl(0, 0%, 30%);
    background-color: hsl(0, 0%, 92.5%);

    border: var(--border-card);
    box-shadow: var(--shadow);
    transition: all 0.1s linear;
}

/* Custom date select */
.date-select {
    height: 40px;
    border-radius: 10px;
    padding: 0.1 0.1rem;

    font-size: 1rem;
    font-weight: 600;
    color: hsl(0, 0%, 30%);
    background-color: hsl(0, 0%, 92.5%);

    border: var(--border-card);
    box-shadow: var(--shadow);
    transition: all 0.1s linear;
}