:root {
    --bg: #fdfdfc;
    --text: #333;
    --accent: #7f5af0;
    --accent-light: #ded9f9;
    --border: #ddd;
  }
  
  body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 2rem;
    max-width: 480px;
    margin: auto;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  p {
    margin: 0.5rem 0;
  }
  
  form {
    margin-top: 1.5rem;
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
  }
  
  input {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  button {
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 1rem;
  }
  
  button:hover {
    background: #6b4de6;
  }
  
  ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
  }
  
  li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }
  
  #progressBarContainer {
    background: var(--accent-light);
    border-radius: 8px;
    height: 10px;
    margin: 1rem 0 0.5rem;
  }
  
  #progressBar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s ease-in-out;
  }
  
  #feedbackLine {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
  }
  
  /* Dark mode toggle via class */
  body.dark {
    background: #121212;
    color: #e4e4e4;
  }
  
  body.dark form {
    background: #1d1d1d;
    border-color: #444;
  }
  
  body.dark input {
    background: #1d1d1d;
    color: #fff;
    border-color: #444;
  }
  
  body.dark button {
    background: #9d79f2;
    color: white;
  }
  
  body.dark #progressBarContainer {
    background: #333;
  }
  
  body.dark #progressBar {
    background: #a992f4;
  }
  
  body.dark #feedbackLine {
    color: #aaa;
  }
  
  #resetBtn {
    background: #ff6b6b;
  }
  
  #resetBtn:hover {
    background: #e85c5c;
  }
  
  #exportBtn {
    background: #7f5af0;
  }
  
  #exportBtn:hover {
    background: #6b4de6;
  }
  
  #toggleThemeBtn {
    background: #2685c4;
  }
  
  #toggleThemeBtn:hover {
    background: #4d93d5;
  }
  
  .toggles {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
  }
  
  .switch input {
    display: none;
  }
  
  .switch .slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.3s;
  }
  
  .switch .slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
  }
  
  .switch input:checked + .slider {
    background-color: var(--accent);
  }
  
  .switch input:checked + .slider::before {
    transform: translateX(20px);
  }

  #percentHelper ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
  }
  
  #percentHelper li {
    margin-bottom: 0.25rem;
  }

  #languageSelect {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.5rem;
  }
  
  .language-selector {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  
  