.alertify-logs {
  z-index: 99999;
}

body,
.content-wrapper {
  background-color: #f3f4ff !important;
}

.safari-browser {
  padding-bottom: 60px;
}

/* Sidebar expanded state */
.main-sidebar {
  width: 250px;
  transition: width 0.3s;
  overflow-x: hidden;
  background-color: #ffffff;
  box-shadow: 16px 20px 40px 0px #0000000f;
}

.main-header,
.content-wrapper {
  margin-left: 280px;
  transition: margin-left 0.3s;
}

.logo {
  width: 145px;
  margin: 0 auto;
  display: block;
}

.main-header .navbar-nav .nav-item {
  margin: 0 4px;
}

/* Override AdminLTE's default sidebar-mini collapsed behavior */
.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini.sidebar-collapse .main-sidebar::before {
  margin-left: 0;
  width: 80px;
}

.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .main-footer,
.sidebar-mini.sidebar-collapse .main-header {
  margin-left: 80px;
}

/* Logo adjustments when collapsed */
.sidebar-mini.sidebar-collapse .brand-link {
  overflow: hidden;
  text-align: center;
  padding: 15px 12px;
  width: 80px;
  height: 94px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.sidebar-mini.sidebar-collapse .logo {
  width: 45px !important;
  height: auto !important;
}

.btn-primary {
  background-color: #42249d !important;
  border-color: #42249d !important;
}

.btn-primary:disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.form-control {
  height: auto;
}

.form-select,
.custom-select:focus,
.form-control:focus {
  border-color: #42249d;
  box-shadow: 0 0 4px lab(26.32% 45.19 -60.51);
}

.content.section-px {
  padding: 20px;
}

.main-header {
  padding: 20px;
}

.main-header .nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header .nav-left a {
  color: #282828;
  font-size: 27px;
  font-weight: 500;
  margin-left: 20px;
}

.main-header .menu-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #dddddd;
  background-color: transparent;
  box-shadow: 0px 10px 20px 0px #0000001a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-pills .nav-link {
  color: #282828;
}

.nav-sidebar .nav-item > .nav-link {
  padding: 8px 0px 8px 12px;
  display: flex;
  align-items: center;
}

.nav-sidebar .nav-item > .nav-link img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  filter: brightness(0) invert(0);
}

.nav-sidebar .nav-item > .nav-link:hover .nav-icon {
  filter: brightness(0) invert(1);
}

.nav-sidebar .nav-item > .nav-link.active .nav-icon {
  filter: brightness(0) invert(1);
}

/* Override AdminLTE's text hiding behavior for collapsed sidebar */
.sidebar-mini.sidebar-collapse .sidebar .nav-sidebar .nav-link p {
  width: 0 !important;
  margin-left: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Collapsed sidebar navigation styles */
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-item > .nav-link {
  padding: 11px !important;
  justify-content: center !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-mini.sidebar-collapse .nav-sidebar .nav-item > .nav-link img {
  margin-right: 0 !important;
  width: 32px !important;
  height: 32px !important;
}

.sidebar-mini.sidebar-collapse .sidebar {
  padding: 10px 0;
}

/* Add spacing between navigation items */
.sidebar-mini.sidebar-collapse .nav-sidebar > .nav-item {
  margin-bottom: 8px !important;
}

/* Tooltip for collapsed sidebar */
.sidebar-mini.sidebar-collapse .nav-item {
  position: relative;
}

/* .sidebar-mini.sidebar-collapse .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1001;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
} */

/* Add arrow to tooltip */
/* .sidebar-mini.sidebar-collapse .nav-item:hover::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent #333 transparent transparent;
    z-index: 1001;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
} */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Add subtle shadow to all collapsed nav items for better visibility */
.sidebar-mini.sidebar-collapse .nav-item > .nav-link {
  box-shadow: none;
  border-radius: 8px;
  background-color: #ffffff;
}

/* Hover effects for collapsed sidebar */
.sidebar-mini.sidebar-collapse .nav-item > .nav-link:hover {
  background-color: #42249d;
  border-radius: 12px;
}

/* Make icon white on hover to match active state */
.sidebar-mini.sidebar-collapse .nav-item > .nav-link:hover img {
  filter: brightness(0) invert(1) !important;
}

.sidebar-mini.sidebar-collapse .nav-item > .nav-link.active {
  background-color: #42249d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(66, 36, 157, 0.3) !important;
}

.sidebar-mini.sidebar-collapse .nav-item > .nav-link.active img {
  filter: brightness(0) invert(1) !important;
}

/* Ensure sidebar stays visible and doesn't get negative margin */
body.sidebar-mini.sidebar-collapse .main-sidebar {
  margin-left: 0;
  width: 80px;
  z-index: 1000;
  border-right: 1px solid #e3e6f0 !important;
}

.main-sidebar .nav-sidebar .nav-link p {
  font-size: 15px;
}

.main-sidebar .nav-sidebar .nav-link p .badge {
  font-size: 59%;
}
.nav-sidebar > .nav-item .nav-icon {
  font-size: 16px !important;
}

/* Prevent AdminLTE from hiding sidebar completely */
@media (min-width: 992px) {
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before {
    margin-left: 0;
    width: 80px;
  }
}

/* Fix for smaller screens - Overlay sidebar on mobile */
@media (max-width: 991.98px) {
  /* Sidebar overlay styles for mobile */
  .main-sidebar,
  .main-sidebar::before {
    margin-left: 0;
  }

  .main-sidebar {
    height: 100%;
    z-index: 1040;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    width: 250px;
  }

  /* Hidden state for mobile sidebar */
  body.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar {
    transform: translateX(-100%);
    width: 250px;
    margin-left: 0;
  }

  /* Backdrop overlay */
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease-in-out,
      visibility 0.3s ease-in-out;
  }

  /* Show backdrop when sidebar is open */
  body:not(.sidebar-collapse) .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* Ensure sidebar shows full menu items on mobile */
  body:not(.sidebar-collapse) .main-sidebar .nav-sidebar .nav-link p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.navbar-expand .navbar-nav .nav-link {
  padding: 8px 14px;
  border: 1px solid #dddddd;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Force circular shape for all navbar icons regardless of sidebar state */
body.sidebar-collapse .main-header .navbar-nav .nav-link {
  border-radius: 50% !important;
}

body.sidebar-collapse .main-header .navbar-nav .nav-link:hover {
  background-color: transparent !important;
}

.nav-pills .nav-link:hover {
  background-color: #42249d;
  box-shadow: 0px 20px 50px 0px #bf156c0d;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.nav-pills .nav-link:not(.active):hover {
  color: #fff;
}

.nav-pills .nav-link.active {
  background-color: #42249d;
  box-shadow: 0px 20px 50px 0px #bf156c0d;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.layout-fixed .brand-link {
  width: 200px;
  margin: 0 auto;
}

.os-content {
  padding: 0 !important;
}

nav.mt-2 {
  padding: 0px 0px 8px 8px;
}

/* Remove padding for collapsed sidebar */
.sidebar-mini.sidebar-collapse nav.mt-2 {
  padding: 0;
}

/* Disable hover animations and expansion on collapsed sidebar */
.sidebar-mini.sidebar-collapse .main-sidebar {
  transition: none;
}

/* Prevent sidebar from expanding on hover - override AdminLTE behavior */
.sidebar-mini.sidebar-collapse .main-sidebar:hover,
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover,
.sidebar-mini.sidebar-collapse
  .main-sidebar:not(.sidebar-no-expand).sidebar-focused {
  width: 80px;
  transform: none;
}

/* Keep text hidden even on hover */
.sidebar-mini.sidebar-collapse
  .main-sidebar:hover
  .sidebar
  .nav-sidebar
  .nav-link
  p,
.sidebar-mini.sidebar-collapse .main-sidebar:hover .brand-text {
  visibility: hidden;
  opacity: 0;
  width: 0;
}

/* Keep logo small on hover */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .logo {
  width: 45px;
}

/* Prevent brand link from expanding */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .brand-link {
  width: 80px;
}

.sidebar-collapse.sidebar-mini
  .main-sidebar:hover:not(.sidebar-no-expand)
  .nav-link {
  width: 100% !important;
}

/* Override any AdminLTE media query hover behaviors */
@media (min-width: 992px) {
  .sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover,
  .sidebar-mini.sidebar-collapse
    .main-sidebar:not(.sidebar-no-expand).sidebar-focused {
    width: 80px;
    margin-left: 0;
  }

  .sidebar-mini.sidebar-collapse.layout-fixed .main-sidebar:hover {
    width: 80px;
  }

  .sidebar-mini.sidebar-collapse.layout-fixed .main-sidebar:hover .brand-link {
    width: 80px;
  }
}

/* Nuclear option - disable all pointer events on sidebar hover to prevent expansion */
.sidebar-mini.sidebar-collapse .main-sidebar {
  pointer-events: auto;
}

.sidebar-mini.sidebar-collapse .main-sidebar * {
  pointer-events: auto;
  margin: 0 auto;
}

/* Force AdminLTE to treat sidebar as no-expand */
body.sidebar-mini.sidebar-collapse .main-sidebar {
  overflow: hidden;
}

/* Prevent any width animations */
.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini.sidebar-collapse .main-sidebar::before,
.sidebar-mini.sidebar-collapse .main-sidebar::after {
  transition: none;
  animation: none;
}

.small-box {
  background:
    linear-gradient(0deg, #42249d, #42249d),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, #ffffff4d 100%);
  border-radius: 24px;
  text-align: center;
  padding: 71px 24px;
}

.small-box > .inner {
  padding: 0;
}

.small-box .inner .icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  padding: 20px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0px 15px 20px 0px #00000040;
  background-color: #ffffff;
}

.small-box p {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  color: #fff;
}

/* Clickable card styles */
.clickable-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.clickable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 25px 40px 0px #00000050;
}

.clickable-card:active {
  transform: translateY(-2px);
}

.start-signing {
  background-color: #ffffff;
  border: 1px solid #f1f1f1;
  padding: 30px 20px;
  border-radius: 12px;
}

.start-signing .progress_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.start-signing .progress_bar .progress-line {
  content: "";
  position: absolute;
  top: 19px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right, #5b38d6 33%, #acb5d3 33%);
  z-index: 1;
}

.start-signing .progress_bar .step {
  position: relative;
  width: 15.33%;
  z-index: 2;
}

.start-signing .progress_bar .step.step-2 {
  width: 70.33%;
}

.start-signing .progress_bar .step-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #acb5d3;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  background: white;
  z-index: 3;
  position: relative;
}

.start-signing .progress_bar .step.active .step-icon {
  border-color: #42249d;
  color: #42249d;
}

.start-signing .progress_bar .step .step-title {
  color: #acb5d3;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  margin: 16px 0 0;
}

/* .start-signing .progress_bar .step.active p, */
.start-signing .progress_bar .step.active .step-title {
  color: #42249d;
}

.start-signing .progress_bar .step p {
  font-size: 12px;
  font-weight: 400;
  color: #abb7c2;
  text-align: center;
  margin: 0;
}

.Upload-file .input {
  max-width: 100%;
  display: none;
}

.Upload-file .Upload-label {
  color: #282828;
  font-size: 27px;
  font-weight: 500;
  padding: 30px 0 22px;
  text-align: center;
  margin: 0;
}

.Upload-file .labelFile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 285px;
  border: 1px dashed #384eb74d;
  background: #f8f8ff;
  border-radius: 4px;
  align-items: center;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}

.Upload-file .labelFile p {
  color: #282828;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 10px 0 0;
}

.Upload-file .labelFile p a {
  color: #42249d;
}

.Upload-file .btn-primary {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 32px;
  padding: 13px 50px;
  margin: 22px auto 30px;
  /* max-width: 200px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-signing .selected-files .files-title {
  color: #676767;
  font-size: 16px;
  font-weight: 500;
  margin: 22px 0;
}

.start-signing .selected-files .file-icon {
  display: none;
}

.file-info {
  flex: 1;
}

.start-signing .selected-files .file-item {
  display: flex;
  align-items: center;
  padding: 9px 15px;
  background: #ffffff;
  border: 0.5px solid #e3e3e3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.start-signing .selected-files .file-item .file-name {
  color: #0f0f0f;
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
  padding: 0;
  margin: 0;
}

.start-signing .selected-files .file-item .file-size {
  color: #676767;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  margin: 0;
}

.start-signing .selected-files .file-item .file-remove {
  background-color: #42249d;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.start-signing .selected-files .file-item .file-remove:hover {
  background-color: #f12e15;
}

.start-signing .selected-files .file-item .upload-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
}

.start-signing .selected-files .file-item .upload-progress-bar {
  height: 100%;
  /* background: #28a745; */
  width: 0%;
  transition: width 0.3s ease;
}

.start-signing .selected-files .file-item .upload-status.success {
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: #42249d;
  border-radius: 4px;
}

.start-signing .terms-section {
  margin: 36px 0 0;
}

.start-signing .terms-section .custom-control-label {
  font-weight: 500;
}

.start-signing .unload-source .title {
  color: #282828;
  font-size: 27px;
  font-weight: 500;
  margin-bottom: 10px;
}

.start-signing .unload-source .card {
  background-color: #42249d;
  color: #ffffff;
  box-shadow: 0px 15px 20px 0px #00000033;
  border-radius: 12px;
  margin: 20px 0;
  max-width: 210px;
  padding: 41px 12px;
  transition: all 0.3s;
}

.start-signing .unload-source .card:hover {
  background-color: #ffffff;
  color: #282828;
}

.start-signing .unload-source .card:hover .icon {
  background-color: #42249d;
}

.start-signing .unload-source .card:hover .icon i {
  color: #ffffff;
}

.start-signing .unload-source .icon {
  background-color: #ffffff;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.start-signing .unload-source .icon i {
  color: #42249d;
}

.start-signing .unload-source p {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0;
}

.start-signing .navigation-btn {
  margin: 30px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.start-signing .navigation-btn .btn-light {
  border: 1px solid #dddddd;
  background-color: #f1f1f1;
  border-radius: 40px;
  color: #282828;
  font-size: 16px;
  font-weight: 500;
  padding: 11px 36px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.start-signing .navigation-btn .btn-success {
  padding: 11px 36px;
  border-radius: 40px;
}

.start-signing .navigation-btn .btn-light i,
.start-signing .navigation-btn .btn-primary i {
  margin: 0 7px;
}

.start-signing .navigation-btn .btn-primary {
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  padding: 11px 36px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.start-signing .info-text {
  border: 1px dashed #42249d;
  background-color: #f8f8ff;
  padding: 15px;
  border-radius: 4px;
}

.start-signing .info-text ol {
  margin: 0;
}

.start-signing .info-text li {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #282828;
  margin-bottom: 15px;
}

.start-signing .info-text li a {
  color: #282828;
}

.who-needs-to-sign-section {
  padding: 35px 0px;
}

.who-needs-to-sign-section .section-header h4 {
  font-size: 24px;
  font-weight: 500;
  color: #282828;
  margin-bottom: 16px;
}

.signing-options {
  background-color: #f7f9fc;
  padding: 25px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.signing-options .signing-option-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px 20px;
  height: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.signing-options .signing-option-card.selected::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  background-color: #007bff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  animation: pop-in 0.3s ease-out;
}

.signing-options .signing-option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #c0d9ff;
}

.signing-options .signing-option-card.selected {
  border-color: #4285f4;
  background: #f8fbff;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

.signing-options .signing-option-card .option-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  background: #f1f3f5;
  color: #5a6a85;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.signing-options .signing-option-card.selected .option-icon {
  background: #e2efff;
}

.signing-options .signing-option-card h5 {
  color: #343a40;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  transition: color 0.3s ease;
}

.signing-options .signing-option-card p {
  margin: 0;
}

.signing-options .signing-option-card.selected h5,
.signing-options .signing-option-card.selected .option-icon i {
  color: #007bff;
}

/* secure mode toggle */
.signers-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toggle-secure-mode {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 50%;
  gap: 6px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.toggle-secure-mode .tooltips-secure-mode {
  position: absolute;
  top: -47px;
  right: -3px;
  z-index: 10;
  padding: 6px 16px;
  background-color: #333;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 9px;
  width: fit-content;
  display: none;
}

.toggle-secure-mode .tooltips-secure-mode::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  z-index: 10;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(51, 51, 51, 1) transparent transparent transparent;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
}

.toggle-secure-mode-wrapper:hover .tooltips-secure-mode {
  display: block;
}

.document-expiration-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.expiration-toggle-label {
  width: 300px;
}

.expiration-toggle-label .toggle-switch {
  float: right;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
  margin: 0;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ddd;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px #ccc;
  transition: background-color 0.3s ease-in-out;
}

.toggle-switch-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  top: -25px;
  right: -35px;
  font-size: 12px;
  font-weight: bold;
  color: #aaa;
  text-shadow: 1px 1px #fff;
  transition: color 0.3s ease-in-out;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-handle {
  transform: translateX(45px);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.2),
    0 0 0 3px #28a745;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
  background-color: #28a745;
  box-shadow: inset 0 0 0 2px #28a745;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch:before {
  content: "On";
  color: #28a745;
  right: -15px;
}

.toggle-switch
  input[type="checkbox"]:checked
  + .toggle-switch-background
  .toggle-switch-handle {
  transform: translateX(29px);
}

.my-details-section {
  margin-bottom: 16px;
}

.signature-modal .modal-content {
  background-color: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.signature-modal .modal-content .modal-body {
  padding: 0;
}

.signature-modal .modal-content .modal-body .btn-light {
  text-transform: uppercase;
  background-color: #ffffff;
  color: #282828;
  border-radius: 32px;
  padding: 12px 49px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  margin-top: 50px;
}

/* save-signature */
@media (min-width: 992px) {
  .modal-xl {
    max-width: 1200px;
  }
}

.save-signature {
  padding: 0 !important;
}

.save-signature .modal-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
}

.save-signature .modal-title i {
  font-size: 16px;
}

.save-signature .modal-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin: 8px 0 0 0;
  font-weight: 400;
}

.terms-conditions .modal-header {
  background-color: #42249d;
  color: #ffffff;
}

.save-signature .modern-body {
  padding: 0;
  background: #fafbfc;
}

.save-signature .tab-pane {
  min-height: 500px;
}

/* Custom Scrollbar */
.save-signature .modal-body::-webkit-scrollbar {
  width: 6px;
}

.save-signature .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.save-signature .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 10px;
}

.save-signature .modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a67d8, #6b46c1);
}

.save-signature .modal-content {
  border-radius: 12px;
  background-color: #ffffff;
  margin: 0 16px;
}

.save-signature .modal-content .modal-header {
  justify-content: space-between;
}

.save-signature .close {
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  transition: transform 0.4s;
}

.save-signature .close:hover {
  transform: scale(1.1);
}

.save-signature .modal-content .modal-body {
  padding: 16px 37px 25px;
}

.save-signature .modal-content .custom-tab-nav {
  background-color: #42249d;
  border-radius: 100px;
  margin: 16px 0 25px;
  justify-content: space-between;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

#document-viewer-signature-modal .modal-content .participant-viewer-tab {
  grid-template-columns: repeat(3, 1fr);
}

.save-signature .modal-content .custom-tab-nav .nav-link {
  border-radius: 30px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #ffffff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #42249d;
}

.save-signature .modal-content .custom-tab-nav .nav-link.active {
  background: #ffffff;
  color: #42249d;
  box-shadow: none;
}

.save-signature .modal-content .dashed-box {
  border: 1px dashed #42249d;
  padding: 46px 0;
  width: 797px;
  margin: 0 auto;
  border-radius: 10px;
  background: #f8f8ff;
}

.save-signature .modal-content .dashed-box p {
  color: #282828;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 0;
  margin: 0;
  text-align: center;
}

.save-signature .modal-content .signatureCanvas {
  border: 1px dotted #384eb74d;
  background-color: #f8f8ff;
  width: 100% !important;
  max-height: 245px;
  min-height: 150px;
  border-radius: 4px;
  padding: 8px 16px;
  overflow: hidden;
}

.save-signature .modal-content .signatureCanvas canvas {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.save-signature .upload-area {
  border: 3px dashed #e1e8ed;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafbfc;
  position: relative;
}

.save-signature .upload-area .upload-icon {
  font-size: 48px;
  color: #007bff;
  margin-bottom: 0px;
}

.save-signature .upload-area h5 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.save-signature .upload-area p {
  margin: 0;
}

.save-signature .upload-area:hover {
  background: #f1f3f5;
  border-color: #42249d;
  box-shadow: 0 8px 20px rgba(66, 36, 157, 0.1);
}

.save-signature .upload-area .browse-link {
  color: #1da1f2;
  text-decoration: underline;
  font-weight: 500;
}

.save-signature .upload-area small {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.save-signature .upload-input {
  display: none;
}

.save-signature .modern-upload-preview {
  margin-top: 30px;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.save-signature .preview-header-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e8ed;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1da1f2;
}

.save-signature .upload-preview-box {
  padding: 20px;
  position: relative;
  background: white;
}

.save-signature .preview-image-container {
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.save-signature .preview-image-wrapper {
  position: relative;
}

.save-signature .modal-content .btn-primary {
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.save-signature .preview-image {
  max-width: 100%;
  max-height: 120px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.save-signature .preview-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.save-signature .remove-image-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.save-signature .remove-image-btn:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.save-signature .preview-status-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 25px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #28a745;
}

.save-signature .modal-content .btn-light {
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  color: #282828;
  font-size: 16px;
  font-weight: 500;
  border-radius: 40px;
  padding: 12px 30px;
}

.save-signature .preview-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #dee2e6;
  font-size: 16px;
  color: #007bff;
}

.save-signature .preview-header .remove-preview-btn {
  border: none;
  outline: none;
  color: #282828;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.save-signature .preview-header .remove-preview-btn:hover {
  color: #ff4d4f;
  transform: scale(1.1);
}

.save-signature .modern-preview-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px dashed #384eb74d;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.save-signature .preview-signature-container {
  background: white;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.save-signature .preview-signature-image {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.save-signature .preview-signature-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.save-signature .preview-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #28a745;
  margin: 0;
}

.save-signature .modal-content .btn-light:hover {
  opacity: 0.6;
}

.save-signature .modal-content .btn-success {
  border-radius: 40px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  gap: 8px;
}

.save-signature .change-font label {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.save-signature .change-font .form-control {
  border: 1.5px solid #ced4da;
  border-radius: 4px;
  height: 45px;
}

.save-signature .change-font .form-select:focus,
.save-signature .change-font .form-control:focus {
  border-color: #42249d;
}

.save-signature .change-font .form-select {
  width: 100%;
  border: 1.5px solid #ced4da;
  padding: 0.375rem 0.75rem;
  outline: none;
  background-color: transparent;
  height: 45px;
}

.save-signature .change-font .btn-primary {
  background: linear-gradient(135deg, #8e44ad 0%, #6c5ce7 100%);
}

.save-signature .change-font .btn-primary:hover {
  transform: translateY(-3px);
  background: #341c7a;
  box-shadow: 0 6px 12px rgba(66, 36, 157, 0.3);
}

.save-signature .change-font .btn-primary:hover:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.save-signature .Upload-file .labelFile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 285px;
  border: 1px dashed #384eb74d;
  background: #f8f8ff;
  border-radius: 4px;
  align-items: center;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}

.save-signature .Upload-file .input {
  max-width: 100%;
  display: none;
}

.save-signature .Upload-file .labelFile p {
  color: #282828;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 15px 0 0;
}

.save-signature .Upload-file .labelFile p a {
  color: #42249d;
}

.save-signature .Upload-file .btn-primary {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  margin-top: 40px;
  border-radius: 40px;
  padding: 13px 50px;
  text-transform: uppercase;
}

.save-signature .Upload-file .btn-primary:hover {
  transform: translateY(-3px);
  background: #341c7a;
  box-shadow: 0 6px 12px rgba(66, 36, 157, 0.3);
}

.save-signature .Upload-file .btn-primary:hover:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.save-signature .tab-content .signature-card {
  border: 1px dashed #384eb74d;
  background-color: #f8f8ff;
  padding: 10px 60px;
  border-radius: 4px;
  position: relative;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-signature .tab-content .signature-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.save-signature .tab-content .signature-card.selected {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.save-signature .tab-content .signature-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.save-signature .signatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.save-signature .signature-preview {
  padding: 0px;
}

.save-signature .signature-preview p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #282828;
}

.save-signature .signature-delete-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 9;
  border: none;
  display: none;
  transition: all 0.3s;
  background: white;
  color: #dc3545;
  border-radius: 50%;
  font-size: 13px;
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.save-signature .signature-delete-btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.save-signature .tab-content .signature-card:hover .signature-delete-btn {
  display: block;
}

.save-signature #signatures-list .btn-primary {
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 40px;
  padding: 12px 24px;
}

.save-signature .signature-preview-container {
  background-color: #f8f8ff;
  margin: 80px 0 40px;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 12px;
}

.save-signature .upload-preview h6,
.save-signature .signature-preview-container h6 {
  display: block;
}

.save-signature .selected-preview-container {
  border: 1px dashed #384eb74d;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  padding: 20px;
  border-radius: 12px;
  margin: 16px 0 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.save-signature .selected-preview-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #28a745;
  margin: 15px 0;
}

.save-signature .selected-preview-box img {
  max-width: 400px;
  width: 100%;
  max-height: 150px;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 10px;
  background: white;
  display: block;
  object-fit: contain;
}

.save-signature .signature-preview-box {
  min-height: 80px;
  padding: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-signature .signature-preview-box span {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.save-signature .preview-title {
  color: #007bff;
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  text-align: center;
}

.save-signature .initials-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.save-signature .initials-card {
  border: 1px dashed #384eb74d;
  background-color: #f8f8ff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.save-signature .initials-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.save-signature .initials-card.selected {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.save-signature .initials-preview {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.save-signature .initials-card .initials-preview img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.save-signature .initials-card .initials-delete-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.save-signature .initials-card .initials-delete-btn:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.save-signature .initials-card:hover .initials-delete-btn {
  opacity: 1;
}

.save-signature .figma-button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.save-signature .signature-tools {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.save-signature .upload-preview {
  margin: 20px 0;
  text-align: center;
}

.save-signature .upload-preview img {
  padding: 0 !important;
  border: none !important;
}

.user-table .card {
  border-radius: 12px;
  box-shadow: none;
}

.user-table .card .card-body {
  padding: 15px 20px;
}

.user-table .card .card-body .card-title {
  float: none;
  color: #282828;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
}

.user-table .card .dataTables_wrapper {
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
}

.user-table .card .dataTables_filter,
.user-table .card .dataTables_length {
  padding: 16px;
}

.user-table .card .dataTables_filter label,
.user-table .card .dataTables_length label {
  margin: 0;
}

.user-table .card .dataTables_length .custom-select-sm {
  background-color: #42249d;
  color: #ffffff;
  box-shadow: none;
  border-color: #42249d;
  border-radius: 8px;
}

.table td,
.table th {
  border: none;
}

.table thead th {
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}
.card table.user-detail-table th {
  padding: 14px 16px;
}

.card table td {
  padding: 14px 16px;
  color: #0f0f0f;
  font-size: 16px;
  font-weight: 400;
  vertical-align: middle;
}

.table tbody tr:nth-of-type(odd) {
  background-color: #f7f6fe;
}

.table-hover tbody tr:hover {
  background-color: #f7f6fe;
}

.badge-success {
  background-color: #d5f8e4;
  border-radius: 22px;
  padding: 8px 12px;
  color: #1f9254;
  font-size: 14px;
  font-weight: 400;
}

.badge-danger {
  background-color: #ffe8cf;
  color: #cd6200;
  border-radius: 22px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}

table.dataTable.table-sm .sorting:before,
table.dataTable.table-sm .sorting_asc:before,
table.dataTable.table-sm .sorting_desc:before,
table.dataTable.table-sm .sorting:after,
table.dataTable.table-sm .sorting_asc:after,
table.dataTable.table-sm .sorting_desc:after {
  top: 14px;
}

.dataTables_paginate {
  padding: 16px;
  border-top: 1px solid #dddddd;
}

.dataTables_paginate ul.pagination {
  justify-content: center !important;
}

/* .pagination .page-item.previous .page-link,
.pagination .page-item.next .page-link {
    border: none;
    color: #9E9E9E;
    font-size: 12px;
    font-weight: 500;
    background-color: transparent;
    transition: all 0.3s;
} */

.pagination .page-item.previous:hover .page-link,
.pagination .page-item.next:hover .page-link {
  background-color: #42249d;
  color: #ffffff;
}

.pagination .page-item .page-link {
  background-color: #e0e0e0;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
}

.pagination .page-item:hover .page-link {
  background-color: #42249d;
  color: #ffffff;
  border-color: #42249d;
}

.page-item.active .page-link {
  background-color: #42249d;
  border-color: #42249d;
  color: #ffffff;
}

.page-item .page-link:focus {
  box-shadow: none;
}

.document-list .title {
  color: #282828;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
}

.document-list .table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.document-list .table-responsive .table {
  margin: 0;
  width: 100% !important;
}

.document-list .table td .icon-list img {
  margin: 0px 8px;
}

.edit-document .card {
  box-shadow: none;
}

.edit-document .card .card-title {
  font-size: 20px;
  font-weight: 500;
  color: #282828;
  margin-bottom: 15px;
  float: none;
}

.edit-document .card .form-group {
  margin-bottom: 15px;
}

.edit-document .card label {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 10px;
}

.edit-document .card .Upload-file {
  margin-top: 10px;
}

.edit-document .card .form-group .btn-primary {
  text-transform: uppercase;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  padding: 13px 36px;
}

.edit-document .card .form-group .btn-secondary {
  background-color: #f1f1f1;
  border: 1px solid #dddddd;
  color: #282828;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  padding: 12px 20px;
  margin-left: 12px;
}

/* signature-modal */

.signature-modal .pdf-content {
  background: #ffffff;
  position: relative;
  padding: 40px 60px;
}

.signature-modal .pdf-content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  z-index: 1;
  background: linear-gradient(
    to right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
}

.signature-modal .pdf-content .header h1 {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.signature-modal .pdf-content .header p {
  text-align: center;
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 50px;
}

.pdf-content .feature-section {
  margin-bottom: 40px;
}

.pdf-content .feature-content h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.pdf-content .feature-content p {
  color: #555;
  font-size: 18px;
  line-height: 24px;
}

.pdf-content .feature-content .storage-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.pdf-content .storage-link:hover {
  text-decoration: underline;
}

.pdf-content .feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Digital Documents Section */
.pdf-content .doc-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.pdf-content .doc-icon {
  width: 50px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  position: relative;
}

.pdf-content .doc-icon.pdf {
  background: #e74c3c;
}

.pdf-content .doc-icon.ppt {
  background: #f39c12;
}

.pdf-content .doc-icon.doc {
  background: #3498db;
}

.pdf-content .doc-icon.xls {
  background: #27ae60;
}

.pdf-content .folder-icon {
  width: 80px;
  height: 60px;
  background: #ecf0f1;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.pdf-content .folder-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 10px;
  width: 25px;
  height: 8px;
  background: #bdc3c7;
  border-radius: 4px 4px 0 0;
}

.pdf-content .upload-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #3498db;
  margin-bottom: 5px;
}

/* Enhancement Section */
.pdf-content .enhancement-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.pdf-content .tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.pdf-content .tool-icon:nth-child(1) {
  background: #e74c3c;
}

.pdf-content .tool-icon:nth-child(2) {
  background: #2ecc71;
}

.pdf-content .tool-icon:nth-child(3) {
  background: #3498db;
}

.pdf-content .tool-icon:nth-child(4) {
  background: #f39c12;
}

.pdf-content .tool-icon:nth-child(5) {
  background: #9b59b6;
}

.pdf-content .tool-icon:nth-child(6) {
  background: #1abc9c;
}

.pdf-content .tool-icon:nth-child(7) {
  background: #e91e63;
}

.pdf-content .tool-icon:nth-child(8) {
  background: #95a5a6;
}

/* Access Files Section */
.access-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}

.device-icon {
  width: 60px;
  height: 45px;
  background: #ecf0f1;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-icon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #bdc3c7;
  border-radius: 2px;
}

.sync-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.file-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* .file-item {
    width: 35px;
    height: 25px;
    border-radius: 4px;
    position: relative;
} */

.file-item:nth-child(1) {
  background: #e74c3c;
}

.file-item:nth-child(2) {
  background: #f39c12;
}

.file-item:nth-child(3) {
  background: #2ecc71;
}

.file-item:nth-child(4) {
  background: #9b59b6;
}

/* Collaboration Section */
.collab-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signature-pad {
  width: 120px;
  height: 80px;
  background: #ecf0f1;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature {
  color: #3498db;
  font-style: italic;
  font-size: 18px;
  transform: rotate(-5deg);
}

.email-popup {
  background: white;
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.email-popup::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #3498db;
}

.email-content {
  font-size: 12px;
  color: #2c3e50;
}

.sign-button {
  background: #f39c12;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin-top: 5px;
}

.footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #ecf0f1;
}

.signature-button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signature-button:hover {
  background: #34495e;
  transform: translateY(-2px);
}

.decorative-dots {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #3498db;
  border-radius: 50%;
}

.dot-1 {
  top: 20px;
  right: 50px;
}

.dot-2 {
  bottom: 100px;
  left: 30px;
  background: #e74c3c;
}

.dot-3 {
  top: 50%;
  right: 20px;
  background: #f39c12;
}

.dot-4 {
  bottom: 40px;
  right: 80px;
  background: #2ecc71;
}

#signers-container .form-control,
.my-details-section .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.9rem;
  background: #fff;
}

#signers-container .form-control:focus,
.my-details-section .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.dropdown-item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  padding: 0;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Tools Styles */
.fullpage-document-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8f9fa;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Bar */
.viewer-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: margin-right 0.3s ease;
}

.fullpage-document-viewer.tool-panel-open .status-bar,
.fullpage-document-viewer.tool-panel-open .viewer-header {
  margin-right: 350px;
}

.viewer-header .header-left,
.viewer-header .header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.viewer-header .header-left .btn.btn-light {
  border: 1px solid #e1e1e1;
  background-color: #ececec;
}

.viewer-header .header-left .btn.btn-light:hover {
  background-color: #d4d4d4;
}

.viewer-header .header-left .btn.btn-light,
.viewer-header .header-right .btn.btn-success,
.viewer-header .header-right .btn.btn-primary {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-header .header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.viewer-header .zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 4px;
}

.viewer-header .zoom-controls .zoom-level {
  font-size: 14px;
  font-weight: 500;
  min-width: 45px;
  text-align: center;
}

.viewer-header .viewer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
}

.viewer-header .header-right .preview-mode-info .badge-info {
  padding: 10px 16px;
}

/* Main Viewer Area */
.viewer-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  transition: margin-right 0.3s ease;
}

.sidebar-left,
.sidebar-right {
  display: none;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
  background: #ffffff;
  width: 360px;
  flex-shrink: 0;
  /* display: flex;
    flex-direction: column; */
  overflow-y: auto;
  max-height: calc(100vh - 48px);
}

.sidebar-left .sidebar-header,
.sidebar-right .sidebar-header {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-left .sidebar-header h6,
.sidebar-right .sidebar-header h6 {
  margin: 0;
  font-weight: 600;
  color: #495057;
}

/* Left Sidebar */
.sidebar-left .pages-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
  background-color: #fff;
}

/* Right Sidebar - Ensure proper scrolling */
.sidebar-left .page-thumbnail {
  border: 2px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
}

.sidebar-left .page-thumbnail:hover {
  border-color: #007bff;
  background: #e3f2fd;
}

.sidebar-left .page-thumbnail.active,
.sidebar-left .page-thumbnail.selected {
  border-color: #007bff;
  background: #e3f2fd;
}

.sidebar-left .page-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.sidebar-left .page-thumbnail .page-number {
  text-align: center;
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.sidebar-left .page-thumbnail.loading {
  opacity: 0.6;
}

.sidebar-left .thumbnail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f8f9fa;
  border-radius: 4px;
}

.sidebar-left .thumbnail-placeholder .fa-file-pdf {
  margin-bottom: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.sidebar-left .thumbnail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #fff3cd;
  border-radius: 4px;
}

.sidebar-left .thumbnail-error .fa-exclamation-triangle {
  margin-bottom: 8px;
}

.sidebar-left .comments-history-section .btn-outline-info {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
}

.sidebar-left .comments-history-section .card {
  margin: 0 !important;
}

.sidebar-left .comments-history-section .card-header {
  text-align: center;
}

.sidebar-left .comments-history-section .card .card-body {
  padding: 16px 10px;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Right Sidebar */

.sidebar-right .current-signature {
  padding: 15px 0;
  /* border-bottom: 1px solid #e9ecef; */
  background-color: #fff;
}

.sidebar-right .no-signature-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.sidebar-right .no-signature-placeholder:hover {
  background: #e3f2fd;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.status-right .no-signature-placeholder i {
  font-size: 24px;
  color: #6c757d;
  margin-bottom: 8px;
}

.sidebar-right .signature-preview .text {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  text-align: center;
}

.sidebar-right .signature-preview .description {
  font-size: 12px;
  color: #6c757d;
  opacity: 0.8;
  margin: 0;
  text-align: center;
}

.sidebar-right .signature-preview #apply-text-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 8px;
  padding: 10px;
}

.sidebar-right .ai-review-icon {
  width: 25px;
  height: 25px;
  filter: invert(1);
}

.sidebar-right .review_results_content {
  display: none;
  margin: 12px 0;
  max-height: 500px;
  overflow: hidden auto;
}

.sidebar-right .review_results_content .review_header {
  background: #667eea;
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.sidebar-right .review_header .review_header_title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-right .review_header .review_header_title p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.sidebar-right .review_header .review_header_subtitle {
  font-size: 10px !important;
  opacity: 0.9;
}

.sidebar-right .suggestions-dropdown {
  margin: 12px 0;
}

.sidebar-right .suggestions-dropdown .btn-outline-primary,
.sidebar-right
  .suggestions-dropdown
  .suggestions-dropdown-content
  .btn-success {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
}

.sidebar-right
  .suggestions-dropdown
  .suggestions-dropdown-content
  .btn-success {
  justify-content: center;
}

.sidebar-right .suggestions-dropdown .suggestions-dropdown-content {
  display: none;
  margin: 12px 0px;
  max-height: 380px;
  overflow-y: auto;
}

.sidebar-right .suggestions-dropdown-content .dropdown-item-box {
  background: white;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: start;
  gap: 8px;
}

.sidebar-right .suggestions-dropdown-content .dropdown-item-box label {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.current-signature .initials-placeholder,
.current-signature .stamp-placeholder,
.current-signature .textbox-placeholder,
.current-signature .date-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.current-signature .initials-placeholder:hover,
.current-signature .stamp-placeholder:hover,
.current-signature .textbox-placeholder:hover,
.current-signature .date-placeholder:hover {
  background: #e3f2fd;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.checkbox-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.checkbox-preview:hover {
  background: #e3f2fd;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.checkbox-sample {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #007bff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-sample:hover {
  background: #e3f2fd;
  transform: scale(1.05);
}

.checkbox-sample i {
  font-size: 18px;
}

.checkbox-sample.unchecked i {
  display: none;
}

/* Draggable Checkbox Styles */
.draggable-checkbox {
  position: absolute;
  cursor: move;
  pointer-events: auto;
  border: 2px dashed #28a745;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.draggable-checkbox:hover {
  border-style: solid;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Document Canvas Area */
.document-canvas-area {
  flex: 1;
  position: relative;
  overflow: auto;
  background: #e9ecef;
  display: flex;
  padding: 16px;
}

.document-canvas-area .pdf-container {
  margin: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  padding-bottom: 0;
}

/* iPhone-only safe area space (desktop stays 0) */
html.iphone-browser .document-canvas-area .pdf-container,
body.iphone-browser .document-canvas-area .pdf-container {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.document-canvas-area #pdf-canvas {
  display: block;
  height: auto;
}

/* Loading Overlay - positioned relative to document-canvas-area */
.document-canvas-area .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.document-canvas-area .loading-content {
  text-align: center;
  color: #6c757d;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  min-width: 280px;
}

.document-canvas-area .loading-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #007bff, #0056b3, #007bff);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.6;
  animation: borderGlow 2s ease-in-out infinite alternate;
}

.document-canvas-area .loading-content .fa-spinner {
  color: #007bff;
  animation: enhancedSpin 1.2s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
  font-size: 3.5rem !important;
}

.document-canvas-area .loading-content h5 {
  margin: 20px 0 8px 0;
  font-weight: 600;
  color: #495057;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.loading-content .fa-file-signature {
  color: #007bff;
  animation: enhancedSpin 1.2s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
  font-size: 3.5rem !important;
}

.loading-content .progress-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6c757d;
  opacity: 0.8;
}

@keyframes enhancedSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

@keyframes borderGlow {
  from {
    opacity: 0.3;
    transform: scale(1);
  }

  to {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.document-canvas-area .loading-content .progress {
  width: 260px;
  height: 10px;
  background: linear-gradient(90deg, #e9ecef 0%, #f8f9fa 100%);
  border-radius: 5px;
  overflow: hidden;
  margin: 15px auto 8px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-canvas-area .loading-content .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 50%, #007bff 100%);
  border-radius: 5px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.document-canvas-area .loading-content .progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: progressShimmer 2s infinite;
}

.document-canvas-area .loading-content .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px 5px 0 0;
}

@keyframes progressShimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Signature Layer */
.document-canvas-area .signature-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.draggable-checkbox,
.draggable-stamp,
.draggable-textbox,
.draggable-initials,
.draggable-date {
  position: absolute;
  cursor: move;
  pointer-events: auto;
  border: 2px dashed #007bff;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
  transition: all 0.2s ease;
  user-select: none;
  min-width: 50px;
  min-height: 30px;
}

/* Draggable Signature */
.draggable-signature {
  position: absolute;
  cursor: move;
  pointer-events: auto;
  border: 2px dashed #007bff;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
  transition: all 0.2s ease;
  user-select: none;
}

.draggable-signature:hover {
  border-style: solid;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  transform: scale(1.02);
}

.draggable-signature .signature-image {
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.draggable-signature.dragging {
  opacity: 0.8;
  transform: scale(1.02);
  z-index: 10;
}

.draggable-signature.selected {
  border: 2px solid #ffc107 !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.draggable-signature.selected .resize-handle {
  background: #ffc107;
  opacity: 1;
  visibility: visible;
}

.signature-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Right Sidebar - Signature Controls */
.current-signature .signature-preview {
  width: 100%;
}

.current-signature .signature-preview img {
  width: 100%;
  object-fit: contain;
  height: 150px;
  border: 1px solid #73c686;
  border-radius: 4px;
  background: white;
  padding: 5px;
}

.current-signature .signature-info {
  text-align: center;
}

.sidebar-right .signature-controls {
  flex: 1;
  position: relative;
  background-color: #fff;
}

.sidebar-right #only-others-message {
  background: linear-gradient(
    135deg,
    rgb(227, 242, 253) 0%,
    rgb(243, 229, 245) 100%
  );
  border: 1px solid rgb(33, 150, 243);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 15px;
  text-align: center;
  font-size: 12px;
  color: rgb(21, 101, 192);
}

.sidebar-right .upload-file-group {
  border: 2px solid #1ea1f3;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
  text-align: center;
  cursor: pointer;
  margin-bottom: 7px;
}

.sidebar-right .upload-file-group:hover {
  background-color: #e3f2fd;
  box-shadow: 0 4px 12px rgba(30, 161, 243, 0.2);
  transform: translateY(-2px);
}

.sidebar-right .upload-file-group .form-control-file {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
  border: none;
  background: none;
  pointer-events: none;
}

.sidebar-right .upload-file-group .upload-icon i {
  font-size: 18px;
  color: #1ea1f3;
  margin-bottom: 8px;
}

.sidebar-right .upload-file-group .upload-title {
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #495057;
}

/* Position Presets */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.position-btn {
  aspect-ratio: 1;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.position-btn:hover {
  border-color: #007bff;
  background: #e3f2fd;
}

.position-btn.active {
  border-color: #007bff;
  background: #007bff;
  color: white;
}

#traditional-signature-controls {
  display: block;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#traditional-signature-controls.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.signature-controls
  > div[id$="-controls"]:not(#traditional-signature-controls) {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  max-height: none;
  overflow-y: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signature-controls #open-signature-modal-btn.btn-primary {
  border-radius: 8px;
  padding: 10px 16px;
  width: 100%;
}

.signature-controls #add-signature-btn {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
}

.signature-controls #delete-selected-signature:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Size Controls */
.signature-controls .size-preset-buttons {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.signature-controls .size-preset-buttons .btn {
  flex: 1;
}

.signature-controls .slider-group {
  margin-bottom: 8px;
}

.signature-controls .slider-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 3px;
  display: block;
}

.signature-controls .slider-value {
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  float: right;
}

.signature-controls .size-controls .form-range {
  flex: 1;
}

.signature-controls .form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Status Bar */
.status-bar {
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  flex-shrink: 0;
  font-size: 14px;
}

.status-left,
.status-center,
.status-right {
  display: flex;
  align-items: center;
}

.status-center {
  flex: 1;
  justify-content: center;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

#current-page-input {
  text-align: center;
}

/* shubham 23-dec-2025 */

.dashboard-card-ticket {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-card-ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4f46e5;
}

.dashboard-card-ticket .inner h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.dashboard-card-ticket .inner p {
  margin: 0;
  font-size: 16px;
  opacity: 0.7;
}

.dashboard-card-ticket .icon i {
  font-size: 40px;
  color: #4f46e5;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .start-signing .progress_bar .step,
  .start-signing .progress_bar .step p {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .logo {
    width: 100px;
  }

  .main-header .menu-btn {
    width: 40px;
    height: 40px;
  }

  .navbar-expand .navbar-nav .nav-link {
    padding: 8px 12px;
    width: 40px;
    height: 40px;
  }

  .main-header {
    padding: 10px 16px;
  }

  .content.section-px {
    padding: 16px 5px;
  }

  .main-header .nav-left a {
    font-size: 18px;
    margin-left: 10px;
  }

  .pdf-content .dashed-box {
    width: 100%;
    padding: 30px 20px;
  }

  .pdf-content .feature-visual {
    flex-direction: column;
    gap: 30px;
  }

  .access-visual,
  .collab-visual {
    flex-direction: column;
    gap: 20px;
  }

  .save-signature .modal-dialog {
    max-width: 100% !important;
    margin: 10px !important;
  }

  .save-signature .modal-content {
    margin: 0;
  }

  .save-signature .signature-preview-container {
    margin: 16px 0;
  }

  .save-signature .modal-content .modal-body {
    padding: 16px;
  }

  .save-signature .tab-pane {
    min-height: auto !important;
  }

  .save-signature .modal-content .dashed-box {
    width: 100%;
    padding: 16px;
  }

  .save-signature .modal-content .custom-tab-nav {
    border-radius: 12px;
    margin: 0 auto 16px;
    grid-template-columns: repeat(2, 1fr);
  }

  .save-signature .modal-content .custom-tab-nav .nav-link {
    border-radius: 12px;
    padding: 10px 16px;
  }

  .viewer-header .header-left .btn.btn-light,
  .viewer-header .header-right .btn.btn-light {
    border: 1px solid #e8e8e8;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .viewer-header .header-left .btn.btn-light,
  .viewer-header .header-right .btn.btn-success,
  .viewer-header .header-right .btn.btn-primary {
    height: 35px;
  }

  .safari-browser .sidebar-left .pages-list,
  .chrome-browser .sidebar-left .pages-list,
  .safari-browser .sidebar-right .signature-controls,
  .chrome-browser .sidebar-right .signature-controls {
    padding-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .feature-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .swal2-popup {
    padding: 16px !important;
  }

  .container {
    padding: 20px;
  }

  .doc-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .enhancement-tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .start-signing .info-text ol {
    padding-left: 20px;
  }

  .save-signature .modal-content .custom-tab-nav,
  #document-viewer-signature-modal .modal-content .participant-viewer-tab {
    grid-template-columns: repeat(1, 1fr);
  }

  .save-signature .figma-button-group {
    flex-direction: column;
    gap: 16px;
  }

  .save-signature .btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
  }

  #signers-container .form-control,
  .my-details-section .form-control {
    margin-bottom: 12px;
  }

  .status-bar {
    flex-direction: column;
    height: auto;
    gap: 5px;
  }

  .status-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .status-left,
  .status-right {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .viewer-header .zoom-controls {
    display: none;
  }

  .sidebar-left {
    position: absolute;
    left: -360px;
    z-index: 20;
    height: 100%;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar-left.open {
    left: 0;
  }

  .sidebar-right {
    position: absolute;
    right: -360px;
    z-index: 20;
    height: 100%;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar-right.open {
    right: 0;
  }

  .save-signature .preview-info,
  .save-signature .preview-status-upload,
  .save-signature .modal-content .btn-light,
  .save-signature .modal-content .btn-success,
  .save-signature .modal-content .btn-primary {
    border-radius: 12px;
    padding: 10px 16px;
  }

  .save-signature .modern-preview-box,
  .save-signature .upload-preview-box,
  .save-signature .preview-signature-container {
    padding: 16px;
  }

  .start-signing {
    padding: 20px 16px;
  }

  .Upload-file .Upload-label {
    text-align: left;
    font-size: 18px;
    padding: 30px 0 16px;
  }

  .who-needs-to-sign-section {
    padding: 20px 0;
  }

  .start-signing .navigation-btn {
    margin: 16px 0;
  }

  .signing-options .signing-option-card {
    margin-bottom: 16px;
    height: auto;
  }

  .toggle-secure-mode {
    width: auto;
  }

  .toggle-secure-mode-wrapper:hover .tooltips-secure-mode {
    display: none;
  }

  .document-expiration-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .expiration-toggle-label {
    width: 100%;
  }

  .success-popup-content .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .viewer-header {
    padding: 10px 8px;
  }

  .main-header .nav-left a {
    margin-left: 5px;
  }

  .main-header .menu-btn,
  .navbar-expand .navbar-nav .nav-link {
    padding: 8px;
    width: 30px;
    height: 30px;
  }

  .navbar-expand .navbar-nav .nav-link i {
    font-size: 10px;
  }

  .main-header .navbar-nav .nav-item {
    margin: 0 2px;
  }

  .viewer-header .header-left .btn.btn-light,
  .viewer-header .header-right .btn.btn-light,
  .viewer-header .header-right .btn.btn-success,
  .viewer-header .header-right .btn.btn-primary {
    font-size: 9px;
    gap: 4px;
    height: 25px;
    padding: 6px 8px;
  }

  .start-signing .navigation-btn {
    flex-direction: column;
    gap: 12px;
  }

  .signers-header h4,
  .my-details-section h4,
  .who-needs-to-sign-section .section-header h4 {
    font-size: 18px;
  }

  .start-signing .navigation-btn .btn-light,
  .start-signing .navigation-btn .btn-primary,
  .start-signing .navigation-btn .btn-success {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    justify-content: center;
  }

  .small-box {
    padding: 30px 16px;
    border-radius: 12px;
  }

  .small-box .inner .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
  }

  .small-box p {
    font-size: 21px;
  }

  .signers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toggle-secure-mode {
    width: 100%;
    justify-content: space-between;
  }

  .sidebar-left,
  .sidebar-right {
    width: 300px;
  }
}

/* Review Complete Dropdown - Increased Font Sizes */
#reviewResultsContent h6 {
  font-size: 15px;
}

#reviewResultsContent ul,
#reviewResultsContent li,
#reviewResultsContent p,
#reviewResultsContent div {
  font-size: 14px;
  line-height: 1.4;
}

#reviewResultsContent .gradient-header {
  font-size: 16px;
}

#reviewResultsContent .gradient-header .opacity-90 {
  font-size: 13px;
}

/* Responsive styles for page navigation buttons on mobile/touch devices */
@media (max-width: 768px), (pointer: coarse) {
  .element-page-nav {
    top: -45px;
    right: -10px;
    padding: 4px 6px;
    border-radius: 8px;
    opacity: 1;
    /* Always fully visible on mobile */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  }

  .element-page-nav-button:active {
    background: #0056b3;
    color: white;
    transform: scale(0.95);
  }

  .element-page-nav-page-info {
    font-size: 14px;
    padding: 0 8px;
    line-height: 36px;
  }

  /* Always show navigation on mobile (no hover state) */
  .draggable-signature .element-page-nav,
  .draggable-checkbox .element-page-nav,
  .draggable-initials .element-page-nav,
  .draggable-stamp .element-page-nav,
  .draggable-textbox .element-page-nav,
  .draggable-date .element-page-nav {
    display: flex !important;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Extra small screens - position nav below element */
@media (max-width: 480px) {
  .element-page-nav {
    top: auto;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ============================================
   NOTIFICATION BELL STYLES
   ============================================ */

/* Bell icon link */
.notification-bell-link {
  position: relative;
  padding: 0.5rem 0.75rem !important;
}

.notification-bell-link .fa-bell {
  font-size: 1.1rem;
  color: #6c757d;
  transition: color 0.2s ease;
}

.notification-bell-link:hover .fa-bell {
  color: #007bff;
}

/* Notification badge (count) */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background-color: #dc3545;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Notification dropdown container */
.notification-dropdown {
  width: 360px !important;
  max-height: 480px;
  padding: 0 !important;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Dropdown header */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
}

.mark-all-read {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mark-all-read:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Notification list */
.notification-list {
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
}

.notification-loading {
  padding: 30px;
  text-align: center;
  color: #6c757d;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.notification-empty p {
  margin: 0;
  font-size: 14px;
}

/* Individual notification item */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #f0f7ff;
  border-left: 3px solid #007bff;
}

.notification-item.unread:hover {
  background: #e3f0ff;
}

/* Unread indicator (blue tick) */
.notification-unread-indicator {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Notification icon */
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.notification-icon.suggestion {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
}

.notification-icon.replace {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.notification-icon.signed {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

/* Notification content */
.notification-content {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.notification-content-title {
  font-weight: 600;
  font-size: 13px;
  color: #212529;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-content-message {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-content-time {
  font-size: 11px;
  color: #adb5bd;
}

/* Notification footer */
.notification-footer {
  padding: 8px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.notification-footer small {
  font-size: 11px;
}

/* Scrollbar styling for notification list */
.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .notification-dropdown {
    width: 300px !important;
    right: -60px !important;
  }

  .notification-item {
    padding: 10px 12px;
  }

  .notification-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===== PDF ICON SIDEBAR AND TOOL PANEL STYLES ===== */
/* PDF Icon Sidebar Styles */
.pdf-icon-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #2d1b69;
  border-radius: 0 12px 12px 0;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 666;
  transition: all 0.3s ease;
}

.sidebar-icon-btn {
  background: transparent;
  border: none;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-icon-btn i {
  font-size: 20px;
}

.sidebar-icon-btn .icon-label {
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
}

.sidebar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.sidebar-icon-btn.active {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-spacer {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  margin: 8px 0;
}

.zoom-display {
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}

.zoom-control {
  height: 40px !important;
}

/* Right Tool Panel Styles */
.pdf-tool-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 350px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 555;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pdf-tool-panel.open {
  transform: translateX(0);
}

/* Push main content left when tool panel is open */
.fullpage-document-viewer.tool-panel-open .viewer-main {
  margin-right: 350px;
}

.tool-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.tool-panel-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d1b69;
}

.tool-panel-close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tool-panel-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.tool-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Tool Content Styles */
.tool-content {
  display: none;
}

.tool-content.active {
  display: block;
}

/* Review Tool Panel Styles */
.tool-content .review_results_content {
  display: none;
  margin: 12px 0;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.tool-content .review_results_content .review_header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tool-content .review_results_content .review_header .review_header_title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tool-content .review_results_content .review_header .review_header_title p {
  margin: 0;
  font-size: 14px;
}

.tool-content .review_results_content .review_section {
  background: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
}

.tool-content .review_results_content .review_section h6 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.tool-content .review_results_content .suggestion-item {
  padding: 10px;
  background: #f8f9fa;
  border-left: 3px solid #667eea;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.tool-content .review_results_content .risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.tool-content .review_results_content .risk-badge.risk-high {
  background: #fee2e2;
  color: #dc2626;
}

.tool-content .review_results_content .risk-badge.risk-medium {
  background: #fef3c7;
  color: #f59e0b;
}

.tool-content .review_results_content .risk-badge.risk-low {
  background: #d1fae5;
  color: #10b981;
}

/* ===== Review Results in Left Tool Panel (mirroring .sidebar-right styles) ===== */

.tool-content .review_results_content .review_header_subtitle {
  font-size: 12px !important;
  opacity: 0.9;
}

.tool-content .suggestions-dropdown {
  margin: 12px 0;
}

.tool-content .suggestions-dropdown .btn-outline-primary,
.tool-content .suggestions-dropdown .suggestions-dropdown-content .btn-success {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
}

.tool-content .suggestions-dropdown .suggestions-dropdown-content .btn-success {
  justify-content: center;
}

.tool-content .suggestions-dropdown .suggestions-dropdown-content {
  display: none;
  margin: 12px 0px;
  max-height: 380px;
  overflow-y: auto;
}

.tool-content .suggestions-dropdown-content .dropdown-item-box {
  background: white;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: start;
  gap: 8px;
}

.tool-content .suggestions-dropdown-content .dropdown-item-box label {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.tool-content .ai-review-icon {
  width: 25px;
  height: 25px;
  filter: invert(1);
}

.tool-search-box {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border-color 0.2s ease;
}

.tool-search-box:focus {
  outline: none;
  border-color: #2d1b69;
}

.search-results {
  margin-top: 15px;
}

.search-result-item {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #f8f9fa;
  border-color: #2d1b69;
}

.pages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pages-grid::-webkit-scrollbar {
  width: 6px;
}

.pages-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.pages-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.pages-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a67d8 0%, #6b3fa0 100%);
}

.pages-info {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.page-thumbnail {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: white;
}

.page-thumbnail:hover {
  border-color: #2d1b69;
  box-shadow: 0 4px 12px rgba(45, 27, 105, 0.15);
  transform: translateY(-2px);
}

.page-thumbnail.current-page {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.thumbnail-image-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-page-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.page-thumbnail-label {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.page-thumbnail.current-page .page-thumbnail-label {
  color: #667eea;
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.page-thumbnail-label {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.download-options,
.print-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-btn {
  width: 100%;
  padding: 12px 20px;
  background: #2d1b69;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tool-btn:hover {
  background: #1f1147;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(45, 27, 105, 0.3);
}

.tool-btn i {
  font-size: 16px;
}

.comments-history-section {
  margin-bottom: 12px;
}

/* Review Tool - Comments & Activity Styles */
.tool-content .comments-history-section {
  margin-top: 20px;
}

.tool-content .comments-history-header {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-content .comments-history-header:hover {
  background: #dee2e6 !important;
}

.tool-content .workflow-tabs-nav {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tool-content .workflow-tab-btn {
  flex: 1;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tool-content .workflow-tab-btn:hover {
  color: #667eea;
  background: #f1f5f9;
}

.tool-content .workflow-tab-btn.active {
  color: #667eea;
  background: #fff;
  border-bottom-color: #667eea;
}

.tool-content .workflow-tab-btn i {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

/* Comments body in review tool */
.tool-content #review-comments-body,
.tool-content #review-activity-history-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #f0f2f5 0%, #e8eaed 100%);
}

.tool-content #review-comments-body::-webkit-scrollbar,
.tool-content #review-activity-history-list::-webkit-scrollbar {
  width: 5px;
}

.tool-content #review-comments-body::-webkit-scrollbar-track,
.tool-content #review-activity-history-list::-webkit-scrollbar-track {
  background: #e9ecef;
}

.tool-content #review-comments-body::-webkit-scrollbar-thumb,
.tool-content #review-activity-history-list::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

/* Comment input in review tool */
.tool-content #review-comment-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 12px;
  background: #f4f6f8;
  outline: none;
}

.tool-content #review-comment-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.tool-content #review-send-comment-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tool-content #review-send-comment-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .pdf-icon-sidebar {
    padding: 8px 4px;
  }

  .sidebar-icon-btn {
    width: 48px;
    height: 48px;
  }

  .sidebar-icon-btn i {
    font-size: 18px;
  }

  .sidebar-icon-btn .icon-label {
    font-size: 8px;
  }

  .fullpage-document-viewer.tool-panel-open .status-bar,
  .fullpage-document-viewer.tool-panel-open .viewer-header,
  .fullpage-document-viewer.tool-panel-open .viewer-main {
    margin-right: 0;
  }
}

@media (max-width: 575px) {
  .pdf-tool-panel {
    width: 100%;
    z-index: 777;
  }
}

/* Signature Tools Grid Styles */
.signature-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signature-tool-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.signature-tool-card i {
  font-size: 18px;
  transition: all 0.3s ease;
}

.signature-tool-card span {
  font-size: 14px;
  font-weight: 400;
}

.signature-tool-card:hover {
  border-color: #2d1b69;
  background: linear-gradient(145deg, #f8f9ff 0%, #f0f2ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(45, 27, 105, 0.15);
}

.signature-tool-card:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(45, 27, 105, 0.2);
}

/* Active state for tool card when expanded */
.signature-tool-card.active,
.signature-tool-card.tool-card-active {
  border-color: #2d1b69;
  color: #fff;
  background: linear-gradient(145deg, #2d1b69 0%, #4a2fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 27, 105, 0.3);
}

/* Expanded tool panel in left sidebar */
/* .tool-expand-panel {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
} */

.tool-panel-content .tool-expand-preview {
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  min-height: 60px;
  overflow: hidden;
  margin: 16px 0;
  padding: 16px;
  text-align: center;
}

.tool-panel-content .manage-tools .btn-danger,
.tool-panel-content .manage-tools .btn-warning,
.tool-panel-content .manage-tools .btn-primary,
.tool-panel-content .manage-tools .btn-success {
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  width: 100%;
}

.tool-panel-content .manage-tools .btn-outline-info,
.tool-panel-content .manage-tools .btn-outline-success,
.tool-panel-content .manage-tools .btn-outline-primary,
.tool-panel-content .manage-tools .btn-outline-secondary {
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  width: 100%;
}

.tool-panel-content .size-controls .form-group {
  margin-bottom: 12px !important;
}

.tool-panel-content .size-controls label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.tool-panel-content .size-controls .renge-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
  margin-bottom: 4px;
}

.tool-panel-content .size-controls input[type="range"] {
  width: 100%;
  accent-color: #007bff;
}

/* Date expand controls */
.expand-date-controls .form-group {
  margin-bottom: 8px;
}

.expand-date-controls .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
}

.expand-date-controls .form-control-sm {
  font-size: 12px;
  border-radius: 6px;
  padding: 8px;
  border: 1px solid #d1d5db;
  transition: border-color 0.2s;
}

.expand-date-controls .form-control-sm:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.expand-date-controls .form-range {
  cursor: pointer;
}

/* Stamp expand controls */
.expand-stamp-controls .form-group {
  margin-bottom: 8px;
}

.expand-stamp-controls .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
}

.expand-stamp-controls .form-control-sm,
.expand-textbox-controls .form-control-sm {
  font-size: 12px;
  border-radius: 6px;
  padding: 8px;
  border: 1px solid #d1d5db;
  transition: border-color 0.2s;
}

.expand-stamp-controls .form-control-sm:focus,
.expand-textbox-controls .form-control-sm:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.expand-stamp-controls .form-range {
  cursor: pointer;
}

/* Checkbox expand controls */
.expand-checkbox-controls .form-group {
  margin-bottom: 8px;
}

.expand-checkbox-controls .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
}

.expand-checkbox-controls .form-range {
  cursor: pointer;
}

/* Textbox expand controls */
.expand-textbox-controls .form-group {
  margin-bottom: 8px;
}

.expand-textbox-controls .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
}

.expand-textbox-controls .form-range {
  cursor: pointer;
}

/* Expand panel participant assignment dropdown */
.expand-participant-assign {
  padding: 10px 0;
}

.expand-participant-assign h6 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.expand-participant-assign .dropdown-toggle {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

.expand-participant-assign .dropdown-menu {
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
}

.expand-participant-assign .dropdown-item {
  font-size: 12px;
  padding: 6px 12px;
}

.expand-participant-assign .dropdown-item:hover {
  background-color: #e8f0fe;
}

/* Responsive adjustments for signature tools */
@media (max-width: 768px) {
  .signature-tool-card {
    padding: 20px 15px;
  }

  .signature-tool-card i {
    font-size: 28px;
  }
}

/* ============================================
   REVIEW TOOL - DOCUMENT VERSIONS SECTION
   ============================================ */

/* Version items in Review tool */
.tool-content .version-item-review {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s ease;
}

.tool-content .version-item-review:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(2px);
}

.tool-content .version-item-review.active {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  cursor: default;
}

.tool-content .version-item-review.active:hover {
  transform: none;
}

/* Version select in Review tool */
.tool-content #review-version-select {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  width: 100%;
  transition: all 0.2s ease;
}

.tool-content #review-version-select:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Current version card in Review tool */
.tool-content #review-current-version-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tool-content #review-current-version-date {
  font-size: 10px;
  opacity: 0.85;
}

/* Versions list scrollbar */
.tool-content #review-versions-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
}

.tool-content #review-versions-list::-webkit-scrollbar {
  width: 6px;
}

.tool-content #review-versions-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.tool-content #review-versions-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.tool-content #review-versions-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a67d8 0%, #6a3f8e 100%);
}

/* ============================================
   Auto-Generated Signature Modal
   ============================================ */

/* Modal header */
.auto-sig-modal-header {
  background: #42249d;
  color: #fff;
  border-bottom: none;
}

.auto-sig-modal-header .close {
  color: #fff;
  opacity: 0.9;
}

/* Modal body */
.auto-sig-modal-body {
  padding: 20px 25px;
}

.auto-sig-subtitle {
  font-size: 13px;
  color: #6c757d;
}

.auto-sig-username {
  font-weight: 600;
  color: #333;
}

/* Selected preview box */
.auto-sig-selected-box {
  background: #f8f9fa;
  border: 2px solid #42249d;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.auto-sig-selected-label {
  font-size: 12px;
  color: #42249d;
  font-weight: 600;
}

.auto-sig-selected-img {
  max-width: 100%;
  max-height: 80px;
}

.auto-sig-selected-font {
  font-size: 11px;
  color: #6c757d;
}

/* Modal footer */
.auto-sig-modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 14px 25px;
  flex-direction: column;
  gap: 12px;
}

.auto-sig-options-row {
  gap: 10px;
}

/* Position radio section */
.auto-sig-position-group {
  gap: 14px;
}

.auto-sig-position-icon {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
  white-space: nowrap;
}

.auto-sig-pos-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  color: #495057;
}

.auto-sig-pos-label input[type="radio"] {
  accent-color: #42249d;
}

.auto-sig-pos-icon-left {
  font-size: 10px;
  transform: rotate(45deg);
}

.auto-sig-pos-icon-right {
  font-size: 10px;
  transform: rotate(-45deg);
}

/* Toggle switch */
.auto-sig-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.auto-sig-toggle-label {
  font-size: 13px;
  color: #495057;
  font-weight: 500;
}

.auto-sig-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.auto-sig-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.auto-sig-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: 0.25s;
}

.auto-sig-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#auto-sig-all-pages:checked + .auto-sig-slider {
  background: #42249d;
}

#auto-sig-all-pages:checked + .auto-sig-slider::before {
  transform: translateX(18px);
}

/* Action buttons */
.auto-sig-actions {
  gap: 8px;
}

.auto-sig-save-btn {
  background: #42249d;
  color: #fff;
  border: none;
}

.auto-sig-save-btn:hover {
  background: #351d7e;
  color: #fff;
}

.auto-sig-save-btn:disabled {
  opacity: 0.65;
}

/* Grid */
#auto-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  #auto-sig-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.auto-sig-card {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  position: relative;
}

.auto-sig-card:hover {
  border-color: #42249d;
  box-shadow: 0 4px 12px rgba(66, 36, 157, 0.15);
  transform: translateY(-1px);
}

.auto-sig-card.selected {
  border-color: #42249d;
  background: #f3eeff;
  box-shadow: 0 4px 16px rgba(66, 36, 157, 0.25);
}

.auto-sig-card.selected::after {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 6px;
  right: 8px;
  color: #42249d;
  font-size: 16px;
}

.auto-sig-card img {
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
}

.auto-sig-card .font-label {
  display: block;
  font-size: 10px;
  color: #999;
  margin-top: 6px;
}
