/* General Settings Premium Styling - UI UX Pro Max */
:root {
    --primary-blue: #1a89c7;
    --primary-gradient: linear-gradient(135deg, #1a89c7 0%, #0369a1 100%);
    --text-dark: #1e293b;
    --text-grey: #64748b;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(226, 232, 240, 0.6);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    font-family: 'Outfit', 'Cairo', sans-serif;
    color: var(--text-dark);
}

.settings-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.settings-header {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-back {
    background: rgba(241, 245, 249, 0.8);
    border: none;
    color: var(--text-grey);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back:hover {
    background: #e2e8f0;
    color: var(--text-dark);
    transform: translateX(-2px);
}

.page-title {
    margin: 0;
    font-size: 1.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.settings-content {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.settings-section-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-section-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.settings-section-card:hover::before {
    opacity: 1;
}

.section-title {
    margin: 0 0 25px 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
}

.setting-item {
    padding: 12px 0;
    transition: background 0.3s ease;
    border-radius: 12px;
}

.item-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.item-label small {
    color: #ef4444;
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 8px;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 10px;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modern Radio Group */
.radio-group-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 20px 10px 45px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-grey);
    background: #f1f5f9;
    border-radius: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-container:hover {
    background: #e2e8f0;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-container:hover input ~ .checkmark {
    border-color: #94a3b8;
}

.radio-container input:checked ~ .checkmark {
    border-color: var(--primary-blue);
    background-color: #fff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked ~ .checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.radio-container input:checked ~ .radio-label {
    color: var(--primary-blue);
    font-weight: 700;
}

.radio-container:has(input:checked) {
    background: #f0f9ff;
    border-color: #bae6fd;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

/* Switch Styling (iOS Style) */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background: var(--primary-gradient);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Modern Input Styling */
.modern-input {
    width: 100%;
    height: 48px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left; /* Better UX for general inputs */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    border-color: #7dd3fc;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* Save Button - Pill Shape */
.save-action-container {
    margin-top: 40px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
}

.btn-save-settings {
    width: 100%;
    max-width: 400px;
    padding: 16px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px; 
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-save-settings::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.5);
}

.btn-save-settings:hover::after {
    opacity: 1;
}

.btn-save-settings:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -5px rgba(2, 132, 199, 0.4);
}

/* Make inputs in flex rows align better */
.setting-item.flex-row .modern-input {
    width: 100px;
    text-align: center;
    margin-left: 15px;
}

/* Scrollbar styling for settings content */
.settings-content::-webkit-scrollbar {
    width: 8px;
}
.settings-content::-webkit-scrollbar-track {
    background: transparent;
}
.settings-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.settings-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
