.settings-form {
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: var(--primary-text-color);
}

.settings-form.lightmode {
    color: var(--secondary-text-color);
}

.form-group {
    margin-bottom: 10px;
    text-align: left;
}

.form-group label, .form-group .label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 25px;
}

.form-group label.lightmode, .form-group .label.lightmode {
    color: var(--secondary-text-color);
}

.form-input {
    position: relative;
}

.form-input input,
.form-input select,
.save-settings-button, .delete-settings-button {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid var(--faded-dark-color);
    border-radius: 25px;
    background-color: var(--search-bar);
    box-sizing: border-box;
    color: white;
}

.form-input input.lightmode, .form-input.lightmode input,
.form-input select.lightmode {
    border: 1px solid var(--secondary-text-color);
    background-color: var(--highlight-alt);
    color: var(--primary-text-color);
}

.form-input input[type="number"]::-webkit-inner-spin-button,
.form-input input[type="number"]::-webkit-outer-spin-button {
    color: white;
}

.form-input input[type="number"].lightmode::-webkit-inner-spin-button,
.form-input input[type="number"].lightmode::-webkit-outer-spin-button {
    color: var(--secondary-text-color);
}

.form-input input[type="file"] {
    padding: 0;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
}

.form-input input[type="file"].lightmode {
    background-color: var(--highlight-alt);
    border: 0px solid var(--secondary-text-color);
    color: var(--primary-text-color);
    border-radius: 0px;
}

.form-input select {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    padding-right: 50px;
    font-size: 1rem;
    border: 1px solid var(--faded-dark-color);
    border-radius: 25px;
    background-color: var(--search-bar);
    color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path d="M1.5 6.5l6 6 6-6h-12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center; 
    background-size: 16px;
}

.form-input select.lightmode {
    border: 1px solid var(--secondary-text-color);
    background-color: var(--highlight-alt);
    color: var(--primary-text-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M1.5 6.5l6 6 6-6h-12z"/></svg>');
}

.form-input select::placeholder {
    color: var(--faded-dark-color);
}

.form-input select.lightmode::placeholder {
    color: var(--secondary-text-color);
}

.form-input textarea {
    width: 80%;
    min-height: 200px;
    min-width: 500px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid var(--faded-dark-color);
    border-radius: 25px;
    background-color: var(--search-bar);
    color: white;
    resize: none;
    box-sizing: border-box;
}

.form-input textarea.lightmode {
    border: 1px solid var(--secondary-text-color);
    background-color: var(--highlight-alt);
    color: var(--primary-text-color);
}

.save-settings-button {
    background-color: var(--golden-yellow);
    color: var(--highlight-color);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 50px;
}

.save-settings-button:hover {
    background-color: #f4c542;
}

.delete-settings-button {
    background-color: var(--salmon-red);
    color: var(--highlight-color);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 50px;
}

.delete-settings-button:hover {
    background-color: #ff7a8d;
}

.save-settings-button.lightmode, .delete-settings-button.lightmode {
    color: var(--black-or-white);
}

.select-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    background-color: var(--search-bar);
    box-sizing: border-box;
    color: white;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 50px;
    padding: 15px 40px 15px 20px;
    font-size: 1rem;
    border: 1px solid var(--faded-dark-color);
    border-radius: 25px;
    background-color: var(--search-bar);
    color: white;
}

.select-wrapper.lightmode {
    background-color: var(--highlight-alt);
}

.select-wrapper select.lightmode {
    border: 1px solid var(--secondary-text-color);
    background-color: var(--highlight-alt);
    color: var(--primary-text-color);
}

.select-wrapper::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path d="M1.5 6.5l6 6 6-6h-12z"/></svg>');
    content: '';
    position: absolute;
    pointer-events: none;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
}

.select-wrapper.lightmode::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M1.5 6.5l6 6 6-6h-12z"/></svg>');
}

.profile-picture-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.profile-thumbnail {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: none;
}

.profile-picture-wrapper .input[type="file"] {
    margin-top: 10px;
    width: auto;
    background-color: var(--highlight-alt);
    border-radius: 25px;
    padding: 10px 15px;
    color: var(--primary-text-color);
    cursor: pointer;
    border: 1px solid var(--secondary-text-color);
}

.toggle-container.functionbox {
    margin-top: 0px;
}

#successMessage {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 9999;
    transition: transform 0.5s ease;
}

.success-message {
    padding: 15px;
    border-radius: 5px;
    background-color: var( --baby-blue );
    color: #ffffff; 
    font-weight: bold;
    width: 100%;
    text-align: center;
}

.success-message.error {
    background-color: var( --salmon-red ); 
    color: #ffffff; 
}

.status-active {
    padding: 10px;
    margin-bottom: 10px;
}

.status-pending {
    padding: 10px;
    margin-bottom: 10px;
}

.status-complete {
    padding: 10px;
    margin-bottom: 10px;
}

.drop-area {
    position: relative;
    width: 80%;
    max-width: 80%;
    height: 222px;
    color: var(--primary-text-color);
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.drop-area p {
    margin: 0;
    transition: opacity 0.2s;
}

.drop-area.highlight {
    background-color: #333;
    border-color: #555;
}

.drop-area.highlight p {
    opacity: 0;
}

.drop-area .browse-button {
    color: var(--salmon-red);
    text-decoration: underline;
    cursor: pointer;
}

.dropzone .browse-button {
    color: var(--baby-blue);
    text-decoration: underline;
    cursor: pointer;
}

.preview-container {
    width: 100%;
    min-height: 33px;
    height: auto;
    overflow-y: auto;
    border: 3px dotted var(--secondary-text-color);
    border-radius: 25px;
    background-color: #000000;
    opacity: 0.8;
    color: var(--primary-text-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 22px;
    padding-bottom: 33px;
}

.lightmode .preview-container {
    background-color: #f9f9f9;
}

.preview-item {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    background-color: #333333;
    margin-bottom: 15px;
}

.preview-item img {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: min(25vw, 150px);
    max-height: min(20vh, 150px);
    min-height: 75px;
    min-width: 75px;
}

.preview-item button {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--salmon-red);
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.preview-item button:hover {
    opacity: 0.8;
}

.preview-instructions{
    width: 100%;
    text-align: center;
}

.preview-instructions img{
    max-width : min(50%, 300px);
    max-height: min(25vh, 200px);
    height    : auto;
    width     : auto;
}

.preview-container-text {
    width: 100%;
    text-align: center;
}

.browse-button {
    color: var( --salmon-red );
    text-decoration: underline;
    cursor: pointer;
}

.image-container-with-remove {
    width: 25%;
    min-width: 222px;
    min-width: 250px;
    height: auto;
}

.image-container-with-remove img {
    width: 100%;
    min-width: inherit;
    max-width: inherit !important;
    min-height: inherit;
    max-height: inherit !important;
    max-width: 333px;
}

textarea {
    touch-action: auto;
}

a.edit-text {
    text-decoration: underline;
    color: #939393;
}

.classic-select{
    background-color: rgba(90,90,90,.8);
    border-radius: 3px;
    color:#fff;
    cursor:pointer;
    display:block;
    font-family:Raleway,sans-serif;
    font-size:19.425px;
    font-weight:500;
    height:53px;
    line-height:29.1375px;
    margin:25px auto 8px auto;
    opacity:1;
    padding:12px 19px;
    text-align:center;
    transition:opacity 1s ease;
    width:325.641px;
    border:none;
}

.classic-select option{
    background:#fff;
    color:#000;
}

/* smartphone short height */

@media only screen and (max-width: 767px) and (max-height: 850px) and (-webkit-min-device-pixel-ratio: 2) and (hover: none) and (pointer: coarse),
    only screen and (max-width: 767px) and (max-height: 850px) and (min-resolution: 192dpi) and (hover: none) and (pointer: coarse) {

    .settings-form {
        width: 80% !important;
        margin-left: 10%;
    }

    .form-input textarea {
        width: 100% !important;
        min-width: inherit !important;
    }

}

/* smartphones */

@media only screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2) and (hover: none) and (pointer: coarse),
    only screen and (max-width: 767px) and (min-resolution: 192dpi) and (hover: none) and (pointer: coarse),
    only screen and (max-width: 750px) and (hover: none) and (pointer: coarse) {

    .settings-form {
        width: 80% !important;
        margin-left: 10%;
    }

    .form-input textarea {
        width: 100% !important;
        min-width: inherit !important;
    }

}
