:root {
  --settings-bg: #1e1e1e;
  --sidebar-bg: #2d2d2d;
  --header-bg: #2d2d2d;
  --accent: #e95420;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --border: #3f3f3f;
  --card-bg: #2d2d2d;
}

.settings-window {
  display: flex;
  height: calc(100% - 36px);
  background: var(--settings-bg);
}

.settings-single {
  width: 100%;
}

.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.sidebar-header {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.05em;
  color: var(--text-main);
}

#leftcol {
  color: #dcdcdc;
  font-family: Ubuntu, sans-serif;
  font-size: 11pt;
  overflow: auto;
  padding: 0 8px 12px;
}

.nav-item {
  padding: 10px 20px;
  margin: 2px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  color: #dcdcdc;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-item.active {
  background: #4d4d4d;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-item .icon {
  width: 20px;
  text-align: center;
}

.nav-item .name {
  font-size: 12px;
  letter-spacing: 0.2px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--settings-bg);
}

.header-bar {
  height: 55px;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
  color: var(--text-main);
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.4px;
}

#rightcol {
  flex: 1;
  overflow: hidden;
  padding-bottom: 0;
}

.content-body {
  padding: 32px 48px;
  overflow-y: auto;
  height: calc(100% - 55px);
}

.settings-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.profile-image {
  border-radius: 16px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-name {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #cfd5dc;
}

.settings-group {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 26px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

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

.label-group {
  display: flex;
  flex-direction: column;
}

.row-title {
  font-weight: 500;
  font-size: 1em;
  color: #f2f2f2;
}

.row-subtitle {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn {
  background: #404040;
  border: 1px solid #505050;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: #505050;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #d7dde3;
}

.about-panel {
  margin: 24px auto 12px;
  max-width: 520px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 84, 32, 0.18), rgba(20, 20, 20, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.about-panel-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9fb3c8;
  margin-bottom: 10px;
}

.about-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e7eef6;
  font-size: 12px;
}

.about-panel-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #b8c4d0;
  opacity: 0.8;
}

.content {
  color: whitesmoke;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 24px;
}

.about-logo {
  width: 84px;
  height: 84px;
}

.about-os-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.about-os-version {
  font-size: 0.9rem;
  color: #b0b0b0;
}

@media only screen and (max-width: 900px) {
  .settings-window {
    flex-direction: column;
    height: calc(100% - 48px);
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    padding: 8px 6px;
  }

  #leftcol {
    display: flex;
    gap: 6px;
    padding: 0 4px;
    overflow-x: auto;
    font-size: 10.5pt;
  }

  .nav-item {
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .nav-item .icon {
    width: auto;
  }

  .header-bar {
    height: 48px;
  }

  .content-body {
    padding: 20px 20px 28px;
    height: calc(100% - 48px);
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .label-group {
    width: 100%;
  }

  .row-subtitle {
    word-break: break-all;
  }

  .btn {
    width: auto;
    align-self: stretch;
    text-align: center;
  }
}
