/* =======================
   Dark Mode (Default)
   ======================= */
   :root {
    --bg-color: #000000;
    --text-color: #E0E0E0;
    --secondary-bg-color: #1a1a1a;
    --input-bg-color: #2a2a2a;
    --border-color: #333333;
    --button-color: #007bff;
    --button-hover-color: #0056b3;
    --link-color: #4da6ff;
    --active-border-color: #4B60FF;
  }
  
  /* =======================
     Light Mode Overrides
     ======================= */
  .light-theme {
    --bg-color: #FFFFFF; /* For off-white use #F0F0F0 */
    --text-color: #333333;
    --secondary-bg-color: #F2F2F2;
    --input-bg-color: #FFFFFF;
    --border-color: #CCCCCC;
    --button-color: #0066CC;
    --button-hover-color: #004d99;
    --link-color: #003399;
    --active-border-color: #003399;
  }
  
  /*
    In light mode, make all <h1> text black
    (rather than the default gradient).
  */
  .light-theme h1 {
    background: none !important;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: black;
    color: black !important;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
    font-size: 0.9em;
  }
  
  .text-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    color: var(--text-color);
  }
  
  .small-text-list {
    font-size: 0.83em;
    line-height: 1.4;
    color: var(--text-color);
  }
  
  /* Global style for links */
  a {
    text-decoration: none;
    color: var(--link-color);
  }
  
  .navbar {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 10px 20px;
    margin-bottom: 50px;
  }
  
  .nav-button.active {
    border-bottom: 2px solid var(--active-border-color);
    color: inherit;
  }
  
  .logo {
    max-width: 120px;
    height: auto;
    border-radius: 20px;
  }
  
  .nav-button {
    margin-left: 20px;
    padding: 10px 15px;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border: none;
    outline: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-weight: bold;
  }
  
  .nav-button:hover {
    background-color: var(--secondary-bg-color);
  }
  
  /* Gradient text for H1 in dark mode */
  h1 {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #e0e0e0, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-weight: bold;
  }
  
  form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  }
  
  input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg-color);
    color: var(--text-color);
  }
  
  button {
    width: 100%;
    padding: 10px;
    background-color: var(--button-color);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: var(--button-hover-color);
  }
  
  .reply-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    color: var(--text-color);
  }
  
  
  /* =======================
     Slider Toggle Switch
     ======================= */
  
  /* Position it in bottom-left corner */
  .theme-toggle-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 9999;
  }
  
  /* Smaller switch overall: 30x15 */
  .switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 15px;
    margin-right: 8px;
  }
  
  /* Hide default checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The bar of the toggle, half-size */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 15px;
  }
  
  /* The toggle thumb is 11x11 inside a 15px bar */
  .slider:before {
    position: absolute;
    content: "";
    height: 11px;
    width: 11px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  /* When checked, move the circle to the right ~ half the bar width */
  input:checked + .slider {
    background-color: var(--button-color);
  }
  
  input:checked + .slider:before {
    transform: translateX(14px);
  }
  
  /* =======================
     Example Boxes & Mentions
     ======================= */
  
  /* Container that stacks .example-box items vertically */
  .example-searches {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    /* remove width: 600px; so it doesn't force box widths */
    margin: 0 auto;
    align-items: center;  /* centers each item horizontally */
  }
  
  /* Example/Clickable “button” on home page or paper search */
  .example-box {
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    color: var(--text-color);
    display: inline-block; /* size to text rather than full width */
    text-decoration: none;
  }
  
  
  /* Hover effect for .example-box */
  .example-box:hover {
    background-color: var(--button-color);
    color: white;
  }
  
  /* Blue, bold text for the @paper mention */
  .mention {
    color: blue;
    font-weight: bold;
  }
  