:root {
  /* blue */
  --primary-color: #3191bc;
  /* green */
  --secondary-color: #75b06c;
  /* purple */
  --tertiary-color: #3191bc;
  --light-color: #f4f4f4;
  --dark-color: #333;
}

body {
  background: var(--light-color);
  margin: 0;
  padding: 0;
  height: 95vh;
  /* font-family:Verdana, Geneva, Tahoma, sans-serif; */
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  overflow-y: hidden;
}

main {
  background-color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  background-color: white;
}

.login-container img {
  display: block;
  margin: 0 auto 20px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

#logo {
  /*  
                729px x 342px
                0.47 = 47% of the original size
             */
  width: calc(729px * 0.47);
  /*
                342px x 0.47 = 160.74px
                160.74px / 2 = 80.37px 
             */
  height: calc(342px * 0.47);
  margin: 0 auto;
  margin-bottom: 25px;
}

#logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 55%;
  right: 4%;
  cursor: pointer;
}

header {
  background-color: white;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px;
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile {
  width: 200px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: var(--tertiary-color);
}

.main-dashboard {
  display: flex;
  justify-content: space-between;
  justify-items: center;
  width: 100%;
  height: 100%;
}

.sidebar {
  color: var(--secondary-color);
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px 10px;
  width: 200px;
  outline: 10px solid white;
  box-shadow: 9px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.nav-item i {
  margin-right: 5px;
}

.nav-link {
  color: var(--tertiary-color);
  text-decoration: none;
}

.nav-link:hover {
  color: #095376;
}

.content {
  width: 85%;
  padding: 40px;
  overflow-y: scroll;
}

@media only screen and (max-width: 750px) {
  .sidebar {
    align-items: center;
    width: 100px;
  }

  .nav-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 100px;
  }

  .nav-item i {
    font-size: 2em;
  }

  .nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

.container {
  margin-bottom: 30px;
}

@media only screen and (max-width: 540px) {
  .sidebar {
    width: 35px;
  }

  .nav-item i {
    font-size: 1em;
  }

  .sidebar .nav-link {
    margin-right: -23%;
  }

  .sidebar .nav-link span {
    display: none;
  }

  #pres-upload {
    width: 265px;
    margin-left: 5%;
  }

  .login-container {
    max-width: 300px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: white;
  }

  .login-container img {
    display: block;
    margin: 0 auto 20px;
  }

  #logo {
    /*  
                  729px x 342px
                  0.47 = 47% of the original size
               */
    width: calc(560px * 0.47);
    /*
                  342px x 0.47 = 160.74px
                  160.74px / 2 = 80.37px 
               */
    height: calc(342px * 0.47);
    margin: 0 auto;
    margin-bottom: 25px;
  }
}

#mobile-message {
  display: none;
}
.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.popup-header {
  font-size: 18px;
  margin-bottom: 10px;
}

.popup-body {
  font-size: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.close-popup {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup {
  display: none;
}

@media only screen and (max-width: 420px) {
  #calendar {
    display: none;
  }

  #mobile-message {
    display: block;
    background-color: #3191bc;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
  }

  .content {
    width: 100%;
  }

  #cmnts {
    display: none;
  }

  .popup {
    display: block;
  }

  .overlay {
    display: block;
  }

  #dash-login {
    max-width: 250px;
  }

  #dash-login #logo {
    /*  
                  729px x 342px
                  0.47 = 47% of the original size
               */
    width: calc(450px * 0.47);
    /*
                  342px x 0.47 = 160.74px
                  160.74px / 2 = 80.37px 
               */
    height: calc(342px * 0.47);
    margin: 0 auto;
    margin-bottom: 25px;
  }
}
