/* =============================================
   AYARLAR PANELİ STİLLERİ
   ============================================= */

/* ---- OVERLAY ---- */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-overlay.open {
    opacity: 1;
}

.settings-overlay.closing {
    opacity: 0;
}

/* ---- PANEL ---- */
.settings-panel {
    width: 440px;
    max-width: 95vw;
    height: 100vh;
    background: linear-gradient(180deg, #0c1322 0%, #0f172a 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-overlay.open .settings-panel {
    transform: translateX(0);
}

.settings-overlay.closing .settings-panel {
    transform: translateX(100%);
}

/* ---- HEADER ---- */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
}

.settings-title i {
    color: #94a3b8;
    font-size: 1rem;
    animation: gearSpin 4s linear infinite;
}

@keyframes gearSpin {

    0%,
    80%,
    100% {
        transform: rotate(0deg);
    }

    90% {
        transform: rotate(90deg);
    }
}

.settings-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.settings-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ---- TABS ---- */
.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    overflow-x: auto;
}

.settings-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
}

.settings-tab:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

/* ---- BODY ---- */
.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-body::-webkit-scrollbar {
    width: 4px;
}

.settings-body::-webkit-scrollbar-track {
    background: transparent;
}

.settings-body::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

/* ---- SECTIONS ---- */
.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
}

.settings-section+.settings-section {
    margin-top: 4px;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    font-size: 0.75rem;
    color: #475569;
}

/* ---- SETTING ROW ---- */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: opacity 0.2s;
}

.setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-row:first-of-type {
    padding-top: 0;
}

.setting-row.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.setting-label {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.setting-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.setting-value-display {
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---- TOGGLE SWITCH ---- */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #64748b;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch input:checked+.toggle-slider {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ---- SLIDER ---- */
.settings-slider {
    width: 140px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #1e293b;
    border-radius: 3px;
    outline: none;
    flex-shrink: 0;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
    transition: transform 0.15s;
}

.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.settings-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}

/* ---- SELECT ---- */
.settings-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 130px;
    transition: border-color 0.2s;
}

.settings-select:hover,
.settings-select:focus {
    border-color: #3b82f6;
}

/* ---- DATA TAB ---- */
.data-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.data-info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-info-card i {
    font-size: 1.2rem;
    color: #3b82f6;
    width: 24px;
    text-align: center;
}

.info-label {
    font-size: 0.7rem;
    color: #64748b;
    display: block;
}

.info-value {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 600;
    display: block;
}

.data-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.data-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.data-btn i {
    font-size: 1.1rem;
    color: #3b82f6;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.data-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.data-btn small {
    font-size: 0.7rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.data-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Danger */
.danger-section {
    border-color: rgba(239, 68, 68, 0.15);
}

.danger-section .section-title {
    color: #f87171;
}

.danger-section .section-title i {
    color: #ef4444;
}

.danger-btn {
    border-color: rgba(239, 68, 68, 0.15) !important;
}

.danger-btn i {
    color: #ef4444 !important;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.reset-settings-btn i {
    color: #eab308 !important;
}

.reset-settings-btn:hover {
    background: rgba(234, 179, 8, 0.08) !important;
    border-color: rgba(234, 179, 8, 0.2) !important;
}

/* ---- TOAST ---- */
.settings-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: white;
    z-index: 9999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

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

.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.toast-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.toast-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* ---- GLOBAL MODIFIERS ---- */
body.no-animations * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}