body {
  margin: 0;
}

.container {
  padding: 20px;
  padding-bottom: 80px;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-3px);
  }

  40%,
  80% {
    transform: translateX(3px);
  }
}

.alert .close {
  animation: shake 0.5s ease-in-out 1;
  cursor: pointer;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.sidebar {
  width: 230px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .nav > li > a {
  text-align: center;
}

.sidebar.collapsed .nav > li > a span:not(.glyphicon) {
  display: none;
}

.sidebar.collapsed .navbar-brand img {
  max-width: 40px;
}

.sidebar.collapsed .glyphicon {
  margin-right: 0 !important;
}

.forgot-link {
  margin-top: 14px;
  text-align: center;
}

.forgot-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
  padding: 6px 10px;
  border-radius: 8px;
}

.forgot-btn i {
  font-size: 13px;
  color: #64748b;
}

.forgot-btn:hover {
  color: white;
  background: rgba(37, 99, 235, 0.08);
}

.forgot-btn:hover i {
  color: white;
}

.swal2-container {
  z-index: 20000 !important;
}

.swal2-popup {
  z-index: 20001 !important;
}

.otp-modal {
  /* hidden by default */
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);

  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.otp-box {
  width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: pop 0.25s ease;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.otp-header {
  text-align: center;
  margin-bottom: 18px;
}

.otp-header i {
  font-size: 28px;
  color: #2563eb;
}

.otp-header h3 {
  margin: 6px 0 0;
}

.otp-header p {
  font-size: 12px;
  color: #64748b;
}

.otp-icon {
  text-align: center;
  margin-bottom: 14px;
}

.otp-icon i {
  font-size: 40px;
  color: #0f172a;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}

.otp-digit {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: 0.2s;
}

.otp-digit:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.otp-actions {
  display: flex;
  gap: 10px;
}

#verifyOtpBtn {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.resend {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.otp-timer {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.otp-timer i {
  font-size: 12px;
  color: #64748b;
}

.emp-box {
  width: 360px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  animation: pop 0.2s ease;
  text-align: center;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* HEADER */
.emp-header {
  margin-bottom: 18px;
}

.emp-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.emp-header h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.emp-header p {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* INPUT */
.emp-body {
  margin: 18px 0;
}

.emp-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  transition: 0.2s;
}

.emp-input-wrap i {
  color: #64748b;
}

.emp-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.emp-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

/* BUTTONS */
.emp-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.emp-send {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

.emp-cancel {
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #64748b;
}

.emp-send:hover {
  filter: brightness(1.05);
}

/* FOOTER */
.emp-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.btn-login i {
  margin-right: 8px;
}

.guidelines-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;

  padding: 11px 14px;
  margin-top: 6px;

  border-radius: 12px;

  background: #f8fafc;
  border: 1px solid #e2e8f0;

  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.25s ease;
}

.guidelines-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}
