* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.screen {
  height: 100vh;
  width: 100%;
}

#head {
  background-color: #f0f0f0;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem;
  padding-left: 2rem;
  align-items: center;
}

/* Logo */
.logo img {
  height: 4rem;
}

.navbar {
  color: rgb(187, 176, 176);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: rgb(39, 38, 38);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.nav-links li a:hover {
  background-color: #aaaaaa2c;
}

.toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.toggle .bar {
  height: 3px;
  width: 100%;
  background-color: rgb(168, 168, 168);
  border-radius: 10px;
  transition: 0.2s;
}

.cancel {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: relative;
}

.cancel .bar {
  height: 3px;
  width: 100%;
  background-color: rgb(168, 168, 168);
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: 0.2s;
}
.cancel .bar-1 {
  transform: translate(-50%, -50%) rotate(45deg); /* First diagonal */
}

.cancel .bar-2 {
  transform: translate(-50%, -50%) rotate(-45deg); /* Second diagonal */
}

.cancel .bar-3 {
  display: none;
}

/* Optional: Hover effect */
.cancel:hover .bar {
  background-color: #df8282; /* Darker shade on hover */
}

.toggle-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: rgb(156, 156, 156);
  border-radius: 10px;
}

.toggle-button-2 {
  justify-content: space-around;
}

.nav-links li {
  list-style: none;
}

/* Form styling */

form {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  max-width: 400px;
  margin: 20px auto;
}

form section {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 16px;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.date {
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  width: 100%;
}
.submitBtn {
  background-color: #6b55e2;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.submitBtn:hover {
  background-color: #0056b3;
}

/* record */

body {
  font-family: sans-serif;
  background-color: #f4f4f4;
  color: #333;
  width: 100%;
}

.container {
  width: 100%;
  margin: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100vh;
  overflow-x: auto;
}

h1 {
  text-align: center;
  margin: 1.25rem 0rem 1px 0;
  color: #555;
}

#totals {
  display: flex;
  padding: 10px;
  justify-content: space-around;
}

#totals section {
  max-width: 90px;
  display: block;
  padding: 5px;
  border: none;
  text-align: center;
}

#sorting {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  align-items: center;
}

#month {
  margin-right: 5px;
}

#sorting button {
  background: #cacaca;
  border: none;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  

}




table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f0f0f0;
  font-weight: bold;
  color: #333;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #e0e0e0;
}
td:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

p a {
  display: block;
  text-align: center;
  color: #007bff;
  text-decoration: none;
  margin-top: 15px;
}

p a:hover {
  text-decoration: underline;
}

.deleteBtn {
  background-color: rgba(228, 17, 17, 0.829);
  color: white;
  padding: 0.5rem 0.2rem;
  font-size: 13px;
  border: 0;
  border-radius: 1rem;
  width: 90%;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .toggle {
    display: flex;
    margin-bottom: 10px;
  }
  .cancel {
    display: flex;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toggle-button {
    display: flex;
    margin-bottom: 10px;
  }

  .nav-links {
    display: none;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cancel .active {
    display: flex;
  }
  .toggle .disable {
    display: none;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    padding: 10px;
    border-bottom: 1px solid #555;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

