body {
  background-color: #f2f2f2;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.create-account {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 8px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
}

.create-account:hover {
  background-color: #45a049;
  text-decoration: none;
}

.register-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  text-align: center;
  width: 250px;
  height: 250px;
  background-color: #ffffff;
  border-radius: 9px;
  padding: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
}

.register-box input {
  background-color: #f2f2f2;
  border: 2px solid #4CAF50;
  margin-bottom: 4px;
  font-size: 14px;
  border-radius: 9px;
  padding: 8px;
}

.register-box button {
  background-color: #4CAF50;
  color: white;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  border-radius: 9px;
  border: none;
}

.login-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  text-align: center;
  width: 250px;
  height: 250px;
  background-color: #ffffff;
  border-radius: 9px;
  padding: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
}

.login-box input {
  background-color: #f2f2f2;
  border: 2px solid #4CAF50;
  margin-bottom: 4px;
  font-size: 14px;
  border-radius: 9px;
  padding: 8px;
}

.login-box button {
  background-color: #4CAF50;
  color: white;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  border-radius: 9px;
  border: none;
}

.login-box button:hover {
  background-color: #45a049;
}

.classes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 700px;
  height: 500px;
  background-color: #ffffff;
  padding: 8px 24px 8px 24px;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
  border: 1px solid #ccc;
  border-radius: 9px;
}

.class {
  background: #f0f0f0;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

a {
  text-decoration: none;
  color: #4CAF50;
  margin: 0 2px;
}

a:hover {
  text-decoration: underline;
}

.attendance {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 400px;
  height: 600px;
  overflow: auto;
  background-color: #ffffff;
  padding: 8px 24px 8px 24px;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
  border: 1px solid #ccc;
  border-radius: 9px;
}

.attendance-table {
  border-collapse: collapse;
  width: 100%;
}

.attendance-table td, th {
  border: 1px solid #3e8e41;
  text-align: left;
  padding: 8px;
}

.attendance-table td input[type=checkbox]:checked {
  accent-color: #3e8e41;
}

.attendance-table tr:nth-child(even) {
  background-color: #d6f5d6;
}

.attendance-table th {
  background-color: #3e8e41;
  color: white;
}

.back-button {
  position: absolute;
  top: 2%;
  left: 4%;
  padding: 8px;
  font-weight: bolder;
}

.attendance button {
  background-color: #4CAF50;
  color: white;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  border-radius: 9px;
  border: none;
}

.attendance button:hover {
  background-color: #45a049;
}

.students {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 400px;
  height: 600px;
  overflow: auto;
  background-color: #ffffff;
  padding: 8px 24px 8px 24px;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
  border: 1px solid #ccc;
  border-radius: 9px;
}

.student {
  background: #f0f0f0;
  margin-bottom: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 9px;
}

.student button {
  background-color: #8B0000;
  padding: 8px;
  color: white;
  border-radius: 4px;
  border: none;
}

.add-student {
  background-color: #45a049;
  padding: 8px;
  color: white;
  border-radius: 4px;
  border: none;
}

.attendances {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 400px;
  height: 600px;
  overflow: auto;
  background-color: #ffffff;
  padding: 8px 24px 8px 24px;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
  border: 1px solid #ccc;
  border-radius: 9px;
}

.attendances input[type=date] {
  accent-color: #3e8e41;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 8px;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}

.reports {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 400px;
  height: 600px;
  overflow: auto;
  background-color: #ffffff;
  padding: 8px 24px 8px 24px;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.75);
  border: 1px solid #ccc;
  border-radius: 9px;
}

.report-table {
  border-collapse: collapse;
  width: 100%;
}

.report-table td, th {
  border: 1px solid #3e8e41;
  text-align: left;
  padding: 8px;
}

.report-table tr:nth-child(even) {
  background-color: #d6f5d6;
}

.report-table th {
  background-color: #3e8e41;
  color: white;
}
