/* ==========================================
   DASHBOARD SETTINGS - BALANCED DESIGN
   ========================================== */

.settings-container {
    max-width: 460px;
    margin: 0 auto;
    padding: 20px 16px 36px;
}

/* Sayfa Basligi */
.settings-header {
    margin-bottom: 18px;
}

.settings-page-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #5B6AE8, #7B62ED, #A068F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Ayarlar Karti */
.settings-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.72) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(107, 120, 240, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Ayar Satiri */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(107, 120, 240, 0.08);
    gap: 14px;
}

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

.settings-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.settings-row-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(107, 120, 240, 0.1), rgba(148, 112, 245, 0.06));
    border-radius: 10px;
    flex-shrink: 0;
}

.settings-row-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.settings-row-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #243769;
    line-height: 1.2;
}

.settings-row-desc {
    font-size: 0.72rem;
    font-weight: 400;
    color: #243769;
    opacity: 0.5;
    line-height: 1.2;
}

/* Tema Selector - Emoji Pills */
.theme-pills {
    display: flex;
    gap: 4px;
    background: rgba(107, 120, 240, 0.06);
    padding: 4px;
    border-radius: 12px;
}

.theme-pill {
    width: 40px;
    height: 36px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-pill:hover {
    background: rgba(107, 120, 240, 0.1);
    transform: scale(1.05);
}

.theme-pill.active {
    background: white;
    box-shadow: 0 2px 8px rgba(107, 120, 240, 0.18);
    transform: scale(1.08);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(107, 120, 240, 0.2);
    border-radius: 26px;
    transition: all 0.25s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6b78f0, #9470f5);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* Language Select */
.language-select-wrapper {
    position: relative;
}

.language-select {
    padding: 8px 32px 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #243769;
    background: rgba(107, 120, 240, 0.06);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.language-select:hover {
    background: rgba(107, 120, 240, 0.1);
}

.language-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 120, 240, 0.2);
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b78f0;
    pointer-events: none;
    opacity: 0.7;
}

.select-arrow svg {
    width: 12px;
    height: 12px;
}

/* Versiyon Bilgisi */
.version-info {
    text-align: center;
    margin-top: 24px;
    font-size: 0.72rem;
    color: #243769;
    opacity: 0.4;
}

/* ==========================================
   TOAST
   ========================================== */

.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.98);
    color: #243769;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(107, 120, 240, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    font-size: 15px;
}

/* ==========================================
   DARK MODE
   ========================================== */

body.dark .settings-page-title {
    background: linear-gradient(135deg, #8B9CF8, #B890FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .settings-card {
    background: linear-gradient(
        145deg,
        rgba(25, 18, 60, 0.7) 0%,
        rgba(15, 10, 45, 0.85) 100%
    );
    border-color: rgba(148, 112, 245, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark .settings-row {
    border-bottom-color: rgba(148, 112, 245, 0.12);
}

body.dark .settings-row-icon {
    background: linear-gradient(145deg, rgba(148, 112, 245, 0.15), rgba(107, 120, 240, 0.1));
}

body.dark .settings-row-label {
    color: rgba(255, 255, 255, 0.92);
}

body.dark .settings-row-desc {
    color: rgba(255, 255, 255, 0.5);
}

body.dark .theme-pills {
    background: rgba(148, 112, 245, 0.12);
}

body.dark .theme-pill:hover {
    background: rgba(148, 112, 245, 0.2);
}

body.dark .theme-pill.active {
    background: rgba(148, 112, 245, 0.3);
    box-shadow: 0 2px 8px rgba(148, 112, 245, 0.25);
}

body.dark .toggle-slider {
    background: rgba(148, 112, 245, 0.25);
}

body.dark .language-select {
    background: rgba(148, 112, 245, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

body.dark .language-select:hover {
    background: rgba(148, 112, 245, 0.18);
}

body.dark .select-arrow {
    color: #a78bfa;
}

body.dark .version-info {
    color: rgba(255, 255, 255, 0.4);
}

body.dark .toast {
    background: rgba(15, 10, 45, 0.98);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Büyük Ekranlar - Tablet ve Desktop */
@media (min-width: 768px) {
    .settings-container {
        max-width: 540px;
        padding: 32px 24px 48px;
    }

    .settings-card {
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(107, 120, 240, 0.12);
    }

    .settings-row {
        padding: 20px 24px;
        gap: 16px;
    }

    .settings-row-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }

    .settings-row-label {
        font-size: 1rem;
    }

    .settings-row-desc {
        font-size: 0.78rem;
    }

    .theme-pills {
        gap: 6px;
        padding: 5px;
        border-radius: 14px;
    }

    .theme-pill {
        width: 48px;
        height: 42px;
        font-size: 20px;
        border-radius: 10px;
    }

    .toggle-switch {
        width: 48px;
        height: 28px;
    }

    .toggle-slider::before {
        height: 22px;
        width: 22px;
    }

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

    .language-select {
        padding: 10px 36px 10px 16px;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .version-info {
        margin-top: 28px;
        font-size: 0.78rem;
    }

    /* Toast büyük ekran */
    .toast {
        padding: 14px 22px;
        font-size: 0.92rem;
        border-radius: 14px;
    }
}

/* Çok Büyük Ekranlar - Desktop */
@media (min-width: 1024px) {
    .settings-container {
        max-width: 580px;
        padding: 40px 32px 56px;
    }

    .settings-header {
        margin-bottom: 24px;
    }

}

/* Küçük Ekranlar */
@media (max-width: 380px) {
    .settings-row {
        padding: 14px 16px;
    }

    .settings-row-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .theme-pill {
        width: 36px;
        height: 32px;
        font-size: 16px;
    }
}
