html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/*Login Page*/

body.login-page {
  background: url("../assets/images/login-bg.jpg") no-repeat center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  width: 30%;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.301);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(140, 51, 255, 0.4),
    0 0 40px rgba(187, 134, 255, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  display: block;
  margin: 0 auto 0;
  width: 90px;
}

.login-container p {
  font-family: "Montserrat", sans-serif;
  font-size: 50px;
  font-weight: 300;
  color: white;
  margin-top: 0;
  text-align: center;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-container label,
.login-container input {
  display: block;
  width: 90%;
  margin: 0 auto 20px;
}

.login-container label {
  font-family: "Montserrat", sans-serif;
  display: block;
  width: 90%;
  color: #f5f5f5;
  margin: 0 auto 7px;
  text-align: left;
  font-size: 13px;
}

.login-container input {
  background: none;
  display: block;
  width: 90%;
  margin: 0 auto 20px;
  padding: 15px 12px;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.301);
  border-radius: 13px;
  font-size: 16px;
  box-sizing: border-box;
}

.login-container input[name="password"] {
  margin-bottom: 30px;
}

.login-container input::placeholder {
  font-family: "Montserrat", sans-serif;
  color: #bbb;
}

.login-container input:focus {
  font-family: "Montserrat", sans-serif;
  border-color: #8c33ff;
  outline: none;
  box-shadow: 0 0 5px rgba(140, 51, 255, 0.5);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}

.login-submit {
  letter-spacing: 0.4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin: 30px auto 0;
  padding: 1.8px;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  color: #ffffff;
  width: 90%;
  display: flex;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.login-submit:active,
.login-submit:hover {
  outline: 0;
  color: black;
}

.login-submit span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.login-submit:hover span {
  background: none;
}

.new-pw-btn {
  letter-spacing: 0.4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin: 30px auto 0;
  padding: 1.8px;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  color: #ffffff;
  width: 90%;
  display: flex;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.new-pw-btn:active,
.new-pw-btn:hover {
  outline: 0;
  color: black;
}

.new-pw-btn span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.new-pw-btn:hover span {
  background: none;
}

.reset-link-btn {
  letter-spacing: 0.4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin: 30px auto 0;
  padding: 1.8px;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  color: #ffffff;
  width: 90%;
  display: flex;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-link-btn:active,
.reset-link-btn:hover {
  outline: 0;
  color: black;
}

.reset-link-btn span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.reset-link-btn:hover span {
  background: none;
}

.toast-message {
  position: fixed;
  left: 50%;
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  color: white;
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99999;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 20px);
}

.toast {
  font-family: "Montserrat", sans-serif;
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 77, 77, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 25px;
  text-shadow: 0 0 8px rgba(140, 51, 255, 0.8);
  text-align: center;
  letter-spacing: 0.3px;
  z-index: 9999;
  animation:
    toastIn 0.5s ease,
    toastOut 0.5s ease 3.5s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-8px);
  }
  80% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0);
  }
}

.options-container label,
.options-container input {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
}

.options-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 87%;
  margin: 0 auto 20px;
}

.options-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ba52ff;
  cursor: pointer;
}

.options-container .remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #d1d1d1;
}

.options-container .forgot-password {
  font-size: 14px;
  color: #ba52ff;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
}

.options-container .forgot-password:hover {
  color: #fff;
}

/*Forgot password page*/

body.forgot-password-page {
  background: url("../assets/images/login-bg.jpg") no-repeat center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.forgot-container {
  width: 30%;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(140, 51, 255, 0.4),
    0 0 40px rgba(187, 134, 255, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.forgot-logo {
  display: block;
  margin: 0 auto 10px;
  width: 90px;
}

.forgot-container p {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-size: 30px;
  margin: 10px 0;
}

.forgot-container p.instruction {
  font-size: 14px;
  color: #d1d1d1;
  margin-bottom: 30px;
}

.forgot-container label,
.forgot-container input {
  display: block;
  width: 90%;
  margin: 0 auto 20px;
}

.forgot-container label {
  font-family: "Montserrat", sans-serif;
  display: block;
  width: 90%;
  color: #f5f5f5;
  margin: 0 auto 7px;
  text-align: left;
  font-size: 13px;
}

.forgot-container input {
  padding: 15px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #f5f5f5;
  font-size: 16px;
}

.forgot-container input::placeholder {
  font-family: "Montserrat", sans-serif;
  color: #bbb;
}

.forgot-container input:focus {
  border-color: #8c33ff;
  outline: none;
  box-shadow: 0 0 5px rgba(140, 51, 255, 0.5);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}

.forgot-container button {
  margin: 20px auto 0;
  width: 90%;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.forgot-container input,
.forgot-container button {
  width: 90%;
  height: 50px;
  font-size: 16px;
  box-sizing: border-box;
}

.forgot-container button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 16px;
  transition: 300ms;
  background-color: rgb(5, 6, 45);
}

.forgot-container button:hover span {
  background: none;
}

.forgot-container .back-login {
  font-size: 14px;
  color: #d1d1d1;
  margin-top: 15px;
}

.forgot-container .back-login a {
  color: #ba52ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-container .back-login a:hover {
  color: #fff;
}

/*Reset password page*/

body.reset-password-page {
  background: url("../assets/images/login-bg.jpg") no-repeat center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.reset-container {
  width: 30%;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(140, 51, 255, 0.4),
    0 0 40px rgba(187, 134, 255, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reset-logo {
  display: block;
  margin: 0 auto 5px;
  width: 90px;
}

.reset-container p {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-size: 30px;
  margin: 5px 0;
}

.reset-container p.instruction {
  font-size: 14px;
  color: #d1d1d1;
  margin-bottom: 20px;
}

.reset-container .password-req {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.reset-container .password-req ul {
  padding-left: 20px;
  margin: 0;
}

.reset-container .password-req ul li {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 4px;
  list-style-type: disc;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.reset-container .password-req ul li.valid {
  color: #8cff8c;
  text-shadow: 0 0 5px rgba(140, 255, 140, 0.7);
}

.reset-container .password-req p {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #d1d1d1;
  margin: 0 0 5px 0;
  font-weight: 500;
}

.reset-container label,
.reset-container input {
  display: block;
  width: 90%;
  margin: 0 auto 20px;
  text-align: left;
}

.password-wrapper {
  position: relative;
}

.password-wrapper i {
  position: absolute;
  padding-right: 40px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  cursor: pointer;
}

.reset-container label {
  font-family: "Montserrat", sans-serif;
  display: block;
  width: 90%;
  color: #f5f5f5;
  margin: 0 auto 7px;
  text-align: left;
  font-size: 13px;
}

.reset-container input {
  padding: 15px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #f5f5f5;
  font-size: 16px;
}

.reset-container input::placeholder {
  font-family: "Montserrat", sans-serif;
  color: #bbb;
}

.reset-container input:focus {
  font-family: "Montserrat", sans-serif;
  border-color: #8c33ff;
  outline: none;
  box-shadow: 0 0 5px rgba(140, 51, 255, 0.5);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}

.reset-container input,
.reset-container button {
  width: 90%;
  height: 50px;
  border-radius: 13px;
  font-size: 16px;
  box-sizing: border-box;
}

.reset-container button {
  letter-spacing: 0.4px;
  margin: 30px auto 0;
  width: 90%;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #ffffff, #ba52ff);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.reset-container button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 16px;
  transition: 300ms;
  background-color: rgb(5, 6, 45);
}

.reset-container button:hover span {
  background: none;
}

.reset-container .back-login {
  font-size: 14px;
  color: #d1d1d1;
  margin-top: 15px;
}

.reset-container .back-login a {
  color: #ba52ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.reset-container .back-login a:hover {
  color: #fff;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    20px 0 60px rgba(0, 0, 0, 0.6),
    inset -1px 0 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sidebar a {
  text-decoration: none;
  color: inherit;
}

.sidebar a:visited {
  color: inherit;
}

.sidebar a:active,
.sidebar a:focus {
  text-decoration: none;
  outline: none;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;

  scrollbar-width: none;
}

.sidebar-content::-webkit-scrollbar {
  display: none;
}

.sidebar img {
  text-align: center;
  margin-bottom: 30px;
  width: 150px;
  height: auto;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
  color: white;
}

.sidebar ul li i {
  margin-right: 10px;
}

.sidebar ul li:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar ul li.active {
  border-left: 3px solid #ba52ff;
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-dropdown-task {
  padding: 0 !important;
}

.sidebar-dropdown-header {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar-dropdown-header:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-dropdown-task:hover {
  background: none !important;
}

.sidebar-dropdown-task.active-toggle .sidebar-dropdown-header {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-dropdown-task-content {
  list-style: none;
  margin-top: 6px;
  margin-left: 15px;
  border-left: 2px solid #ba52ff;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sidebar-dropdown-task.active-toggle .sidebar-dropdown-task-content {
  max-height: 500px;
}

.sidebar-dropdown-task-content li {
  padding: 0 !important;
  margin-left: 12px !important;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0.85;
  transition: 0.25s ease;
}

.sidebar-dropdown-task-content li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
}

.sidebar-dropdown-task-content li:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
  transform: translateX(2px);
}

.sidebar-dropdown-task-content li.active {
  border-left: 3px solid #ba52ff;
  opacity: 1;
}

.sidebar-dropdown-header i.arrow {
  transition: transform 0.3s;
}

.sidebar-dropdown-task.active-toggle .sidebar-dropdown-header i.arrow {
  transform: rotate(180deg);
}

.sidebar-footer {
  padding: 15px 20px;
  flex-shrink: 0;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-logout {
  width: 100%;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.sidebar-logout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.sidebar-logout span {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.sidebar-logout:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.sidebar-logout a {
  display: block;
  padding: 10px 0;
  color: black;
  font-weight: 500;
  text-decoration: none;
}

/* admin_dashboard */

body.admin {
  font-family: "Montserrat", sans-serif;
  display: flex;
  color: #fff;
  background-image: url("../assets/images/background-user-page.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.main-content {
  margin-left: 270px;
  width: calc(100% - 270px);
  padding: 20px 30px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-wrap {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(202, 202, 202, 0.7);
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

/*user_management*/

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  border-radius: 16px;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(4px);
}

.loading-overlay .spinner {
  display: flex;
  gap: 8px;
}

.loading-overlay .spinner div {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ba52ff, #ffffff);
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.loading-overlay .spinner div:nth-child(1) {
  animation-delay: 0s;
}
.loading-overlay .spinner div:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-overlay .spinner div:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.loading-overlay .loading-text {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 15px;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-filter input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.search-filter select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.search-filter select option {
  background: #232347;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
  font-family: "Montserrat", sans-serif;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.user-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.user-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
  text-align: left;
}

.user-table td {
  padding: 16px 12px;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.user-table tbody tr {
  transition: all 0.25s ease;
}

.user-table th:last-child,
.user-table td:last-child {
  text-align: center;
}

.user-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.user-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
}

.user-container h3 {
  margin-left: 5px;
}

.task-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.task-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
  text-align: start;
}

.task-table td {
  padding: 16px 12px;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.overdue-number {
  color: #ff5c5c;
}

.due-indicator {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
  font-weight: 500;
}

.danger {
  color: #ff3b3b;
  opacity: 1;
}

.task-table td.overdue-task {
  color: #ff5c5c;
}

.task-table tbody tr {
  transition: 0.2s ease;
}

.task-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.task-table th:last-child {
  text-align: center;
}

.task-table th:nth-child(1),
.task-table td:nth-child(1) {
  width: 16%;
}

.task-table th:nth-child(2),
.task-table td:nth-child(2) {
  width: 28%;
}

.task-table th:nth-child(3),
.task-table td:nth-child(3) {
  width: 10%;
}

.task-table th:nth-child(4),
.task-table td:nth-child(4) {
  width: 12%;
}

.task-table th:nth-child(5),
.task-table td:nth-child(5) {
  width: 12%;
}

.task-table th:nth-child(6),
.task-table td:nth-child(6) {
  width: 8%;
}

.task-table th:nth-child(7),
.task-table td:nth-child(7) {
  width: 8%;
}

.task-table th:nth-child(8),
.task-table td:nth-child(8) {
  width: 6%;
}

.no-data td {
  text-align: center;
  font-size: 15px;
  padding: 30px 0;
  color: #9ca3af;
}

.dept-task-table .no-data td,
.task-employee-table .no-data td {
  text-align: center !important;
  font-size: 15px;
  padding: 30px 0;
  color: #9ca3af;
}

.action-column {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.action-wrapper {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.edit-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
  color: #007bff;
}

.edit-btn:hover {
  color: white;
}

.delete-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
  color: #ff4d4d;
}

.delete-btn:hover {
  color: white;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.modal {
  max-width: 95%;
  color: #fff;
  animation: slideIn 0.3s ease-out;
  position: relative;
  font-family: "Montserrat", sans-serif;
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  width: min(520px, 92vw);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

.modal input,
.modal select {
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(119, 119, 119, 0.4);
  transition: all 0.25s ease;
  user-select: none;
}

.close-btn:hover {
  background: #ff6d6d;
  color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin: 12px 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition:
    border 0.2s ease,
    background 0.2s ease;
}

.form-group select {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
}

.form-group select option {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(38, 0, 56);
  color: #ffffff;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
  border: 1px solid #ba52ff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .add-btn {
  all: unset;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.modal-actions .add-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.modal-actions .add-btn span {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.modal-actions .add-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.modal select option {
  background-color: #1b1b2a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*Admin All Task*/
.multi-select {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.multi-select.open-up .dropdown {
  top: auto;
  bottom: 110%;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
}

.selected-items .tag {
  background: #6c63ff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selected-items .remove {
  cursor: pointer;
  font-weight: bold;
}

#userSearch,
#editTaskUserSearch {
  border: none;
  outline: none;
  margin-top: 6px;
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

#userSearch::placeholder,
#editTaskUserSearch::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgb(38, 0, 56);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 20;
}

.dropdown-group-label {
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13px;
}

.dropdown-item .checkmark {
  display: none;
  color: #6c63ff;
  font-weight: bold;
}

.dropdown-item.selected .checkmark {
  display: inline;
}

.dropdown-item:hover {
  background: #0033a0;
}

.no-result {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

.task-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: taskFadeIn 0.3s ease-in-out;
}

.task-modal {
  background: linear-gradient(145deg, #2b1f3b, #311f4f);
  padding: 30px 35px;
  border-radius: 20px;
  width: 500px;
  max-width: 95%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  color: #fff;
  animation: taskSlideIn 0.3s ease-out;
  position: relative;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.task-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.task-close-btn {
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #3a2b52;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  user-select: none;
}

.task-close-btn:hover {
  background: #ff6d6d;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.task-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-task-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.task-modal-section strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.task-modal-section p {
  margin: 0;
  font-size: 0.95rem;
  color: #e1e1e1;
  word-break: break-word;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 30%;
}

#modalStatusSelect {
  font-family: "Montserrat", sans-serif;
  padding: 8px 35px 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  width: 100%;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #aaa;
  font-size: 0.8rem;
  transition: 0.3s ease;
}

#modalStatusSelect:hover {
  background: rgba(255, 255, 255, 0.08);
}

#modalStatusSelect:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.4);
}

#modalStatusSelect option {
  background: #2b1f3b;
  color: #fff;
}

.task-save-btn {
  all: unset;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.task-save-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.task-save-btn span {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.task-save-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.task-modal-badges {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.task-badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid transparent;
  text-transform: uppercase;
}

.task-priority-high {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.45);
  box-shadow: 0 4px 12px rgba(255, 92, 92, 0.25);
}

.task-priority-medium {
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.15);
  border-color: rgba(255, 184, 77, 0.45);
  box-shadow: 0 4px 12px rgba(255, 184, 77, 0.25);
}

.task-priority-low {
  color: #5dade2;
  background: rgba(93, 173, 226, 0.15);
  border-color: rgba(93, 173, 226, 0.45);
  box-shadow: 0 4px 12px rgba(93, 173, 226, 0.25);
}

.task-status-pending {
  color: #c8d6e5;
  background: rgba(200, 214, 229, 0.12);
  border-color: rgba(200, 214, 229, 0.35);
}

.task-status-in_progress {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
}

.task-status-completed {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.16);
  border-color: rgba(29, 209, 161, 0.45);
}

.task-modal-description {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 4px solid #ba52ff;
  line-height: 1.5;
  color: #e1e1e1;
}

@keyframes taskFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes taskSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.badge {
  font-family: "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
}

.priority-high {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.14);
  border-color: rgba(255, 92, 92, 0.45);
  box-shadow: 0 4px 12px rgba(255, 92, 92, 0.25);
}

.priority-medium {
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.45);
  box-shadow: 0 4px 12px rgba(255, 184, 77, 0.25);
}

.priority-low {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.status-pending {
  color: #c8d6e5;
  background: rgba(200, 214, 229, 0.12);
  border-color: rgba(200, 214, 229, 0.35);
  box-shadow: 0 4px 12px rgba(200, 214, 229, 0.25);
}

.status-in_progress {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.status-completed {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.16);
  border-color: rgba(29, 209, 161, 0.45);
  box-shadow: 0 4px 12px rgba(29, 209, 161, 0.25);
}

.task-dashboard {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.task-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.task-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.stat-card h4 {
  margin: 0;
  text-align: center;
}

.stat-card p {
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 5px;
}

.stat-card-manager {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin-top: 20px;
}

.monthly-feedback-manager {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
}

.feedback-period-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card-manager h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  letter-spacing: 0.3px;
}

.dept-stat-today-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.dept-stat-today {
  padding: 15px;
  text-align: center;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition:
    box-shadow 0.25s ease,
    border 0.25s ease;
}

.dept-stat-today:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dept-stat-today h4 {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #b8b8d1;
}

.dept-stat-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.insight-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.risk-box,
.top-box {
  background: #26263b;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.risk-box h3 {
  color: #e74c3c;
}

.top-box h3 {
  color: #27ae60;
}

.risk-box p,
.top-box p {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.dropdown-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.dropdown-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.dropdown-header:hover {
  background: rgba(99, 102, 241, 0.08);
}

.dropdown-header i {
  transition: transform 0.3s ease;
}

.dropdown-section.active .dropdown-header i.arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    padding 0.3s ease;
  padding: 0 20px;
}

.dropdown-section.active .dropdown-content {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  padding: 20px;
}

.task-list-section {
  background: #1e1e2f;
  padding: 20px;
  border-radius: 12px;
}

.section-header h3 {
  margin-bottom: 20px;
  color: #fff;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.task-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.task-item:hover {
  transform: translateY(-2px);
}

.task-info h4 {
  margin: 0;
  color: #fff;
}

.task-info p {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 5px;
}

.priority-badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.priority-badge.high {
  background: rgba(255, 92, 92, 0.2);
  color: #ff5c5c;
}

.priority-badge.medium {
  background: rgba(255, 184, 77, 0.2);
  color: #ffb84d;
}

.priority-badge.low {
  background: rgba(0, 200, 150, 0.2);
  color: #00c896;
}

.status-badge {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.overdue {
  color: #ff5c5c;
}

.status-badge.progress {
  color: #4da6ff;
}

.no-task-message {
  color: #aaa;
}

/*admin my task*/

.status-wrapper {
  position: relative;
  width: 130px;
  cursor: pointer;
  user-select: none;
  margin: 0 auto;
}

.status-wrapper.modal-status {
  position: relative;
  width: 140px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.status-display {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.status-display:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.status-display.status-pending {
  color: #c8d6e5;
  background: rgba(200, 214, 229, 0.12);
  border-color: rgba(200, 214, 229, 0.45);
}

.status-display.status-in_progress {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
}

.status-display.status-completed {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.16);
  border-color: rgba(29, 209, 161, 0.45);
}

.status-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.status-item {
  padding: 10px;
  transition: 0.2s;
  cursor: pointer;
}

.status-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.status-wrapper.open .status-menu {
  display: block;
}

.arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.status-wrapper.open .arrow {
  transform: rotate(180deg);
}

tr {
  transition:
    background 0.4s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.task-completed {
  background: rgba(29, 209, 161, 0.08);
}

.row-fade {
  opacity: 0;
  transform: translateY(10px);
}

/*admin attendance summary*/

.attendance-stats-admin {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card-admin {
  background: #26263b;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.stat-card-admin h4 {
  font-size: 18px;
}

.attendance-admin-rate {
  margin-top: 10px;
}

.attendance-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.attendance-summary-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.attendance-summary-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.attendance-summary-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.attendance-summary-table tbody tr {
  transition: all 0.25s ease;
}

.attendance-summary-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.attendance-summary-table th:first-child,
.attendance-summary-table td:first-child {
  text-align: left;
}

.attendance-summary-table th:nth-child(2),
.attendance-summary-table td:nth-child(2) {
  text-align: left;
}

.attendance-summary-table td.rate-high {
  color: #4caf50;
  font-weight: 600;
}

.attendance-summary-table td.rate-medium {
  color: #ff9800;
  font-weight: 600;
}

.attendance-summary-table td.rate-low {
  color: #f44336;
  font-weight: 600;
}

.admin-attendance-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.admin-attendance-summary-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-attendance-summary-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.admin-attendance-summary-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.admin-attendance-summary-table tbody tr {
  transition: all 0.25s ease;
}

.admin-attendance-summary-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.admin-attendance-summary-table th:first-child,
.admin-attendance-summary-table td:first-child {
  text-align: left;
}

.admin-attendance-summary-table td.rate-high {
  color: #4caf50;
  font-weight: 600;
}

.admin-attendance-summary-table td.rate-medium {
  color: #ff9800;
  font-weight: 600;
}

.admin-attendance-summary-table td.rate-low {
  color: #f44336;
  font-weight: 600;
}

/*employee dashboard*/

body.employee {
  font-family: "Montserrat", sans-serif;
  display: flex;
  color: #fff;
  background-image: url("../assets/images/background-user-page.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.attendance-section {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.attendance-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 30px;
  text-align: center;
  width: 100%;
  color: white;
  box-sizing: border-box;
}

.attendance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(28px) saturate(140%);
  pointer-events: none;
  z-index: -1;
}

.clock-times {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 30px;
  flex-wrap: wrap;
}

.clock-in-time,
.clock-out-time {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  flex: 1;
  min-width: 150px;
  padding: 20px;
  text-align: center;
}

.clock-in-time h3,
.clock-out-time h3 {
  font-size: 20px;
}

.clock-in-time p,
.clock-out-time p {
  font-size: 30px;
  margin: 0;
  color: #ffd700;
}

.attendance-btn {
  position: relative;
  font-family: "Montserrat", sans-serif;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 200px;
  height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto 0;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.attendance-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.attendance-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.attendance-btn .btn-text {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.attendance-btn.disabled-btn {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
}

.attendance-btn.disabled-btn .btn-text {
  white-space: inherit;
}

.attendance-btn.loading .btn-text {
  opacity: 0;
}

.attendance-btn.loading {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  pointer-events: none;
  background: rgba(139, 92, 246, 0.06);
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
  animation: none;
}

.attendance-btn.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(157, 106, 252, 0.7) 0%,
    rgba(145, 85, 255, 0.4) 20%,
    rgba(124, 124, 124, 0.15) 40%,
    transparent 70%
  );
  animation: pulse-out 1.8s ease-out infinite;
}

.attendance-btn.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid rgba(114, 51, 231, 0.9);
  animation: ripple-ring 1.8s ease-out infinite;
}

@keyframes ripple-ring {
  0% {
    transform: scale(0.3);
    opacity: 0.7;
  }

  80% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

#clockin-msg {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #ffd700;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.manager-dashboard-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
}

.admin-dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.dash-card {
  padding: 15px;
  text-align: center;
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 80% 90%, rgba(147, 3, 197, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 18px;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.metric-val {
  font-size: 26px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 10px;
}

.metric-val .unit {
  font-size: 16px;
  font-weight: 400;
  margin-left: 2px;
}

.metric-label {
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.metric-sub {
  font-size: 12px;
  opacity: 0.6;
}

.overdue-text {
  opacity: 1;
  color: #ff5c7a;
}

.increment {
  opacity: 1;
  color: #2ee6a6;
}

.decrement {
  opacity: 1;
  color: #ff5c7a;
}

.dashboard-details {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.attendance-details,
.task-details {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
  flex: 1;
}

.attendance-details-label,
.task-details-label {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.task-details-label {
  margin-bottom: 17px;
}

.attendance-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.attendance-stat {
  text-align: center;
  flex: 1;
}

.attendance-stat .val {
  font-size: 23px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
}

.val-present {
  color: #1dd1a1;
}
.val-absent {
  color: #f83a3a;
}
.val-late {
  color: #f7a62c;
}
.val-leave {
  color: #3498db;
}

.attendance-stat .lbl {
  font-size: 15px;
  margin-top: 2px;
  opacity: 0.6;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 5px;
}

.attendance-rate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.attendance-label {
  font-size: 15px;
  opacity: 0.9;
}

.attendance_rate {
  font-size: 18px;
  font-weight: 600;
  margin-left: auto;
}

.bar-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
  background: linear-gradient(
    135deg,
    rgba(88, 244, 255, 0.75),
    rgba(64, 252, 111, 0.75)
  );
}

.bar-fill.pending {
  background: linear-gradient(
    135deg,
    rgba(244, 255, 142, 0.75),
    rgba(255, 240, 23, 0.75)
  );
}

.bar-fill.progress {
  background: linear-gradient(
    135deg,
    rgba(204, 142, 255, 0.75),
    rgba(182, 23, 255, 0.75)
  );
}

.bar-fill.completed {
  background: linear-gradient(
    135deg,
    rgba(142, 255, 151, 0.75),
    rgba(23, 255, 23, 0.75)
  );
}

.task-stat-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.task-bar-label {
  font-size: 13px;
  min-width: 72px;
}

.task-bar-count {
  font-size: 15px;
  min-width: 16px;
  text-align: right;
}

.completion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 6px;
}

/*employee attendance*/
.attendance-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.attendance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.attendance-history {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
}

.attendance-history h3 {
  margin-left: 5px;
}

.attendance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.attendance-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.attendance-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.attendance-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.attendance-table tbody tr {
  transition: all 0.25s ease;
}

.attendance-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.attendance-status-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  min-width: 50px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.attendance-status-present {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.12);
  border-color: rgba(29, 209, 161, 0.45);
  box-shadow: 0 0 8px rgba(29, 209, 161, 0.6);
}

.attendance-status-late {
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.12);
  border-color: rgba(255, 184, 77, 0.45);
  box-shadow: 0 0 8px rgba(255, 184, 77, 0.6);
}

.attendance-status-absent {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.45);
}

.attendance-status-medical-leave {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.attendance-status-annual-leave {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.attendance-status-emergency-leave {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.leave-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.leave-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.leave-history {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 0 25px 25px 25px;
  color: #fff;
}

.leave-history h3 {
  margin-left: 5px;
}

.leave-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.leave-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leave-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.leave-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.leave-table tbody tr {
  transition: all 0.25s ease;
}

.leave-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.leave-form-group {
  margin: 12px 0;
}

.leave-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

#leaveForm input,
#leaveForm select,
#leaveForm textarea {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  resize: vertical;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition:
    border 0.2s ease,
    background 0.2s ease;
}

.leave-btn-submit {
  font-family: "Montserrat", sans-serif;
  all: unset;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: #dffcff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.leave-btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.leave-btn-submit span {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.leave-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.leave-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #dffcff;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.leave-btn i {
  margin-right: 3px;
}

.leave-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.leave-btn span,
.leave-btn i {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.leave-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.apply-leave-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
  margin-bottom: 15px;
}

.leave-status-display-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.no-leave-records {
  color: #aaa;
}

/*employee feedback*/

.feedback-wrapper {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.single-select {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.edit-single-select {
  position: relative;

  margin-bottom: 14px;
}

.single-select-search {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  cursor: pointer;
}

.single-select-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.single-select .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e1e32;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 20;
  margin-top: 4px;
}

.feedback-form-card select {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.feedback-form-card select option {
  background-color: #1e1e2f;
  color: #fff;
}

.feedback-form-card select option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.feedback-form-card {
  position: relative;
}

.feedback-form-card,
.feedback-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
  flex: 1;
}

.feedback-form-card h3,
.feedback-stats-card h3,
.recent-feedback-card h3 {
  margin-bottom: 15px;
  color: #fff;
}

.feedback-form-card label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.feedback-form-card textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  box-sizing: border-box;
}

.form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px 10px;
  margin-bottom: 15px;
  resize: vertical;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.feedback-form-card .btn-submit {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: all 0.25s ease;
}

.feedback-form-card .btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.feedback-form-card .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.feedback-alert {
  margin-top: 10px;
  padding: 10px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 6px;
}

.feedback-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feedback-stat-card {
  padding: 15px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition:
    box-shadow 0.25s ease,
    border 0.25s ease;
}

.feedback-stat-card h4 {
  margin-bottom: 8px;
  font-weight: 500;
}

.feedback-stat-number {
  font-size: 20px;
  font-weight: 600;
}

.feedback-stat-card.positive {
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(0, 0, 0, 0.25);
  color: #1dd1a1;
}

.feedback-stat-card.negative {
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(0, 0, 0, 0.25);
  color: #ff6b6b;
}

.recent-feedback-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin-top: 20px;
}

.feedback-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.feedback-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.feedback-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.feedback-table tbody tr {
  transition: all 0.25s ease;
}

.feedback-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.feedback-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.feedback-table td:first-child,
.feedback-table th:first-child {
  text-align: left;
  padding-left: 20px;
}

.feedback-table th:nth-child(2),
.feedback-table td:nth-child(2) {
  width: 50%;
  text-align: left;
}

.feedback-table-manager {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.feedback-table-manager thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-table-manager th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.feedback-table-manager td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.feedback-table-manager tbody tr {
  transition: all 0.25s ease;
}

.feedback-table-manager tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.feedback-table-manager th:first-child,
.feedback-table-manager td:first-child {
  text-align: start;
}

.feedback-badge {
  font-family: "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
}

.negative-feedback-card {
  background: #1b1b2a;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.negative-feedback-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #1f1f2e;
  border-radius: 14px;
  overflow: hidden;
  table-layout: fixed;
  font-family: "Montserrat", sans-serif;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 18px 45px rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.negative-feedback-table thead {
  background: linear-gradient(135deg, #2c2c44, #1f1f2e);
}

.negative-feedback-table th {
  color: #e5e7eb;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.negative-feedback-table td {
  padding: 18px 12px;
  text-align: center;
  color: #d1d5db;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.negative-feedback-table tbody tr {
  transition: 0.2s ease;
}

.negative-feedback-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.08);
}

.negative-feedback-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.negative-feedback-table td:first-child,
.negative-feedback-table th:first-child {
  text-align: left;
  padding-left: 20px;
}

.negative-feedback-table th:nth-child(2),
.negative-feedback-table td:nth-child(2) {
  width: 50%;
  text-align: left;
}

/*manager feedback*/
.feedback-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.feedback-status-wrapper {
  position: relative;
  width: 140px;
  cursor: pointer;
  user-select: none;
  margin: 0 auto;
}

.feedback-status-display {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.feedback-status-display:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.feedback-status-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.feedback-status-item {
  padding: 10px;
  transition: 0.2s;
  cursor: pointer;
}

.feedback-status-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.feedback-status-wrapper.open .feedback-status-menu {
  display: block;
}

.feedback-status-wrapper.open .arrow {
  transform: rotate(90deg);
}

.feedback-status-pending {
  color: #c8d6e5;
  background: rgba(200, 214, 229, 0.12);
  border-color: rgba(200, 214, 229, 0.35);
  box-shadow: 0 4px 12px rgba(200, 214, 229, 0.25);
}

.feedback-status-approved {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.16);
  border-color: rgba(29, 209, 161, 0.45);
  box-shadow: 0 4px 12px rgba(29, 209, 161, 0.25);
}

.feedback-status-rejected {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.45);
  box-shadow: 0 4px 12px rgba(255, 92, 92, 0.25);
}

.feedback-status-wrapper.open-up .feedback-status-menu {
  bottom: 110%;
  top: auto;
}

.feedback-stat-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.feedback-stat-card.total {
  border-left: 4px solid #6366f1;
}

.feedback-stat-card.warning {
  border-left: 4px solid #fbbf24;
}

.feedback-stat-card.green {
  border-left: 4px solid #1dd1a1;
}

.feedback-stat-card.red {
  border-left: 4px solid #ff5c5c;
}

.feedback-stat-card.rate {
  border-left: 4px solid #60a5fa;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
  min-width: 60px;
  transition: 0.2s ease;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.score-pill.high {
  background: rgba(29, 209, 161, 0.12);
  color: #1dd1a1;
  border: 1px solid rgba(29, 209, 161, 0.4);
  box-shadow: 0 0 10px rgba(29, 209, 161, 0.15);
}

.score-pill.low {
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.4);
  box-shadow: 0 0 10px rgba(255, 92, 92, 0.12);
}

.sentiment-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.sentiment-positive {
  background: rgba(29, 209, 161, 0.15);
  color: #1dd1a1;
  border: 1px solid rgba(29, 209, 161, 0.4);
}

.sentiment-negative {
  background: rgba(255, 92, 92, 0.15);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.4);
}

.sentiment-neutral {
  background: rgba(200, 214, 229, 0.12);
  color: #c8d6e5;
  border: 1px solid rgba(200, 214, 229, 0.3);
}

.employee-row {
  cursor: pointer;
  transition: background 0.15s;
}

.employee-row:hover {
  background: rgba(99, 102, 241, 0.07);
}

.fb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.fb-modal-overlay.active {
  display: flex;
}

.fb-modal {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(60px) saturate(140%);
  -webkit-backdrop-filter: blur(60px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);

  width: 90%;
  min-height: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  flex-shrink: 0;
}

.fb-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.fb-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: white;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}

.fb-modal-close:hover {
  background: #ff6d6d;
  color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.fb-modal-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 25px;
}

.fb-tabs-left {
  display: flex;
  gap: 4px;
}

#monthFilter {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

#monthFilter option {
  background: #232347;
}

.fb-tab {
  padding: 9px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.fb-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.fb-tab:hover:not(.active) {
  color: #6366f1;
}

.fb-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: white;
  border-radius: 999px;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
}

.fb-tab.active .fb-tab-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(60px) saturate(140%);
  color: #4f46e5;
}

.fb-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px 24px 24px;
}

.fb-pane {
  display: none;
}

.fb-pane.active {
  display: block;
}

.fb-inner-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.fb-inner-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-inner-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.fb-inner-table td {
  padding: 16px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.fb-inner-table tbody tr {
  transition: all 0.25s ease;
}

.fb-inner-table th:first-child {
  text-align: start;
}

.fb-inner-table td:first-child {
  text-align: start;
}

.fb-inner-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.fb-empty {
  text-align: center;
  padding: 32px 0;
  color: #aaa;
  font-size: 0.9rem;
}

.fb-loading {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
  font-size: 0.9rem;
}

.fb-loading i {
  margin-right: 6px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.table-hint {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pending-neg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.4);
  box-shadow: 0 0 10px rgba(255, 92, 92, 0.12);
}

.pending-neg-badge.zero {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #16a34a;
  background: rgba(29, 209, 161, 0.12);
  color: #1dd1a1;
  border: 1px solid rgba(29, 209, 161, 0.4);
  box-shadow: 0 0 10px rgba(29, 209, 161, 0.15);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.analytics-grid.wide {
  grid-template-columns: 1fr;
}

.an-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px;
}

.an-card h4 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.big-stat {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}
.big-stat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.sentiment-bar {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
  background: grey;
}
.bar-pos {
  background: #22c55e;
  height: 100%;
  border-radius: 5px 0 0 5px;
}
.bar-neg {
  background: #ef4444;
  height: 100%;
  border-radius: 0 5px 5px 0;
}
.sentiment-legend {
  display: flex;
  gap: 14px;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.score-dist {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: 8px;
}
.score-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.score-bar-col span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}
.score-bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.status-row {
  display: flex;
  gap: 10px;
}
.status-pill {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.s-num {
  font-size: 22px;
  font-weight: 500;
}
.s-label {
  font-size: 11px;
  color: white;
  margin-top: 2px;
}
.s-pending .s-num {
  color: #f59e0b;
}
.s-approved .s-num {
  color: #22c55e;
}
.s-rejected .s-num {
  color: #ef4444;
}

.fb-quote {
  border-left: 3px solid white;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.fb-quote p {
  font-size: 12px;
  line-height: 1.5;
}
.fb-quote-meta {
  font-size: 11px;
  color: white;
  margin-top: 6px;
}
.fb-quote-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.label-pos {
  color: #16a34a;
}
.label-neg {
  color: #dc2626;
}

/*manager dashboard*/

body.manager {
  font-family: "Montserrat", sans-serif;
  display: flex;
  color: #fff;
  background-image: url("../assets/images/background-user-page.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/*manager leave*/

.leave-status-wrapper {
  position: relative;
  width: 140px;
  cursor: pointer;
  user-select: none;
  margin: 0 auto;
}

.leave-status-display {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.leave-status-display:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.leave-status-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1b1b2a, #232347 60%, #1a1a2f);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.leave-status-item {
  padding: 10px;
  transition: 0.2s;
  cursor: pointer;
}

.leave-status-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.leave-status-wrapper.open .leave-status-menu {
  display: block;
}

.leave-status-wrapper.open .arrow {
  transform: rotate(90deg);
}

.leave-status-pending {
  color: #c8d6e5;
  background: rgba(200, 214, 229, 0.12);
  border-color: rgba(200, 214, 229, 0.35);
  box-shadow: 0 4px 12px rgba(200, 214, 229, 0.25);
}

.leave-status-approved {
  color: #1dd1a1;
  background: rgba(29, 209, 161, 0.16);
  border-color: rgba(29, 209, 161, 0.45);
  box-shadow: 0 4px 12px rgba(29, 209, 161, 0.25);
}

.leave-status-rejected {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.45);
  box-shadow: 0 4px 12px rgba(255, 92, 92, 0.25);
}

.leave-status-wrapper.open-up .leave-status-menu {
  bottom: 110%;
  top: auto;
}

/*admin feedback*/

.quarterly-feedback-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
  margin-top: 20px;
}

.quarterly-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.quarterly-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quarterly-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.quarterly-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.quarterly-table tbody tr {
  transition: all 0.25s ease;
}

.quarterly-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.score-high {
  color: #22c55e;
  font-weight: 600;
}

.score-mid {
  color: #facc15;
  font-weight: 600;
}

.score-low {
  color: #ef4444;
  font-weight: 600;
}

.chart-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.chart-box {
  width: 100%;
  height: 380px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-body {
  flex: 1;
  position: relative;
  height: 100%;
}

.chart-header {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.chart-header h3 {
  color: #fff;
  margin: 0;
  font-size: 18px;
}

.chart-header p {
  color: #9ca3af;
  font-size: 13px;
  margin-top: 4px;
}

#lineChart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

#quarterChart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.two-column-section-attendance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.panel-header p {
  margin: 5px 0 15px;
  color: #9ca3af;
  font-size: 13px;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
  color: white;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.list-item:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sub-text {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

.ratio-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-top: 20px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.ratio-header h3 {
  margin: 0;
  color: #fff;
}

.ratio-header p {
  margin: 5px 0 15px;
  color: #9ca3af;
  font-size: 13px;
}

.ratio-item {
  margin-bottom: 12px;
}

.label {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 5px;
}

.bar {
  height: 10px;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.bar.green {
  background: #22c55e;
}

.bar.red {
  background: #ef4444;
}

.value {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 3px;
}

/*employee performance*/

.quarter-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.year-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.time-badge {
  display: inline-block;
  font-size: 11px;
  background: #1f2937;
  color: #9ca3af;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 7px;
}

.month-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.month-btn:hover {
  background: #374151;
}

.year-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.year-btn:hover {
  background: #374151;
}

.performance-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.perf-card {
  padding: 20px;
  border-radius: 16px;
  color: white;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.perf-card.performance-master {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.perf-meta {
  position: absolute;
  top: 14px;
  left: 16px;
}

.perf-period {
  font-size: 15px;
  color: #a1a1aa;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.perf-card.performance-master p {
  font-size: 14px;
  opacity: 0.8;
}

.perf-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.perf-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-right .perf-card {
  opacity: 0;
  transform: translateX(-60px) translateY(20px);
  animation: slideFromLeft 0.8s ease forwards;

  transition:
    box-shadow 0.25s ease,
    border 0.25s ease;
}

@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.perf-right .perf-card:nth-child(1) {
  animation-delay: 0.3s;
}

.perf-right .perf-card:nth-child(2) {
  animation-delay: 0.45s;
}

.perf-right .perf-card:nth-child(3) {
  animation-delay: 0.6s;
}

.overall-circle-gauge {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overall-circle-gauge svg {
  transform: rotate(-90deg);
  display: block;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

.overall-progress {
  fill: none;
  stroke: url(#grad);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.8));
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
}

.overall-circle-inner {
  position: absolute;
  text-align: center;
  z-index: 2;
}

.overall-circle-inner h2 {
  font-size: 28px;
  margin: 0;
  line-height: 1;
  background: linear-gradient(90deg, #a855f7, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overall-circle-inner p {
  font-size: 12px;
  margin: 10px 0 0;
  opacity: 0.8;
  line-height: 1;
}

.perf-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perf-info h3 {
  margin: 0;
  font-size: 16px;
}

.perf-info h2 {
  margin: 5px 0;
  font-size: 22px;
}

.perf-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.mini-circle-gauge {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-circle-gauge svg {
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.mini-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: 1s ease;
}

.mini-inner {
  position: absolute;
  text-align: center;
}

.mini-inner h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color);
}

.quarter-split {
  grid-column: 1 / -1;
  display: flex;
  gap: 25px;
  align-items: stretch;
}

.quarter-left {
  flex: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.quarter-right {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.chart-wrapper {
  flex: 1;
  position: relative;
}

#quarterChart {
  width: 100% !important;
  height: 100% !important;
}

.kpi-card {
  padding: 14px 16px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.kpi-card.trend-up {
  background: linear-gradient(135deg, #052e16, #166534 40%, #22c55e);
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(34, 197, 94, 0.25);
  color: white;
}

.kpi-card.trend-down {
  background: linear-gradient(135deg, #3b0a0a, #7f1d1d 40%, #ef4444);
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(239, 68, 68, 0.25);
  color: white;
}

/*manager attendance*/

.month-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  color: inherit;
  transition: background 0.15s;
}

.month-btn:hover {
  background: #f3f4f6;
}

.month-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#selectedMonth {
  font-weight: 600;
  font-size: 15px;
  min-width: 110px;
  text-align: center;
}

.attendance-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-section-header h3 {
  margin: 0;
}

.loading-overlay-manager {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 10;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.loading-overlay-manager.active {
  display: flex;
}

.spinner-manager {
  width: 34px;
  height: 34px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.attendance-container {
  position: relative;
}

/*manager performance*/

.perf-card-manager {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 20px;
}

.perf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.perf-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.perf-table td {
  padding: 16px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.perf-table tbody tr {
  transition: all 0.25s ease;
}

.perf-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.perf-table th:first-child,
.perf-table td:first-child {
  text-align: left;
}

.two-column-section-manager {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.perf-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.perf-badge-green {
  background: rgba(29, 209, 161, 0.12);
  color: #1dd1a1;
  border: 1px solid rgba(29, 209, 161, 0.4);
  box-shadow: 0 0 10px rgba(29, 209, 161, 0.15);
}

.perf-badge-yellow {
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.12);
  border-color: rgba(255, 184, 77, 0.45);
  box-shadow: 0 0 8px rgba(255, 184, 77, 0.6);
}

.perf-badge-red {
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.4);
  box-shadow: 0 0 10px rgba(255, 92, 92, 0.12);
}

.perf-meta-switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.month-switcher-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

/*manager task*/
.dept-task-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 40px;
}

.dept-task-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.dept-task-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.dept-task-stats-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dept-task-stats-card h4 {
  margin: 0;
  text-align: center;
}

.dept-task-stats-card .big {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin-bottom: 5px;
  margin-top: 5px;
}

.dept-task-stats-card .sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.dept-task-stats-card.danger .big {
  color: red;
}

.completion-ring {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: 4px;
}

.completion-ring svg {
  transform: rotate(-90deg);
}

.completion-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}

.completion-ring .ring-val {
  fill: none;
  stroke: #fc76f8;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.completion-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.priority-bar-wrap {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.task-employee {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 20px;
}

.task-employee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-employee-header h3 {
  color: #fff;
}

.task-employee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.task-employee-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-employee-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.task-employee-table td {
  padding: 16px 12px;
  text-align: center;

  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.2s ease;
}

.task-employee-table tbody tr {
  transition: all 0.25s ease;
}

.task-employee-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.task-employee-table th:first-child,
.task-employee-table td:first-child {
  text-align: left;
}

.emp-overdue-badge {
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.4);
  box-shadow: 0 0 10px rgba(255, 92, 92, 0.12);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.emp-overdue-zero {
  background: rgba(29, 209, 161, 0.12);
  color: #1dd1a1;
  border: 1px solid rgba(29, 209, 161, 0.4);
  box-shadow: 0 0 10px rgba(29, 209, 161, 0.15);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.dept-all-task {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 20px;
}

.dept-all-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.dept-all-task-header h3 {
  color: #fff;
}

.dept-all-task-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dept-all-task-filter input,
.dept-all-task-filter select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: #fff;
}

.dept-all-task-filter input:focus,
.dept-all-task-filter select:focus {
  border-color: rgba(255, 255, 255, 0.14);
}

.dept-all-task-filter select option {
  background: #1e1e2e;
}

.dept-task-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.dept-task-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dept-task-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
  text-align: start;
}

.dept-task-table td {
  padding: 16px 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.dept-task-table tbody tr {
  transition: all 0.25s ease;
}

.dept-task-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.dept-task-table th:first-child,
.dept-task-table td:first-child {
  text-align: left;
}

.dept-task-table th:nth-child(1),
.dept-task-table td:nth-child(1) {
  width: 16%;
}

.dept-task-table th:nth-child(2),
.dept-task-table td:nth-child(2) {
  width: 28%;
}

.dept-task-table th:nth-child(3),
.dept-task-table td:nth-child(3) {
  width: 10%;
  text-align: center;
}

.dept-task-table th:nth-child(4),
.dept-task-table td:nth-child(4) {
  width: 12%;

  text-align: center;
}

.dept-task-table th:nth-child(5),
.dept-task-table td:nth-child(5) {
  width: 12%;
}

.dept-task-table th:nth-child(6),
.dept-task-table td:nth-child(6) {
  width: 8%;
}

.dept-task-table th:nth-child(7),
.dept-task-table td:nth-child(7) {
  width: 8%;
}

.dept-task-table th:nth-child(8),
.dept-task-table td:nth-child(8) {
  width: 6%;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

.priority-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.priority-low {
  color: #5dade2;
  background: rgba(93, 173, 226, 0.15);
  border-color: rgba(93, 173, 226, 0.45);
  box-shadow: 0 4px 12px rgba(93, 173, 226, 0.25);
}

.status-pending {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.status-in_progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-completed {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tt-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
  font-family: "Montserrat", sans-serif;
}

.tt-add-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.panel-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 0.82rem;
}

.panel-empty i {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.4;
}

.dept-task-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dept-task-modal-overlay.open {
  display: flex;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.multi-select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  position: relative;
  cursor: text;
}

.multi-select:focus-within {
  border-color: var(--accent);
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag .remove {
  cursor: pointer;
  opacity: 0.7;
}

.tag .remove:hover {
  opacity: 1;
}

.multi-select input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1e1e32;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.multi-select.open-up .dropdown {
  top: auto;
  bottom: calc(100% + 6px);
}

.dropdown-item {
  padding: 9px 14px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.1s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dropdown-item.selected {
  color: var(--accent);
}

.checkmark {
  opacity: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.dropdown-item.selected .checkmark {
  opacity: 1;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.spinner {
  display: flex;
  gap: 6px;
}

.spinner div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 0.6s infinite alternate;
}

.spinner div:nth-child(2) {
  animation-delay: 0.15s;
}

.spinner div:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  to {
    transform: translateY(-8px);
    opacity: 0.5;
  }
}

/*manager report*/

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
}

.report-card-full {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  padding: 28px 32px;
}

.report-card-half {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 24px 28px;
}

.report-card-full h3,
.report-card-half h3 {
  margin: 0;
  margin-bottom: 20px;
}

.select-quarter,
.select-year {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quarter-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.q-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.q-btn:hover {
  border-color: rgba(147, 3, 197, 0.5);
  color: #c970ff;
  background: rgba(147, 3, 197, 0.1);
}

.q-btn.active {
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  color: #fff;
  box-shadow: 0 0 14px rgba(147, 3, 197, 0.3);
}

.year-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  min-width: 110px;
}

.year-select option {
  background: #232347;
}

.year-select:focus {
  outline: none;
  border-color: rgba(147, 3, 197, 0.6);
}

.preview-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.preview-box .preview-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.preview-title i {
  color: #ff5c5c;
  margin-right: 8px;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-logout {
  width: 100%;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.sidebar-logout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(140%);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.btn-download {
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 12px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-preview-pdf {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.btn-preview-pdf:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.includes-list li strong {
  color: rgba(255, 255, 255, 0.85);
}

.includes-list li .icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.includes-list li .icon.green {
  background: rgba(29, 209, 161, 0.12);
  color: #1dd1a1;
}

.includes-list li .icon.purple {
  background: rgba(147, 3, 197, 0.12);
  color: #c970ff;
}

.includes-list li .icon.yellow {
  background: rgba(255, 184, 77, 0.12);
  color: #ffb84d;
}

.includes-list li .icon.red {
  background: rgba(255, 92, 92, 0.12);
  color: #ff5c5c;
}

.includes-list li .icon.blue {
  background: rgba(52, 152, 219, 0.12);
  color: #74b9ff;
}

.performance-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.weight-bar-wrap {
  margin-top: 14px;
}

.weight-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.weight-label {
  width: 130px;
  flex-shrink: 0;
}

.weight-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.weight-fill {
  height: 6px;
  border-radius: 4px;
}

.weight-pct {
  width: 34px;
  text-align: right;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.quarter-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
}

.quarter-info strong {
  color: #fff;
}

.score-legend {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.score-legend-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.score-legend-indicator {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.score-legend-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.score-legend-marks {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.score-legend-marks.good {
  background: #1dd1a1;
}

.score-legend-marks.average {
  background: #ffb84d;
}

.score-legend-marks.low {
  background: #ff5c5c;
}

/*admin smart task*/

.smart-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.assignment-history-dropdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

#deptFilter:hover {
  background: #232347;
}

#deptFilter option {
  background: #232347;
  color: white;
}

.smart-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 14px 24px 24px 24px;
}

.smart-form-card h3 {
  color: #fff;
  margin-bottom: 30px;
}

.smart-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.smart-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smart-form-group label {
  font-size: 12px;
  color: var(--muted, #9ca3af);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.smart-form-group input,
.smart-form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  font-family: "Montserrat", sans-serif;
}

.smart-form-group input:focus,
.smart-form-group select:focus {
  border-color: #a78bfa;
}

.smart-form-group select option {
  background: #1e1040;
}

.smart-table-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 14px 24px 24px 24px;
}

.smart-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.smart-table-header h3 {
  color: #fff;
  margin-bottom: 30px;
}

.smart-table-header h3 i {
  color: #a78bfa;
}

.smart-table-header .badge-count {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.smart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Montserrat", sans-serif;
}

.smart-table thead {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smart-table th {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.smart-table td {
  padding: 16px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.smart-table tbody tr {
  transition: all 0.25s ease;
}

.smart-table tbody tr:hover {
  background: rgba(147, 3, 197, 0.08);
  box-shadow: inset 0 0 0 1px rgba(147, 3, 197, 0.15);
}

.smart-table th:first-child,
.smart-table td:first-child {
  text-align: left;
}

.smart-table th:nth-child(1),
.smart-table td:nth-child(1) {
  width: 16%;
}

.smart-table th:nth-child(2),
.smart-table td:nth-child(2) {
  width: 28%;
  text-align: left;
}

.smart-table th:nth-child(7),
.smart-table td:nth-child(7) {
  width: 8%;
  text-align: center;
}

.smart-table .no-data td {
  text-align: center;
  color: var(--muted, #9ca3af);
  padding: 32px;
}

.btn-add-schedule {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-add-schedule:hover {
  opacity: 0.85;
}

.btn-add-schedule:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-auto-assign {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  font-family: inherit;
}

.btn-auto-assign:hover {
  opacity: 0.85;
}

.btn-auto-assign:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-delete-small {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
  color: #ff4d4d;
  transition: background 0.2s;
}

.btn-delete-small:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-edit-small {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
  color: #007bff;
  transition: background 0.2s;
}

.btn-edit-small:hover {
  background: rgba(139, 92, 246, 0.3);
}

.action-btns {
  display: flex;
  gap: 6px;
}

/*notification style*/

.notif-wrapper {
  position: relative;
}

.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.notif-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #a855f7;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1035;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  z-index: 999;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notif-dropdown.open {
  display: block;
}

.notif-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.notif-dd-header button {
  background: none;
  border: none;
  font-size: 12px;
  color: #c67cff;
  cursor: pointer;
}

.notif-dd-header button:hover {
  color: #a855f7;
  text-decoration: underline;
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
  background: transparent;
}

.notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.notif-empty {
  text-align: center;
  padding: 28px;
  font-size: 13px;
  color: #aaaaaa;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.12s;
  background: transparent;
  color: #fff;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.notif-item.unread {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #a855f7;
}

.notif-item.unread:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-icon.assign {
  background: #dbeafe;
  color: #1d4ed8;
}
.notif-icon.update {
  background: #dcfce7;
  color: #15803d;
}
.notif-icon.edit {
  background: #fef9c3;
  color: #a16207;
}
.notif-icon.delete {
  background: #fee2e2;
  color: #b91c1c;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 12px;
  color: #eeeeee;
  line-height: 1.4;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  white-space: normal;
  overflow: visible;
}

.notif-time {
  font-size: 11px;
  color: #999999;
}

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  align-self: center;
  flex-shrink: 0;
}

/* toast */
.notif-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.notif-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 280px;
  max-width: 320px;
  pointer-events: all;
  animation: notifSlideIn 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notif-toast.hiding {
  animation: notifSlideOut 0.2s ease forwards;
}

@keyframes notifSlideOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

.notif-toast-title {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 2px;
}

.notif-toast-desc {
  font-size: 12px;
  color: #222222;
  line-height: 1.4;
}

.notif-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaaaaa;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  margin-left: auto;
}

.notif-toast-close:hover {
  color: #111111;
}

.notif-toast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  animation: notifShrink 4.5s linear forwards;
}

@keyframes notifShrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/*settings page*/

.settings-page {
  padding: 28px 32px;
  margin: 0 auto;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  padding: 4px;
  box-sizing: content-box;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(202, 202, 202, 0.7);
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #6366f1);
  border: 2px solid var(--card-bg, #1a1a2e);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.avatar-upload-btn:hover {
  background: var(--accent-hover, #4f46e5);
}

#avatarInput {
  display: none;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #fff);
  text-align: center;
  margin: 0;
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.profile-info-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.profile-info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted, #888);
}

.profile-info-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #fff);
}

.profile-divider {
  width: 100%;
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.08));
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.settings-section-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section-header i {
  color: var(--accent, #6366f1);
  font-size: 14px;
}

.settings-section-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #fff);
}

.settings-section-body {
  padding: 24px;
}

.settings-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-form-grid.full {
  display: flex;
  flex-direction: column;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted, #888);
}

.form-field input,
.form-field textarea {
  background: var(--input-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  color: var(--text, #fff);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent, #6366f1);
}

.form-field input.readonly-field {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.settings-save-btn {
  background: linear-gradient(
    135deg,
    rgba(91, 44, 207, 0.75),
    rgba(139, 92, 246, 0.75)
  );
  box-shadow:
    0 8px 32px rgba(91, 44, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-save-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(91, 44, 207, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.settings-save-btn:active {
  transform: scale(0.98);
}

.pw-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border, rgba(255, 255, 255, 0.1));
  margin-top: 6px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition:
    width 0.3s,
    background 0.3s;
}

.pw-strength-label {
  font-size: 10px;
  color: var(--muted, #888);
  margin-top: 4px;
}

.pw-toggle {
  position: relative;
}

.pw-toggle input {
  padding-right: 40px;
}

.pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #888);
  cursor: pointer;
  font-size: 13px;
}

.pw-eye:hover {
  color: var(--text, #fff);
}
