/* Add the Bahij font  */
@font-face {
  font-family: "Bahij";
  src: url(assets/fonts/Bahij_TheSansArabic-Bold.woff2) format("woff2"),
    url(assets/fonts/Bahij_TheSansArabic-Bold.woff) format("woff");
}
body {
  background-color: #7422b9;
  height: 100vh;
  font-family: "Bahij", Arial, Helvetica, sans-serif;
  font-size: 16px;
}
button {
  color: white;
  font-family: "Bahij", Arial, Helvetica, sans-serif;
  background-color: transparent;
  border: 0.3em solid white;
  border-radius: 0.5em;
  padding: 0.5em 1em;
  font-size: 1em;
  margin: 0.5em;
  cursor: pointer;
}
button#login {
  background-color: #2c3171 !important;
}

button:hover {
  background-color: white;
  color: #2c3171;
}
img#upper_left {
  position: absolute;
  top: 3%;
  left: 5%;
  width: 7vw;
}

table {
  background-color: rgba(35, 57, 93, 0.3);
  color: white;
  margin: 25vh auto 2vh auto;
  border-collapse: collapse;
  width: 75%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Box shadow for table */
  border-spacing: 0 30px;
}
tbody {
  font-size: 1em;
}
th,
td {
  text-align: left;
  padding: 12px;
}
th {
  font-size: 1.5em;
  background-color: #23395d; /* Blue header background */
  color: #fff; /* White header text */
}
tr:nth-child(even) {
  background-color: rgba(35, 57, 93, 0.8);
}
.button-container {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
}
.add-container {
  position: absolute;
  top: 5vh;
  left: 25vh;
}
.delete-container {
  /* Display on top right */
  position: absolute;
  top: 5vh;
  right: 8vh;
  /* Display the buttons on top of each other */
  display: flex;
  flex-direction: column;
}
.active {
  background-color: white;
  color: #004b8c;
}
#modal {
  display: none;
}
#login-modal {
  display: block;
}
.modal {
  text-align: center;
  font-family: "Bahij";
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal form {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  max-width: 400px;
  margin: 0 auto;
}

.modal form label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.modal form input,
.modal form select {
  font-family: "Bahij";
  width: 90%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.modal form input[type="submit"] {
  background-color: #0074d9;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.modal form input[type="submit"]:hover {
  background-color: #005ea3;
}
div.pagination-container {
  display: flex;
  justify-content: center;
}
