body {
  font-family: Arial, sans-serif;
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 99;
  padding: 1rem 0;
  text-align: center;
}

.box2.sticky {
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.meter {
  height: 20px;
  background: #e0e0df;
  border-radius: 25px;
  margin: 1rem 0;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 25px 0 0 25px;
  background-color: green;
}

.table {
  width: 100%;
}

.float-right {
  float: right;
}

.form-group {
  margin-top: 20px;
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  align-items: center;
}

.hour-input {
  flex: 1;
}

.toggle-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #f0f0f0;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  margin-top: 0.5rem;
  width: 50%;
  min-width: 180px;
  margin-left: 10px;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
}

.toggle-option.selected {
  background-color: #007bff;
  color: white;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background-color: #007bff;
  transition: left 0.3s ease;
  z-index: -1;
}

.delete-btn {
  cursor: pointer;
  color: red;
}

#categoryTableContainer {
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 780px) {
  .container {
    padding: 0 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .form-group label {
    margin-top: 10px;
    font-size: 1rem;
  }

  .form-control {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .table thead th {
    font-size: 0.8rem;
  }

  .table tbody td {
    font-size: 1rem;
  }

  .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .toggle-container {
    flex-direction: row;
    width: 50%;
    min-width: 180px;
    margin-left: 10px;
    height: auto;
  }

  .toggle-option {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .toggle-slider {
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
  }

  .meter {
    height: 15px;
  }

  .meter span {
    border-radius: 15px 0 0 15px;
  }
}
