.settings-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* Заголовок */
.settings-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

.settings-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.back-button {
    background: none;
    border: none;
    color: #007AFF;
    padding: 8px;
    cursor: pointer;
}

/* Контент */
.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #007AFF;
}

.setting-group {
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.setting-group h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.setting-label {
    font-size: 16px;
}

.setting-control {
    display: flex;
    align-items: center;
}

/* Поля ввода */
.setting-item input[type="number"],
.setting-item input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.setting-item input[type="number"]:focus,
.setting-item input[type="text"]:focus {
    border-color: #007AFF;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.save-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.save-indicator.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Стили для переключателей */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(120, 120, 128, 0.32);
    transition: .4s;
    border-radius: 31px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #34C759;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Стили для селектов */
.setting-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    appearance: none;
    transition: all 0.3s ease;
}

.setting-item select:focus {
    border-color: #007AFF;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Select */
select {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
    padding-right: 32px;
}

select option {
    background-color: #1c1c1e;
    color: #fff;
} 