/* Settings Page Custom CSS Styling Sheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --bg-main: #060814;
  --bg-sidebar: #0b0e24;
  --bg-card: #0d1233;
  --bg-card-inner: #070a21;
  --text-main: #ffffff;
  --text-muted: #8fa0dd;
  --text-dim: #506199;
  --accent-purple: #6366f1;
  --accent-blue: #2563eb;
  --glow-purple: rgba(99, 102, 241, 0.15);
  --glow-blue: rgba(37, 99, 235, 0.2);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- TOP NAVBAR --- */
.top-bar {
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo.page-title {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 1250;
}

.logo.page-title .page-title-icon {
  color: var(--accent-purple);
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px var(--accent-purple));
}

.logo.page-title span {
  color: var(--accent-purple);
}

.top-nav {
  display: flex;
  gap: 32px;
}

.top-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 24px 0;
  transition: color 0.2s;
}

.top-link:hover {
  color: #fff;
}

.top-actions {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding: 4px;
}

.icon-btn:hover {
  color: #fff;
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* --- MAIN CONTENT GRID --- */
.content-grid {
  padding: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-column {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HERO CARD BANNER --- */
.hero-card {
  background: linear-gradient(135deg, #0d1233 0%, #070919 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}

.hero-info {
  max-width: 70%;
}

.hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  width: 140px;
  height: 140px;
}

.brain-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 15px;
  right: 15px;
  filter: blur(10px);
  opacity: 0.6;
}

/* --- SETTINGS CONTAINER CARD --- */
.settings-container {
  background-color: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

/* TABS BAR */
.settings-tabs-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 18px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-purple);
  background: rgba(99, 102, 241, 0.04);
}

/* TAB CONTENT */
.tab-content {
  display: none;
  padding: 32px;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* AVATAR UPLOADER */
.avatar-upload-zone {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.01);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.settings-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.avatar-meta h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.avatar-meta p {
  font-size: 12px;
  color: var(--text-dim);
}

/* FORM LAYOUTS */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.05);
}

/* SELECT WRAPPER */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* SUBJECTS CHECKBOX GRID */
.subjects-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-wrapper input:checked + .custom-checkbox {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.custom-checkbox:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input:checked + .custom-checkbox:after {
  display: block;
}

/* NOTIFICATIONS LIST STYLE */
.notification-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  gap: 20px;
}

.noti-meta h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.noti-meta p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* TOGGLE SWITCH CONTROLS */
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
  background-color: var(--accent-blue);
}

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

/* SAVE BUTTON */
.save-settings-btn {
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  transition: all 0.2s;
}

.save-settings-btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* --- STATUS CARD (RIGHT COLUMN) --- */
.side-card.status-card {
  background: linear-gradient(135deg, #0d1233 0%, #070919 100%);
}

.status-indicator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 16px;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-indicator:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.status-indicator-row h5 {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}

.status-indicator-row p {
  font-size: 11px;
  color: var(--text-dim);
}

.account-summary-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-stat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.summary-stat .stat-val {
  font-weight: 600;
  color: #fff;
}

.text-success {
  color: #10b981 !important;
}

/* DANGER ZONE CARD */
.danger-zone-card {
  border-color: rgba(244, 63, 94, 0.2);
}

.danger-subtext {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 20px;
}

.btn-wipe-data {
  width: 100%;
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed #f43f5e;
  color: #f43f5e;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-wipe-data:hover {
  background: #f43f5e;
  color: #fff;
  border-style: solid;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .content-grid {
    flex-direction: column;
    padding: 24px 20px;
  }
  
  .right-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0 20px;
  }
  
  .logo.page-title {
    left: 64px;
  }
  
  .top-nav {
    display: none;
  }
  
  .hero-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  
  .hero-info {
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .subjects-checkbox-grid {
    grid-template-columns: 1fr;
  }
}
