/*------------------------ Common CSS ---------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* #313131 */

body {
  font-family: "Poppins", sans-serif;
}

/* Loader */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader .spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.floating-form-group {
  position: relative;
}

.floating-form-group label {
  position: absolute;
  top: -17px;
  left: 16px;
  padding: 7px;
  font-size: 14px;
  color: #757575;
  transition: 0.3s;
  background-color: white;
}

.floating-form-group input,
.floating-form-group select {
  width: 100%;
  padding: 16px !important;
  border-bottom: 1px solid #e5e5e5;
  background-color: #fff !important;
  font-size: 16px;
  transition: 0.3s;
}

/* Passoword Eye Icon */

.floating-form-group i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #777;
  border-left: 1px solid #e5e5e5;
  padding-left: 10px;
}

/* Button */

.btn {
  width: 160px;
}

.btn-primary {
  background-color: #040484 !important;
  width: 160px;
  border: none;
  border: 1px solid #fff;
}

.btn-primary:hover {
  background-color: #fff !important;
  color: #040484 !important;
  border: 1px solid #040484;
  transition: 0.3s;
}

.btn-secondary {
  background-color: #e0e0e0 !important;
  border: none;
  color: #6c6c6c;
}

.btn-secondary:hover {
  background-color: #fff !important;
  color: #6c6c6c !important;
  border: 1px solid #6c6c6c;
  transition: 0.3s;
}

.btn-danger:hover {
  background-color: #fff !important;
  color: #d92d20 !important;
  border: 1px solid #d92d20;
  transition: 0.3s;
}

.btn-edit {
  background-color: #4a4aff !important;
  width: max-content;
  color: #fff !important;
  border: none;
  border: 1px solid #fff;
}

.btn-edit:hover {
  background-color: #fff !important;
  color: #4a4aff !important;
  border: 1px solid #4a4aff;
  transition: 0.3s;
}

/* SideBar */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  color: #fff;
  transition: 0.5s;
  border: 1px solid #040484;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  background-image: linear-gradient(262.05deg, #040484 2.99%, #c95f50 97.54%);
  width: 100%;
  height: 100px !important;
  border-top-right-radius: 20px;
  position: relative;
}

.sidebar-logo img {
  height: 40px;
}

.sidebar-logo-container {
  position: absolute;
  bottom: -30px;
  left: 10%;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #040484;
  border-radius: 10px;
}

.sidebar-menu {
  margin-top: 60px;
  margin-bottom: 90px;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 8px;
}

.sidebar-menu a {
  color: #324054;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
}

.sidebar-menu a.active {
  color: #040484;
  font-weight: 600;
  background-color: #ac544e1a;
}

.sidebar-logout {
  cursor: pointer;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 24px;
  color: #324054;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid #dadada;
}

/* SideBar Closed */

.sidebar.toggle {
  width: 80px;
}

.sidebar.toggle .sidebar-logo {
  display: none;
}

.sidebar.toggle .sidebar-menu a span {
  display: none;
}

.sidebar-toggle {
  display: none;
  padding: 30px;
}

.sidebar.toggle .sidebar-toggle {
  display: block;
}

.sidebar.toggle .sidebar-logout p {
  display: none;
}

/* Header */

.header {
  background-color: #f8f8ff;
  border-bottom: 1px solid #e5e5e5;
}

/* Main Content */

.main-content {
  margin-left: 300px;
  transition: 0.5s;
}

.main-content.toggle {
  margin-left: 80px;
}

/* Input Fields */

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #dedeff;
  background-color: #f9f9f9;
  border-radius: 5px;
}

textarea {
  height: auto;
  padding-top: 20px !important;
}

.input-group-text {
  background-color: #f9f9f9;
  border-right: none;
}

.required-star::after {
  content: " *";
  color: red;
}

.primary-input {
  width: 60% !important;
  padding: 10px;
  color: #717680;
  border: 1px solid #d5d7da !important;
  background-color: #ffffff !important;
  border-radius: 10px !important;
}

.inner {
  max-height: 110px !important;
}

.dropdown-menu {
  max-height: 200px !important;
  min-height: 158px !important;
  width: 100% !important;
}

/* Forms */

.add-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.add-buttons {
  grid-column: span 2;
  display: flex;
  justify-content: end;
  gap: 32px;
}

/* Table */

.primary-table {
  width: 100%;
  border-collapse: collapse;
}

.primary-table th {
  background-color: #f4f7fc;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 10px;
  text-align: left;
  color: #3e3e3e;
  font-weight: 600;
}

.primary-table th:first-child {
  border-top-left-radius: 10px;
}

.primary-table th:last-child {
  border-top-right-radius: 10px;
}

.primary-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #e5e5e5;
  color: #16151c;
}

/* Pagination */

#pagination-container {
  padding: 10px;
  background-color: #f4f7fcbf;
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 12px;
  color: #687182;
}

.prev-page,
.next-page {
  padding: 5px 10px;
  border: 1px solid #e5e5e5;
  background-color: #fff !important;
  border-radius: 5px;
  width: min-content;
}

/* Logout Modal */

.logout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
  background-color: #000000bf;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.logout-body {
  width: 500px;
  position: relative;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 100px auto;
}

.logout-icon {
  padding: 20px 16px 10px 22px;
  background-color: #ac544e;
  border-radius: 50%;
  color: #fff;
  width: 80px;
  height: 80px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.logout-cancel-btn {
  background-color: #e0e0e0 !important;
  color: #6c6c6c;
}

/* Add Modal */

.add-confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
}

.add-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e9eaeb;
}

.add-confirm-header h5 {
  margin: 0;
}

.add-confirm-header p {
  color: #535862;
}

.add-confirm-header .bi-person {
  padding: 10px 16px;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
}

.add-confirm-header .head-icon {
  padding: 10px 16px;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
}

.add-confirm-header .bi-person-video3 {
  padding: 10px 16px;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
}

.add-confirm-header .bi-x {
  cursor: pointer;
}

.add-confirm-body {
  padding: 16px;
}

.add-confirm-footer {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid #e9eaeb;
}

.add-confirm-footer .btn {
  margin-left: 8px;
  width: 100%;
}

.add-cancel-btn {
  background-color: #fff !important;
  border: 1px solid #d5d7da;
  color: #414651;
}

/* Delete User Modal */

.delete-user-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 500px;
  z-index: 1000;
}

.delete-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.delete-user-header h5 {
  margin: 0;
}

.delete-user-header .bi-trash {
  padding: 8px 12px;
  background-color: #fee4e2;
  border: 8px solid #fef3f2;
  color: #d92d20;
  border-radius: 50%;
}

.delete-user-header .bi-x {
  cursor: pointer;
}

.delete-user-body {
  padding: 16px;
}

.delete-user-body p {
  color: #535862;
}

.delete-user-footer {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.delete-user-footer .btn {
  margin-left: 8px;
  width: 100%;
}

.delete-cancel-btn {
  background-color: #fff !important;
  border: 1px solid #d5d7da;
  color: #414651;
}

/* Modal Styles */
.info-modal {
  position: absolute;
  width: max-content;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  z-index: 1001;
  display: none;
  border-top-left-radius: 0 !important;
}

.info-modal-content {
  padding: 10px;
}

.info-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-header {
  border-bottom: 1px solid #e9eaeb;
  padding-bottom: 10px;
}

.info-header strong {
  color: #040484;
  font-size: 16px;
  font-weight: 500;
}

.info-number strong {
  color: #ac544e;
  font-size: 16px;
  font-weight: 500;
}

.info-email strong {
  color: #ac544e;
  font-size: 16px;
  font-weight: 500;
}

.close {
  cursor: pointer;
  font-size: 20px;
}

/* Dark overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  display: none;
}

.modal-overlay.show {
  display: block;
}

/*------------------------ Login Page Style ---------------------------*/

.login-section {
  padding: 40px;
  height: 100vh;
  color: #313131;
}

.cred-box {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 30px;
  height: 480px;
  width: 520px;
}

.hero-box {
  height: 480px;
  /* width: 520px; */
}

.hero-box img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  animation: gradientAnimation 10s infinite;
  animation-delay: 1ms;
  animation-timing-function: ease-out;
  animation-duration: 300ms;
}

@keyframes gradientAnimation {
  0% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        180deg,
        rgba(4, 4, 132, 0.2) 0%,
        rgba(172, 84, 78, 0.2) 100%
      );
  }
  20% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        218.33deg,
        rgba(4, 4, 132, 0.2) 0%,
        rgba(172, 84, 78, 0.2) 101.45%
      );
  }
  40% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        320.96deg,
        rgba(4, 4, 132, 0.2) 0%,
        rgba(172, 84, 78, 0.2) 100%
      );
  }
  60% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        39.04deg,
        rgba(4, 4, 132, 0.2) 0%,
        rgba(172, 84, 78, 0.2) 100%
      );
  }
  80% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        178.88deg,
        rgba(4, 4, 132, 0.2) -1.97%,
        rgba(172, 84, 78, 0.2) 99.04%
      );
  }
  100% {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
      linear-gradient(
        180deg,
        rgba(4, 4, 132, 0.2) 0%,
        rgba(172, 84, 78, 0.2) 100%
      );
  }
}

/*  */

.form-select {
  width: 100% !important;
}

.btn-light {
  background-color: #fff !important;
  border: none !important;
  padding: 10px !important;
}

.floating-form-group label {
  z-index: 10;
}

.dropdown-toggle::after {
  display: none !important;
}

.bootstrap-select .dropdown-menu {
  transform: translate3d(0px, 0px, 0px) !important;
  inset: 60px auto auto 0px !important;
}

.dropdown-menu .disabled {
  display: none !important;
}
