.widget#wallpaper {
    width: 340px;
    text-align: center;
    resize: none !important;
}

#drop-box {
    width: 300px;
    height: 200px;
    border: 2px dashed rgb(var(--text-color));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(var(--text-color));
    font-size: 1.2rem;
    margin: 20px auto;
    cursor: pointer;
}
#drop-box.highlight {
    background-color: rgba(var(--text-color), 0.1);
}
#preview {
    justify-content: center;
    aspect-ratio: 16/9;
    margin-top: 10px;
    margin-left: calc((100% - 80%) / 2);
    max-width: 80%;
    display: auto;
}

#wallpaper button {
    justify-content: center;
    align-content: center;
    display: auto;
    margin-left: calc((100% - 55%) / 2);
    margin-bottom: 10px;
}

#wallpaper label {
    margin-left: calc((100% - 80%) / 2);
}

#image-editor {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.slider-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#media-options {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#media-options button,
#delete-btn {
    width: 160px;
    padding: 10px 0px 8px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Bahnschrift', sans-serif; 
    margin-left: 0px !important;
    margin-right: 0px !important;
    margin-bottom: 0px;
    font-size: large;
    background: rgba(0, 0, 0, 0.2);
    color: rgb(var(--text-color, 255, 255, 255));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#delete-btn {
    display: none;
    color: white !important;
}

#background-options-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-right: 10px;
    margin-top: 10px;
}

#background-options-container label {
    font-size: larger;
    margin: 0px;
}

/* Select dropdown */
#background-options {
    cursor: pointer;
    appearance: none; /* Hide default dropdown arrow */
    background: rgba(255, 255, 255, 0.15);
    padding-right: 30px;
    width: 30%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent for frosted effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgb(var(--text-color, 255, 255, 255));
    font-size: 1rem;
    font-family: 'Bahnschrift', sans-serif;
    outline: none;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#background-options option {
    color: black;
}

#background-options:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#media-options button {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

#upload-image-btn {
  display: flex;
  align-items: center; /* Optional: aligns items vertically in the center */
  gap: 10px; /* Optional: adds space between the items */
}

#media-options button img {
    width: 30px;
    height: auto;
    margin-right: 5px;
}

#delete-btn {
    width: 130px !important;
    background: rgba(255, 0, 0, 0.2) !important;
    color: #ffbfbf !important;
}

#media-options button:hover,
#delete-btn:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

#media-options button:active,
#delete-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
