body {
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    background-color: #222;
  }

  #textsContainer::-webkit-scrollbar { display: none; }
  #textsContainer { scrollbar-width: none; }
  #textsContainer { -ms-overflow-style: none; }

  .search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }

  #searchInput {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    min-width: 200px;
  }

  button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  }

  #resetBtn {
  background-color: #f44336;
  color: #fff;
}

#saveBtn {
  background-color: #4CAF50;
  color: #fff;
}

  #textsContainer {
display: block;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0d0;
  border-top: 2px solid #0d0;
  height: 220px;
  overflow-y: scroll;
  margin-top: 10px;
  }

  #textsContainer span {
    display: block;
    padding: 8px;
    margin: 4px 0;
    background-color: gray;
  color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    word-break: break-word;
  }

  #progressContainer {
  width: 100%;
  background-color: #555;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  }

  #progressBar {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.3s;
  }

  #stats {
    margin-top: 20px;
    font-size: 16px;
  }

  #stats p {
    margin: 5px 0;
    background-color: #0096F6;
  color: white;
  padding: 10px;
  }

  .highlight {
    background-color: #00c800 !important;
    color: white;
    font-weight: bold;
  }

  #Content {
    width: 17%;
    margin: 0 auto;
    text-align: center;
  }

  /* 📱 Адаптация для маленьких экранов */
  @media (max-width: 600px) {
    .search-container {
      flex-direction: column;
    }

    button {
      width: 100%;
      margin-top: 10px;
    }

    #Content {
      width: 100%;
    }

    #textsContainer {
      max-height: 200px;
    }

    #stats {
      font-size: 14px;
    }
  }