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

h2 {
  text-align: center;
  margin :10px;
  color: #04aa6d;
}
.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 10px;
  text-decoration: none;
  font-size: 17px;
  line-height: 28px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
}

.topnav .home {
  float: right;
}


.fa-home {
    font-size: 23px;
    line-height: 1px;
    vertical-align: middle;
}


.textbox {
  display: block;
  width: 50%;
  padding: 12px 16px;
  margin: 8px 0;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.textbox:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  outline: none;
}

#content {
    display: flex;
    align-items: center;
    padding: 20px 0;
    flex-direction: column;
}

#table {
    width: 100%;
}

table {
  border-collapse: collapse;
  margin-top: 15px;
  width: 80%;
  margin: 20px auto;
}

th, td {
  padding: 8px;
  text-align: center;
}

tr:nth-child(even){background-color: #f2f2f2}

th {
  background-color: #04AA6D;
  color: white;
}

.timeInput {
    width: 40%;
    font-size: large;
    padding: 5px;
    margin : 10px 0;   
}

.submit {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 50%;
  margin: 10px 0;
}

.submit:hover {
  background-color: #2980b9;
}

.submit:disabled {
  background-color: #9e9e9e;
}

.edit, .delete {
  color: #3498db;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 3px;
  aspect-ratio: 1 / 1;
  background: none;
}

#registerForm {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.delete {
  color:#aa0404;
}

.delete:hover {
  text-shadow: 0px 0px 15px #aa0404, 0 0 9px #aa0404;
}
.edit:hover {
  text-shadow: 0px 0px 15px #3498db, 0 0 9px #3498db;
}

.edit:disabled, .delete:disabled {
  background-color: #9e9e9e;
}

.loader {
  display: none;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  animation: spin 1s linear infinite;
  vertical-align: middle; /* optional: aligns with text */
  margin-right: 10px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  position: relative;
}

.failed {
    color:#aa0404;
    font-size: large;
    margin: 10px;
}

.success {
    color:#04AA6D;
}

#loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Close Button */
.close {
  position: absolute;
  top: 0;
  right: 0;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: 0 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

p {
  text-align: center;
}


#content {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fade-out {
  opacity: 0;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 days */
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.day {
  border: 1px solid #ccc;
  padding: 8px;
  background: #fdfdfd;
  border-radius: 6px;
  text-align: center;
  font-family: sans-serif;
  color: #888;
}

.fill {
    background: #cdffd982;
    color: #218838;
}

.day-number {
  font-weight: bold;
  font-size: 1.1em;
}

hr {
  margin: 6px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.hours {
  font-size: 0.85em;
}

.total {
    margin: 20px;
    font-family: sans-serif;
    text-align: center;
    font-size: 1.1em;
    background-color: #cdffd982;
    color: #218838;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.manageBtn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin: 10px 0;
  aspect-ratio: 1/1;
  width: 30px;
}

.manageBtn:hover {
  background-color: #036f47;
}

.manageBtn:disabled {
  background-color: #9e9e9e;
}

.delUser {
  background: none;
}

.managePwd {
  width: 80%;
  padding: 5px;
  margin: 8px 0;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


.managePwd:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  outline: none;
}


/* /////////////////////////////////////////////////////////////////////// */



@media (max-width: 800px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon, .topnav a.home {
    float: right;
    display: block;
    width: 25px;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  table {
    width: 100%;
  }

  .submit {
    width: 95%;
  }
  .textbox {
    width: 95%;
  }
}


@media (max-width: 800px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
    text-align: center;
  }

  .topnav.responsive .home {
    position: absolute;
    right: 45px;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

