.settings-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f7;
    display: flex;
    flex-direction: column;
    z-index: 6;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.settings-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.settings-header {
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.settings-title {
    font-size: 18px;
    font-weight: bold;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
}

.settings-section {
    background-color: white;
    margin: 15px;
    border-radius: 10px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f2f2f7;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-label {
    font-size: 16px;
}

.settings-toggle {
    width: 50px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.settings-toggle::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.settings-toggle.active {
    background-color: #4cd964;
}

.settings-toggle.active::before {
    transform: translateX(20px);
}

.settings-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-close-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.settings-close-button::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
}

.background-upload-section {
    background-color: white;
    margin: 15px;
    border-radius: 10px;
    padding: 15px;
}

.background-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
}

.background-upload-label {
    display: block;
    padding: 10px 15px;
    background-color: #007aff;
    color: white;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.background-upload {
    display: none;
}

.reboot-button {
    color: #007aff;  
    font-weight: bold;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    background-color: white;
    border: none;
    width: 100%;
}

.reboot-button:active {
    background-color: #f0f0f0;
}