/* ===== ОПТИМИЗИРОВАННЫЕ НАСТРОЙКИ ===== */

.settings-content {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: var(--dark);
    border-radius: 15px;
    overflow: hidden;
}

/* Вкладки настроек */
.settings-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin: 0 30px 25px 30px;
    gap: 4px;
}

.settings-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--gray);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.settings-tab:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.settings-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

/* Контент вкладок */
.settings-tab-content {
    flex: 1;
    overflow-y: auto;
    margin: 0 30px;
    padding-right: 10px;
}

.settings-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовок модального окна */
.settings-content h2 {
    text-align: center;
    margin: 25px 30px 20px 30px;
    color: var(--light);
    font-size: 1.5rem;
}

/* Категории настроек */
.settings-category {
    margin-bottom: 30px;
}

.settings-category h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Опции настроек */
.setting-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.setting-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.setting-option input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.setting-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--light);
    font-size: 0.95rem;
}

.setting-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    opacity: 0.8;
}

/* Контейнер для тем с прокруткой */
.themes-scroll-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 10px;
}

.themes-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.themes-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.themes-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Стили для тем */
.themes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-option.active {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    flex-shrink: 0;
}

.theme-preview.theme-classic {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.theme-preview.theme-anniversary {
    background: linear-gradient(135deg, #FFD700, #8A2BE2, #FF69B4);
}

.theme-preview.theme-newyear {
    background: linear-gradient(135deg, #0c1e3e, #1a3a5f);
}

.theme-preview.theme-undertale {
    background: linear-gradient(135deg, #000000, #2a2a2a);
    border: 2px solid #ffffff;
}

.theme-info {
    flex: 1;
}

.theme-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light);
}

.theme-description {
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--gray);
}

.theme-check {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-option.active .theme-check {
    opacity: 1;
}

/* Действия настроек */
.setting-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.setting-action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-info {
    flex: 1;
}

.action-info h4 {
    color: var(--light);
    margin-bottom: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-info p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.setting-action .btn {
    margin-left: 15px;
    white-space: nowrap;
    min-width: 120px;
}

.btn-warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Уведомления */
.settings-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.settings-warning::before {
    content: "💡";
    font-size: 1.1rem;
}

.settings-info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
    color: #2196f3;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-info::before {
    content: "ℹ️";
}

/* Футер настроек */
.settings-footer {
    display: flex;
    gap: 12px;
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin-top: auto;
}

.settings-footer .btn {
    flex: 1;
    min-height: 44px;
    font-weight: 600;
}



/* Стили для скроллбара в модальном окне */
.settings-tab-content::-webkit-scrollbar {
    width: 6px;
}

.settings-tab-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.settings-tab-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.settings-tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== СИСТЕМА ТЕМ ===== */
.themes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.theme-option.active {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    flex-shrink: 0;
}

/* Preview для разных тем */

.theme-info {
    flex: 1;
}

.theme-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light);
}

.theme-description {
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--gray);
}

.theme-check {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-option.active .theme-check {
    opacity: 1;
}

  