@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");

/* Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
}

/*------------------------------------------------ Common CSS ---------------------------------------------------------------- */

/* Header Profile Pic */

#user-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Logout overlay */

#logout-overlay,
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

/* Button Styles */

.primary-button,
.icon-button {
  background-color: #42a5ff;
  color: white;
  font-size: 16px;
  width: 150px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button:hover,
.icon-button:hover {
  background-color: #1e88e5;
}

.primary-dark-button {
  background-color: #0c6fff;
  color: white;
  font-size: 16px;
  width: 150px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.primary-dark-button:hover {
  background-color: #0a5edb;
}

.secondary-button {
  background-color: white;
  color: #42a5ff;
  border: 1px solid #42a5ff;
  font-size: 16px;
  width: 150px;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.secondary-button:hover {
  background-color: #f0f0f0;
  color: #1e88e5;
}

.approve-button {
  background-color: #4caf50;
  border: 1px solid #4caf50;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.approve-button:hover {
  background-color: white;
  color: #4caf50;
}

.reject-button {
  background-color: #f44336;
  border: 1px solid #f44336;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  align-items: center;
  gap: 10px;
}

.reject-button.max {
  width: 150px;
  justify-content: center;
}

.reject-button:hover {
  background-color: white;
  color: #f44336;
}

.edit-button {
  background-color: #319dff;
  border: 1px solid #319dff;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-button:hover {
  background-color: white;
  color: #319dff;
}

.delete-button {
  background-color: #f44336;
  border: 1px solid #f44336;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delete-button:hover {
  background-color: white;
  color: #f44336;
}

/* Logout Modal */

.logout-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 1000;
}

.logout-logo {
  position: absolute;
  top: -30px;
  left: 37%;
}

.logout-container {
  width: 500px;
  margin-top: 20px;
  background-color: white;
  padding: 100px 20px 20px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logout-container h4 {
  font-weight: 400;
  font-size: 24px;
  line-height: 15.27px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

.logout-container p {
  margin-top: 24px;
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  line-height: 32px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  padding: 0 20px;
}

.logout-button-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 24px;
}

/* Container and Main Flex */

.container {
  display: flex;
  width: 100%;
}

.content {
  width: calc(100% - 300px);
  position: fixed;
  top: 0;
  left: 300px;
}

.main-content {
  padding: 32px;
  background-color: #fbfbfb;
  height: calc(100vh - 90px);
  overflow-y: auto;
}

.white-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 16px 24px;
}

/* Sidebar */

.sidebar {
  width: 300px;
  background-color: #ffffff;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 4px 19px 0px #0000000d;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding-bottom: 0;
}

.sidebar-logo {
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #efefef;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.sidebar-item,
.logout-button {
  width: 100%;
  padding: 13px 16px;
  margin: 12px 0;
  border-radius: 9px;
}

.sidebar-item.active,
.logout-button:hover {
  background-color: #6dddd01a;
  border-left: 4px solid #42a5ff;
}

.sidebar-item a,
.logout-button a {
  display: flex;
  align-items: center;
  color: #141b34;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
  border-radius: 4px 0 0 4px;
}

.sidebar-item img,
.logout-button img {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

/* Main Headers */

.header {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: end;
  border-bottom: 1px solid #efefef;
  box-shadow: 0px 2px 10px 0px #bdbdbd1a;
  width: 100%;
  z-index: 100;
  height: 90px;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border: 1.02px solid #d9d9d9;
  border-radius: 8px;
  gap: 16px;
  margin-right: 32px;
  cursor: pointer;
}

/* Table Styles */

.primary-table {
  width: 100%;
  border-spacing: 0;
}

.primary-table th {
  background-color: #f9f9fb;
  color: #666e7d;
  font-size: 14px;
  font-weight: 500;
  padding: 16px;
  text-align: left;
  text-transform: uppercase;
}

.primary-table td {
  padding: 16px;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #eee;
}

.primary-table tr:hover {
  background-color: #f9f9f9;
}

.primary-table .multiple-buttons {
  display: flex;
  gap: 8px;
}

/* Form Styles */

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.primary-input {
  width: 100%;
  padding: 16px 12px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
}

.primary-input.readonly {
  background-color: #f5f5f5;
  color: #666e7d;
}

.primary-input.select {
  color: #666e7d;
}

.primary-input.textarea {
  resize: vertical;
  min-height: 100px;
  padding: 24px 12px 12px;
}

.primary-input.textarea + label {
  top: 20px;
}

.primary-input.textarea:focus + label,
.primary-input.textarea:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 12px;
  color: #555;
}

.input-wrapper label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: white;
  padding: 0 4px;
  color: #999;
  font-size: 14px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.primary-input:focus + label,
.primary-input:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 12px;
  color: #555;
}

.primary-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.primary-form.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.primary-form-footer.grid {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 32px;
  width: 100%;
  margin-top: 24px;
}

.primary-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-input-group label {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;

  color: #4f4f4f;
}

.primary-input-group input,
.primary-input-group select,
.primary-input-group textarea {
  font-family: "Poppins", sans-serif;
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  color: #141b34;
}

.primary-form-footer {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: 24px;
}

.primary-form-footer.double {
  justify-content: space-around;
}

.required-star::after {
  content: " *";
  color: red;
}

/* ------------------------------------------------ Login Page Styles -------------------------------------------------------- */

/* Nav Bar */

.login-nav {
  background-color: white;
  padding: 10px;
  display: flex;
  justify-content: start;
  padding: 20px 100px;
}

.nav-logo {
  width: 200px;
  height: auto;
}

/* Login Section */

.login-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background-color: #42a5ff1a;
  padding: 5px;
  border-radius: 10px;
}

.login-toggle p {
  padding: 10px 20px;
  border-radius: 10px;
  width: 50%;
  cursor: pointer;
}

.login-toggle p.active {
  background-color: white;
  font-weight: 500;
}

.login-section {
  height: 85.7vh;
  position: relative;
}

.login-bg-container {
  position: relative;
  height: 100%;
}

.login-bg {
  display: block;
  height: 100%;
  width: 63%;
  clip-path: polygon(0 0, 100% 0, 64% 100%, 0% 100%);
}

.login-bg-text {
  position: absolute;
  bottom: 16px;
  left: 21%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Login Box */

.login-box {
  position: absolute;
  left: 72%;
  bottom: 3%;
  transform: translateX(-50%);
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 99;
}

.login-logo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.login-form-container {
  width: 600px;
  margin-top: 20px;
  background-color: white;
  padding: 100px 50px 20px 50px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-form {
  margin-top: 24px;
}

.login-input-group {
  margin: 20px 0;
  background-color: #ececec;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
}

.input-group label {
  font-size: 14px;
  font-weight: 500;
}

.input-group input {
  border: none;
  outline: none;
  background-color: #ececec;
  border-radius: 5px;
  font-weight: 700;
}

.login-forgot-password {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remember-me input {
  width: 18px;
  height: 18px;
  background-color: #ececec;
}

.remember-me label {
  font-size: 14px;
}

.forgot-password {
  font-size: 14px;
  color: #1994ff;
  text-decoration: none;
}

.login-button {
  background-color: #42a5ff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  margin-top: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  height: 40px;
  font-weight: 600;
}

.login-button:hover {
  background-color: #1e88e5;
}

.login-footer-text {
  font-size: 14px;
  color: #666e7d;
  margin-top: 24px;
}

.login-footer-text span {
  color: #42a5ff;
  font-weight: 500;
  cursor: pointer;
}
