body {
  background-color: #363636;
  font-family: Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.button {
  width: auto;
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #45a049;
}

button + button {
  margin-left: 10px;
}

.hidden {
  display: none !important;
}

.lists {
  width: 80%;
  margin: 5px auto 0;
}

.list {
  border: 1px solid #ccc;
  padding: 1px;
  margin: 1px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  padding-top: 5px;
}

.form {
  margin-top: 20px;
  background-color: #444;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 50%;
}

.form h3 {
  color: #fff;
  margin-bottom: 15px;
  width: 100%;
}

.form label {
  display: inline-block;
  width: calc(33.33% - 10px);
  margin-bottom: 8px;
  color: #fff;
}

.form input {
  width: calc(66.66% - 10px);
  padding: 8px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #555;
  color: #fff;
}

.form button {
  width: 100%;
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form button:hover {
  background-color: #45a049;
}


h2 {
  margin: 0;
}


.sort-button {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 0px 0;
}
.actions {
  position: relative;
}

.actions button {
  position: relative;
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  margin-right: 5px;
  cursor: auto;
}

.actions .button-selected {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: red;
  margin-right: 5px;
  cursor: auto;
}

.actions button:last-child {
  margin-right: 0;
}
/*


.actions button:hover ~ .tooltip {
  display: block;
}*/


.tooltip {
  position: relative;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 4px;
  color: #000;
  font-size: 14px;
  box-shadow: 0px,2px,4px rgba(0,0,0,0.1);
  z-index:999;
  top:0;
  left:20px;
}

.actions button:hover ~ .tooltip {  
  display: block; 
}

.actions button:hover {
  background-color: #0b9211;
}

.actions .button-selected:hover {
  background-color: #ff6464;
}

/**
 * Responsive
*/

@media (max-width: 767px) {
  .lists {
    width: 99%;
  }
  .tooltip {
    position: relative;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    box-shadow: 0px,2px,4px rgba(0,0,0,0.1);
    z-index:999;
    left: -100px;
  }
}