/* MODERN SETTINGS MODAL - MEDYAJANS */

/* Modal Overlay */
.modern-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4200; /* Settings modal level - z-index system uyumlu */
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-settings-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Backdrop */
.settings-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Container */
.settings-modal-container {
    position: relative;
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-settings-modal.show .settings-modal-container {
    transform: scale(1);
}

/* Header */
.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.settings-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.settings-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(79, 172, 254, 0.3));
}

.settings-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-modal-close:hover {
    background: rgba(255, 107, 122, 0.2);
    color: #ff6b7a;
    transform: scale(1.1);
}

/* Navigation */
.settings-navigation {
    display: flex;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.settings-nav-item {
    background: none;
    border: none;
    padding: 16px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.settings-nav-item:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.settings-nav-item.active {
    color: #4facfe;
    border-bottom-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
}

.nav-icon {
    font-size: 1.1rem;
}

/* Modal Body */
.settings-modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 32px;
}

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

.settings-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.settings-modal-body::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 4px;
}

.settings-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.5);
}

/* Sections */
.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

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

.settings-section-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.settings-section-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

/* Cards Layout */
.settings-cards {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: rgba(79, 172, 254, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.settings-card-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.settings-card-body {
    padding: 24px;
}

/* Form Elements */
.settings-form-group {
    margin-bottom: 24px;
}

.settings-form-group:last-child {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.settings-input::placeholder {
    color: #64748b;
}

.settings-input:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: #64748b;
    cursor: not-allowed;
}

.settings-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.settings-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-input-group .settings-input {
    flex: 1;
}

.settings-input-addon {
    color: #94a3b8;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Toggle Switch */
.settings-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 14px;
}

.settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #94a3b8;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: #4facfe;
    border-color: #4facfe;
}

.settings-toggle input:focus + .settings-toggle-slider {
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.settings-toggle input:checked + .settings-toggle-slider:before {
    transform: translateX(22px);
    background: #ffffff;
}

.settings-toggle input:disabled + .settings-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-toggle-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    flex: 1;
}

/* Help Text */
.settings-help {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* Info Box */
.settings-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(79, 172, 254, 0.05);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
    margin-top: 16px;
}

.settings-info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.settings-info-text {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Buttons */
.settings-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.settings-btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.settings-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.settings-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.settings-btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.settings-btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.settings-btn-danger {
    background: linear-gradient(135deg, #ff6b7a 0%, #f43f5e 100%);
    color: #ffffff;
}

.settings-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 122, 0.4);
}

/* Action Buttons */
.settings-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 32px;
}

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background: #ff6b7a;
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background: #fbbf24;
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background: #10b981;
}

/* Alert Messages */
.settings-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.settings-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.settings-alert.error {
    background: rgba(255, 107, 122, 0.1);
    border: 1px solid rgba(255, 107, 122, 0.3);
    color: #fca5a5;
}

.settings-alert.info {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #93c5fd;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .settings-modal-header {
        padding: 20px 24px;
    }
    
    .settings-modal-title {
        font-size: 1.3rem;
    }
    
    .settings-navigation {
        padding: 0 24px;
    }
    
    .settings-nav-item {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .settings-modal-body {
        padding: 24px;
    }
    
    .settings-cards {
        gap: 16px;
    }
    
    .settings-card-body {
        padding: 20px;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-btn {
        width: 100%;
        justify-content: center;
    }
    
    .settings-action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .settings-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .settings-navigation {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .settings-nav-item {
        flex: 1;
        min-width: calc(50% - 2px);
    }
}

/* System Confirmation Modal */
.system-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4200; /* Settings modal level - z-index system uyumlu */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.system-confirmation-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.system-confirmation-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.system-confirmation-container {
    position: relative;
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border: 2px solid #ff6b7a;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 10px 30px rgba(255, 107, 122, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.system-confirmation-modal.show .system-confirmation-container {
    transform: scale(1);
}

.system-confirmation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(255, 107, 122, 0.2);
}

.system-confirmation-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 122, 0.5));
}

.system-confirmation-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.system-confirmation-body {
    padding: 24px 32px;
}

.system-confirmation-body p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.system-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.confirmation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.confirmation-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.confirmation-btn-confirm {
    background: linear-gradient(135deg, #ff6b7a 0%, #f43f5e 100%);
    color: #ffffff;
}

.confirmation-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 122, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .system-confirmation-container {
        width: 95%;
        margin: 20px;
    }
    
    .system-confirmation-header {
        padding: 20px 24px 16px;
    }
    
    .system-confirmation-title {
        font-size: 1.2rem;
    }
    
    .system-confirmation-body {
        padding: 20px 24px;
    }
    
    .system-confirmation-actions {
        padding: 16px 24px 20px;
        flex-direction: column-reverse;
    }
    
    .confirmation-btn {
        width: 100%;
        justify-content: center;
    }
}