.background-image {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: -1 !important;
}

.background-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
    z-index: 0; /* Фон ниже всех */
}

.background-settings-block {
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.bg-settings-panel {
    width: 100%;
    max-width: 370px;
    padding: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bg-setting-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 370px;
}

.bg-setting-row label {
    font-size: 14px;
    color: #333;
    text-align: left;
    flex-shrink: 0;
    width: 150px;
    margin-bottom: 5px;
}

.bg-setting-row select {
    width: 200px;
    max-width: 200px;
    box-sizing: border-box;
    padding: 5px;
}

.bg-apply-btn {
    background: transparent;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bg-apply-btn img {
    width: 20px;
    height: 20px;
}

.bg-apply-btn:hover {
    background: #f0f0f0;
}

.bg-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.bg-remove-btn img {
    width: 20px;
    height: 20px;
}