/* ===== Настройки контейнер ===== */
.settings-container {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}


body.page, body.page .app {height: auto; min-height: auto; overflow: auto;}
body.page .app {padding-bottom: 30px !important;}

.page h1 {
    margin: 30px 0;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 400;  
}

.page h2 {
  font-weight: 400;
  font-size: 2rem;
  margin: 10px 0;
}
.page a {color: var(--accent-hover);}

.page .voz p {margin-bottom: 10px;}


.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: var(--bg-secondary);
  z-index: 10;
  margin: -20px -20px 0px -20px;
  padding: 10px 0 0 40px;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--border-radius1);
  transition: all 0.2s ease;
}


.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--border-radius1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-btn:active {
    transform: scale(0.95);
}

/* ===== Основной контент ===== */
.settings-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.settings-section {
    margin-bottom: 3rem;
}

.settings-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

/* ===== Группа настроек ===== */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== Radio опции ===== */
.radio-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-content svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.radio-content span {
    font-size: 1rem;
    color: var(--text-primary);
}

.radio-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-check {
    border-color: var(--accent);
    background: var(--accent);
}

.radio-option input[type="radio"]:checked ~ .radio-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .radio-content svg {
    color: var(--accent);
}

/* ===== Input группы ===== */
.proxy-group {
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius1);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.settings-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ===== Кнопки ===== */
.btn-primary,
.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius1);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #034ab875;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-danger:active {
    transform: scale(0.98);
}

/* ===== Информационный блок ===== */
.proxy-info {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius3);
    margin-top: 0.5rem;
}

.info-icon {
    padding-top: 3px;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.info-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-note {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-note a {
    text-decoration: none;
}

.info-note a:hover {
    text-decoration: underline;
}




/* ===== Адаптивность ===== */


@media (max-width: 600px) {

    body.page, body.page .app {height: auto; min-height: auto; overflow: auto; padding: 0;}

    .btn-info {
        top: 3px;
        right: 0px;
    }
    .btn-settings {
        top: 3px;
        right: 0px;
    }
}




@media (max-width: 640px) {
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .page-header {
        padding: 1rem;
        margin: 0px;
        padding-left: 35px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .radio-option {
        padding: 0.875rem 1rem;
    }
    
    .proxy-info {
        flex-direction: column;
    }
}