/* ============================================
   SETTINGS SEITE - ELEGANT & MODERN
   ============================================ */

.settings-page {
    background: #f8fafc;
}

.settings-container {
    padding: 4rem 0;
}

/* ============================================
   SETTINGS CARD
   ============================================ */

.settings-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.settings-card-header {
    background: linear-gradient(135deg, #0096ff 0%, #0077cc 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.settings-card-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.settings-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.settings-card-subtitle {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.25rem 0 0 0;
}

/* ============================================
   SETTINGS SECTIONS
   ============================================ */

.settings-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.settings-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section-title i {
    color: #0096ff;
    font-size: 1.125rem;
}

/* ============================================
   SETTINGS OPTION (Toggle Items)
   ============================================ */

.settings-option {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.settings-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.settings-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 150, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0096ff;
    flex-shrink: 0;
}

.settings-option-text {
    flex: 1;
}

.settings-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
}

.settings-option-desc {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.settings-option-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Status Badge */
.settings-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.813rem;
    font-weight: 600;
    white-space: nowrap;
}

.settings-status-badge--active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.settings-status-badge--inactive {
    background: rgba(148, 163, 184, 0.1);
    color: #718096;
}

/* Toggle Switch */
.settings-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.settings-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e0;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.settings-toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: #0096ff;
}

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

.settings-toggle:hover .settings-toggle-slider {
    box-shadow: 0 0 0 4px rgba(0, 150, 255, 0.1);
}

/* ============================================
   ACTION CARDS
   ============================================ */

.settings-action-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-action-card--danger {
    border-left: 4px solid #ef4444;
}

.settings-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 150, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0096ff;
    margin-bottom: 1rem;
}

.settings-action-card--danger .settings-action-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.settings-action-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.settings-action-desc {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

/* Action Alerts */
.settings-action-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.settings-action-alert--info {
    background: rgba(0, 150, 255, 0.08);
    border: 1px solid rgba(0, 150, 255, 0.2);
    color: #4a5568;
}

.settings-action-alert--warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #4a5568;
}

.settings-action-alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
    color: #0096ff;
}

.settings-action-alert--warning i {
    color: #ffc107;
}

.settings-action-alert strong {
    display: block;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.settings-action-alert p {
    margin: 0;
}

.settings-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #0096ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.settings-action-link:hover {
    color: #0077cc;
}

.settings-action-expired {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.813rem;
    color: #718096;
}

/* Action Buttons */
.settings-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: #0096ff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 150, 255, 0.25);
}

.settings-action-btn:hover {
    background: #0077cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 150, 255, 0.35);
}

.settings-action-btn--danger {
    background: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.settings-action-btn--danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* ============================================
   MODAL
   ============================================ */

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal--active {
    opacity: 1;
    visibility: visible;
}

.settings-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.settings-modal--active .settings-modal-content {
    transform: scale(1);
}

.settings-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.settings-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ef4444;
    flex-shrink: 0;
}

.settings-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.settings-modal-text {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.settings-modal-actions {
    display: flex;
    gap: 1rem;
}

.settings-modal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-modal-btn--cancel {
    background: #f1f5f9;
    color: #4a5568;
}

.settings-modal-btn--cancel:hover {
    background: #e2e8f0;
}

.settings-modal-btn--danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.settings-modal-btn--danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

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

@media (max-width: 991.98px) {
    .settings-container {
        padding: 3rem 0;
    }

    .settings-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .settings-option-control {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .settings-container {
        padding: 2rem 0;
    }

    .settings-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .settings-card-header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .settings-card-title {
        font-size: 1.5rem;
    }

    .settings-section {
        padding: 1.5rem;
    }

    .settings-option {
        padding: 1.25rem;
    }

    .settings-option-content {
        flex-direction: column;
        text-align: center;
    }

    .settings-action-card {
        padding: 1.25rem;
    }

    .settings-modal-content {
        padding: 1.5rem;
    }

    .settings-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .settings-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .settings-card-header {
        padding: 1.25rem;
    }

    .settings-card-header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.375rem;
    }

    .settings-card-title {
        font-size: 1.25rem;
    }

    .settings-section {
        padding: 1.25rem;
    }

    .settings-option {
        padding: 1rem;
    }

    .settings-option-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .settings-modal-content {
        padding: 1.25rem;
    }

    .settings-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .settings-modal-title {
        font-size: 1.25rem;
    }
}