/* Global Css Colors: Dynamic Component bg:#f3f4f8, Fixed Components: #EBEBF3 */
a,p,h3,h2,h1 {
  text-decoration: none;
  color: inherit;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: None;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Poppins", Helvetica;
  font-size: 14px;
  color: #444444;
}
.header {
  position: relative;
  width: 100%;
  min-height: 70px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 30px;
  border-bottom: 0.5px solid #dcdcdc;
}
.afyadesk-div {
  width: auto;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.appname-separator {
  width: 1px;
  background-color: #969696;
  margin: auto 10px;
  height: 75%;
}

.organisation-name {
  position: relative;
  width: 385px;
  height: auto;
  font-family: "Poppins";
  font-weight: bold;
  color: black;
  font-size: 1.2em;
  letter-spacing: 0;
  line-height: normal;
}

.afyadesk-logo {
  position: relative;
  width: 152px;
  height: 56px;
  background-size: 100% 100%;
  right: 2%;
}
.subheader {
  position: relative;
  width: 100%;
  height: 30px;
  background-color: #654bdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding-left: 10px;
  padding: 0 30px;
  border-bottom: 0.5px solid #dcdcdc;
}
.subheader-content {
  background-color: none;
  position: relative;
  display: flex;
  flex-grow: 1;
}

.logged_in_user {
  display: flex;
  font-size: small;
}
.username_title {
  font-weight: bold;
  color: #2b8ef0;
  margin-right: 3px;
}
.username {
  color: white;
  margin-right: 10px;
}
.div {
  background-color: #c52626;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  flex-grow: 1;
  overflow: hidden;
}
.menu {
  position: relative;
  min-width: 70px;
  max-width: 80px;
  width: 5%;
  height: 100vh;
  background-color: white;
  color: #444444;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-right: 0.5px solid #dcdcdc;
  padding-bottom: 7%;
}
.menu-child{
  background-color: white;
  position: relative;
  min-width: 70px;
  max-width: 80px;
  width: 100%;
  height: auto;
  color: #444444;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  padding-top: 10px;
  overflow-y: auto;
  box-sizing: border-box;
  border-right: 0.5px solid #dcdcdc;
}
.submenu {
  position: relative;
  width: 55px;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
  overflow-y: auto;
  padding-bottom: 10%;
  box-sizing: border-box;
  border-right: 0.5px solid #dcdcdc;
}
.submenu-docked {
  position: relative;
  width: 17%;
  min-width: 250px;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
  overflow-y: auto;
  padding-bottom: 10%;
  box-sizing: border-box;
  border-right: 0.5px solid #dcdcdc;
}
.submenu-buttons-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding: 0px 7px;
  overflow-y: auto;
  box-sizing: border-box;
}

.app-container {
  position: relative;
  max-width: 100%;
  min-width: 80%;
  height: 100vh;
  background-color: #f2f3f6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  box-sizing: border-box;
  padding: 10px;
  padding-bottom: 10%;
  overflow-y: auto;
}
.content {
  background-color: #f5f5f5;
  width: 100%;
  display: flex;
  flex-direction: row;
}
.top-div {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.component {
  position: relative;
  width: 100%;
  height: auto;
  padding:  10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-sizing: border-box;
  border: 0.8px solid #d7d7d7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-header-div {
  position: relative;
  width: 100%;
  height: 50px;
  padding: 0 5px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.content-header-div-child{
  position: relative;
  width: auto;
  height: 50px;
  padding: 0 5px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  
}
.content-title{
  color: #654bdd;
}

.menu-button {
  position: relative;
  width: 80%;
  min-height: 59px;
  color: #444444;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-family: Poppins;
  border: none;
  background-color: white;
  border-radius: 8px;
}

.menu-button:hover {
  color: #654bdd;
  border-radius: 8px;
}
.menu-button.active {
  background-color: #f2f3f6;
  color: #654bdd;
  border-radius: 8px;
}

.menu-button-text {
  font-size: 11px;
  margin: 0;
}
.submenu-button {
  position: relative;
  width: 100%;
  min-height: 45px;
  background-color: white;
  border: none;
  border-radius: 8px;
  font-family: Poppins;
  font-size: 1em;
  text-align: left;
  padding: 0 6%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.submenu-button:hover {
  background-color: #f2f3f6;
  color: #654bdd;
}
.submenu-button.active {
  background-color: #f2f3f6;
  color: #654bdd;
  font-weight: bold;
}
.dropdown {
  background-color: white;
  display: flex;
  flex-direction: row;
  width: 80%;
  padding: 5px;
}
.dropdown-container {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  align-items: start;
  background-color: none;
  gap: 5px;
  width: 90%;
}

.dropdown-item {
  position: relative;
  width: 100%;
  min-height: 40px;
  background-color: white;
  color: #444444;
  border: none;
  border-radius: 8px;
  font-family: Poppins;
  font-size: 14px;
  text-align: left;
  display: flex;
  justify-content: left;
  align-items: center;
  padding-left: 10%;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: #f2f3f6;
  color: #654bdd;
  font-weight: bold;
}

.dropdown-item.active {
  background-color: #f2f3f6;
  color: #654bdd;
  font-weight: bold;
}
.dropdown-line {
  width: 0.5px;
  background-color: #654bdd;
  height: 90%;
  margin-left: 10px;
  position: relative;
}

.page-title {
  position: relative;
  width: 95%;
  height: 10px;
  font-family: "Poppins";
  font-size: medium;
  padding-left: 10%;
  font-weight: 600;
  color: #1f1f1f;
}
.page-title-separator {
  position: relative;
  width: 95%;
  border-top: 0.5px solid ebebeb;
}

/* Global Loader */

.loader-div {
  position: relative;
  /* border: 1px solid red; */
  width: 100%;
  height: 80vh;
  background-color: rgb(255, 255, 255, 30);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.loader {
  position: relative;
  width: 15%;
  max-width: 200px;
  /* height: 60px; */
  animation: spin 5s linear infinite;
}
.floating-loader-div {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background-color: rgba(255, 255, 255, 0.613);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.floating-loader {
  position: relative;
  width: 15%;
  max-width: 200px;
  /* height: 60px; */
  animation: spin 5s linear infinite;
}



/* Global General Buttons */
.button-general {
  position: relative;
  width: 95%;
  min-width: 100px;
  max-width: 120px;
  height: auto;
  min-height: 30px;
  background-color: white;
  border: 0.5px solid #654bdd;
  color: #654bdd;
  border: none;
  border-radius: 8px;
  font-family: Poppins;
}
.button-general:hover {
  background-color: #654bdd;
  color: white;
}

.button-general-with-icon {
  position: relative;
  width: auto;
  max-width: 120px;
  min-height: 40px;
  background-color: white;
  border: 0.5px solid #654bdd;
  color: #654bdd;
  border-radius: 8px;
  font-family: Poppins;
  padding: 0 10px;
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 5px;
}

.button-general-with-icon:hover {
  background-color: #654bdd;
  color: #ffffff;
}

/* Global Submit Buttons */
.submit-container {
  position: relative;
  display: flex;
  flex-direction: row;
  background-color: #fbfbfb;
  border-radius: 0 0 10px 10px;
  width: 100%;
  height: 70px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px 20px;
  gap: 5px;
  box-sizing: border-box;
}
.submit-button {
  width: auto;
  min-width: 110px;
  height: 40px;
  padding: 10px;
  background-color: #654bdd;
  color: white;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: Poppins;
}

.submit-button:hover {
  background-color: #5b42cb;
  color: white;
}
.submenu-docking-div {
  background-color: none;
  width: 100%;
  min-height: 25px;
  display: flex;
  justify-content: start;
  padding-left: 10px;
  margin-bottom: 5px;
  box-sizing: border-box;
}
.submenu-docking-div button {
  background-color: white;
  color: #654bdd;
  outline: none;
  border: none;
  height: 35px;
  width: 35px;
  border-radius: 2px;
}
.submenu-docking-div button:hover {
  background-color: rgb(255, 255, 255);
  color: #654bdd;
  outline: none;
  border: none;
  height: 35px;
  width: 35px;
  border-radius: 2px;
}

.button-close {
  position: relative;
  min-width: 85px;
  height: auto;
  min-height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: #f2f3f6;
  color: #636363;
  border: none;
  border-radius: 8px;
  font-family: Poppins;
  text-align: center;
  margin: 0px;
}
.button-close:hover {
  background-color: white;
}
/* Global Input and their Labels */

.search-input {
  min-width: 250px;
  height: 40px;
  border: 0.5px solid rgb(195, 195, 195);
  border-radius: 6px;
  padding: 0 15px;
  outline: none;
  font-family: Poppins;
}
.select-input {
  width: 30%;
  min-width: 350px;
  height: 40px;
  border: 0.5px solid rgb(195, 195, 195);
  border-radius: 6px;
  padding: 0 15px;
  outline: none;
  font-family: Poppins;
  font-weight: bold;
}

.select {
  padding: 10px;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.sign-in-button {
  width: auto;
  min-width: 110px;
  height: 40px;
  padding: 10px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: Poppins;
}
/* Forms */
.form-container {
  display: grid;
  gap: 0px;
  padding: 0px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  margin-top: 0px;
  background-color: #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
}
.form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  margin-top: 0px;
  background-color: #fbfbfb;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.form-group label {
  color: gray;
}
.form-group input {
  height: 20px;
}
.form-group input::placeholder {
  color: gray;
  font-family: Poppins;

  opacity: 0.7; /* Optional: affects transparency */
}
.form-group select {
  font-family: Poppins;
  height: auto;
}
.form-group select option {
  font-family: Poppins;
}

.form h2 {
  /* font-size: 1.2rem; */
  color: #654bdd;
  margin-bottom: 10px;
}

.form p {
  color: #333;
  margin: 5px 0;
}

.form strong {
  color: #654bdd;
  margin: 0;
}

/* Navigation Button */
.back-button {
  background-color: #654bdd;
  color: white;
  outline: none;
  border: none;
  height: 100%;
  width: 3%;
}
.back-button:hover {
  background-color: #407bb6;
  color: white;
  font-weight: bold;
}
.button-icon-only {
  background-color: rgba(255, 255, 255, 0);
  color: #654bdd;
  outline: none;
  border: none;
  height: 40px;
  width: 45px;
  border-radius: 3px;
}
.button-icon-only:hover {
  background-color: white;
}
.tabs-header {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: none;
  box-sizing: border-box;
  gap: 12px;
  padding: 8px;
  /* border-top: 0.8px solid #b3b3b3; */
}

/* Global Success Alert */

.global-success-alert {
  position: relative;
  background-color: rgb(19, 217, 119);
  width: 90%;
  max-width: 35%;
  height: auto;
  min-height: 80px;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  position: fixed;
  /* top: 50%;
  left: 50%; */
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
@keyframes popupAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popupDisappear {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Apply animation to show popup */
.success-alert.show {
  animation: popupAppear 0.3s ease-out forwards;
}

/* Apply animation to hide popup after a delay */
.success-alert.hide {
  animation: popupDisappear 0.3s ease-in forwards;
}

/* Optional: Style for the popup content */
.success-alert p {
  margin: 0;
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

.global-container-row {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  gap: 10px;
  margin-bottom: 2px;
  padding: 20px;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  box-sizing: border-box;
}
.global-container-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
  padding: 10px;
  border-radius: 10px;
  align-items: start;
  justify-content: start;
  background-color: white;
}
@media(max-width:800px){
    .widget-container{
        flex-direction: column;
    }
    .widget{
      width: 100%;
    }
}