/* Responsive Breakpoints For Side Bar*/

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

*,
::before,
::after {
  box-sizing: border-box;
}

:root {
  --header-height: 3rem;
  --nav-width: 58px;
  --body-font: "Nunito", sans-serif;
  --normal-font-size: 14px;
}



/* Default theme */
:root {
  --color-01: #394a59;
  --color-02: #465e74;
  --color-03: #d7a769;
  --color-04: #f2f2f2;
  --color-05: #cccccc;
  --color-06: #999999;
  --nav-hover: #69849c;
  --color-danger: #e95050;
  --color-danger-deep: #a54343;
  --color-success: #3db68e;
  --color-success-deep: #308367;
  --color-warning: #d7a769;
  --color-warning-deep: #8d6837;
  --nav-active: #68a7df;
  --nav-drop: #4f708d;
  --main-bg: #f5efe8;
  --widget-bg: #f4f1ee;
  --widget-dark-bg: #979fa6;
  --color-border: #dddddd;
  --border-radious: 5px;
  --button-nutral: #dddddd;
  --button-action: #394a59;
}

body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  transition: 0.5s;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a,
* {
  text-decoration: none;
  transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul li,
strong,
span {
  color: var(--color-01);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul li,
strong,
span:hover{
  color: var(--color-02);
}

.txtcolore {
  color: var(--color-04);
}

.no_span_color:hover{
  color: var(--color-04) !important;
}

.table_style {
  text-align: center
}

sup {
  top: -1.5em;
  font-size: 10px;
}

.text-justify {
  text-align: justify !important;
}

.row>* {
  padding-right: calc(var(--bs-gutter-x) * .25);
  padding-left: calc(var(--bs-gutter-x) * .25);
}

.btn {
  padding: 7px 14px;
  font-weight: 600;
  min-width: 100px;
  text-align: center;
  font-size: 14px;
}

.btn-action {
  background-color: var(--color-01);
  color: var(--color-03);
}

.btn-action:hover,
.btn-action:focus {
  background-color: var(--color-03);
  color: var(--color-01);
}

.btn-neutral {
  background-color: var(--color-03);
  color: var(--color-01);
}

.btn-neutral:hover,
.btn-neutral:focus {
  background-color: var(--color-01);
  color: var(--color-03);
}

.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-04);
}

.btn-danger:hover {
  background-color: var(--color-danger-deep);
  color: var(--color-04);
}

.btn-success {
  background-color: var(--color-success);
  color: var(--color-04);
  border: none;
}

.btn-success:hover {
  background-color: var(--color-success-deep);
  color: var(--color-04);
  border: none;
}

.btn-warning {
  background-color: var(--color-05);
  color: var(--color-warning-deep);
  border: none;
}

.btn-warning:hover {
  background-color: var(--color-warning-deep);
  color: var(--color-04);
  border: none;
}

.btn-disabled {
  background-color: var(--color-05);
  color: var(--widget-dark-bg);
  cursor: not-allowed !important;
  border: none;
}

.btn-disabled:hover,
.btn-disabled:focus {
  background-color: var(--color-06);
  border: none;
  color: var(--color-05);
}

.btn-blank{
  background-color: var(--main-bg);
  color: var(--color-02);
  border: 1px solid var(--color-02);
}

.btn-blank:hover{
  background-color: var(--nav-drop);
  color: var(--color-03);
  border: 1px solid var(--nav-drop);
}

.zero-radius{
  border-radius: 0px;
}

select {
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

select:disabled {
  background: #f0f0f0;
}

.btn-calculate {
  background-color: #007bff;
  color: white;
  border: none;
}

.btn-cancel {
  background-color: transparent;
  border: none;
  color: #666;
  margin-top: 20px;
}

.sp-top {
  margin-top: calc(var(--bs-gutter-x) * 0.5);
}

.sp-top-dbl {
  margin-top: calc(var(--bs-gutter-x) * 1);
}

.sp-top-trpl {
  margin-top: calc(var(--bs-gutter-x) * 1.5);
}

.sp-top-qud {
  margin-top: calc(var(--bs-gutter-x) * 2);
}

/*----------------------------------------------------------------------

                    Header and Sidebar Area

-----------------------------------------------------------------------*/

.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--color-01);
  z-index: 999;
  transition: 0.5s;
}


.header_toggle {
  color: var(--color-text-light);
  font-size: 20px;
  cursor: pointer;
}

.header_toggle {
  width: 18px;
  height: 26px;
  transition-duration: 0.5s;
  position: relative;
}

.header_toggle:hover {
  cursor: pointer;
}

.header_toggle .icon-left,
.header_toggle .icon-right {
  transition-duration: 0.5s;
  position: absolute;
  height: 2px;
  top: 10px;
  width: 7px;
  background-color: var(--color-03);
}

.header_toggle .icon-left:before,
.header_toggle .icon-left:after,
.header_toggle .icon-right:before,
.header_toggle .icon-right:after {
  transition-duration: 0.5s;
  position: absolute;
  width: 7px;
  height: 2px;
  background-color: var(--color-03);
  content: "";
}

.header_toggle .icon-left:before,
.header_toggle .icon-right:before {
  top: -5px;
}

.header_toggle .icon-left:after,
.header_toggle .icon-right:after {
  top: 6px;
}

.header_toggle .icon-right {
  left: 6px;
}

.header_toggle.open .icon-left {
  background: transparent;
}

.header_toggle.open .icon-left:before {
  transform: rotateZ(45deg) scaleX(1.4) translate(1.4px, 1.4px);
}

.header_toggle.open .icon-left:after {
  transform: rotateZ(-45deg) scaleX(1.4) translate(1.4px, -1.4px);
}

.header_toggle.open .icon-right {
  background: transparent;
}

.header_toggle.open .icon-right:before {
  transform: rotateZ(-45deg) scaleX(1.4) translate(-1.4px, 1.4px);
}

.header_toggle.open .icon-right:after {
  transform: rotateZ(45deg) scaleX(1.4) translate(-1.4px, -1.4px);
}

.header_custom {
  background-color: var(--color-theme-2) !important;
  border-color: var(--color-theme-2) !important;
  color: var(--color-sidebar) !important;
}

.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.header_img img {
  width: 40px;
}

/* Support & Help Center input visibility fix */
input, textarea, select {
  border: 2px solid var(--color-03) !important;
  background-color: #fff !important;
  color: var(--color-01) !important;
  border-radius: 5px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-01) !important;
  outline: none;
}

.l-navbar {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background-color: var(--color-02);
  padding-left: 5px;
  transition: 0.3s;
  overflow: hidden;
}

.l-navbar.show {
  width: calc(var(--nav-width) + 210px);
}

.nav {
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.nav_logo,
.nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
}

.nav_link i.nav_icon {
  padding: 10px 18px 10px 18px;
  color: var(--color-03);
}

.nav_link .nav_name {
  padding: 10px 18px 10px 0px;
}

.nav_logo {
  margin-bottom: 2rem;
}

.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color);
}

.nav_logo-name {
  color: var(--white-color);
  font-weight: 700;
}

.nav_link {
  position: relative;
  color: var(--color-03);
  transition: 0.3s;
}

.nav_link:hover,
.nav_link:focus {
  color: var(--nav-hover);
  background-color: var(--color-02);
}

.nav_link:hover .nav_icon,
.nav_link:focus .nav_icon {
  color: var(--color-07)
}

.nav_link .nav_name {
  padding-left: 5px;
  color: var(--color-03);
}

/* Main nav link active state */
.nav_link.active {
  color: var(--nav-active);
  position: relative;
}

.nav_link.active .nav_icon {
  color: var(--color-03);
}

.nav_link.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--nav-active);
}

/* Dropdown-specific styles */
.nav_dropdown {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown_icon {
  font-size: 16px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.nav_dropdown.dropdown-open .dropdown_icon {
  transform: rotate(180deg);
}

/* Initially hidden submenu */
.dropdown_menu {
  max-height: 0;
  overflow: hidden;
  padding-left: 60px;
  background-color: var(--nav-drop);
  flex-direction: column;
  transition: max-height 0.3s ease;
}

.dropdown_menu.open {
  max-height: 400px;
}

/* Submenu items */
.dropdown_menu .dropdown_item {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-03);
  text-decoration: none;
}

.dropdown_menu .dropdown_item:hover,
.dropdown_menu .dropdown_item:Focus {
  color: var(--nav-active);
}

/* Show submenu when dropdown is open */
.nav_dropdown.dropdown-open+.dropdown_menu {
  display: flex;
}

/* Rotate icon */
.nav_dropdown.dropdown-open .dropdown_icon {
  transform: rotate(180deg);
}

/* Highlight active submenu item */
.dropdown_item.active {
  color: var(--nav-active);
  font-weight: bold;
}

/* Sidebar Scrollbar Styles */
.l-navbar .nav {
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 60px;
  width: calc(var(--nav-width) + 210px);
}

.l-navbar .nav_list {
  max-height: calc(100vh - 120px);
  /* Account for header and logout button */
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for Webkit browsers */
.l-navbar .nav_list::-webkit-scrollbar {
  width: 6px;
}

.l-navbar .nav_list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.l-navbar .nav_list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.l-navbar .nav_list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
.l-navbar .nav_list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Ensure logout button stays at bottom */
.l-navbar .nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.l-navbar .nav_list {
  flex: 1;
  overflow-y: auto;
}

.language-flag {
  font-size: 1.2rem;
}

.profile-header-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.profile-header-img:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.editIcon {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 29px;
  padding: 5px 8px;
  border-radius: 50%;
  font-size: 12px;
  opacity: 0.5;
  background-color: var(--color-02);
  color: var(--color-01);
  border: 1px solid var(--color-03);
  height: 30px;
  width: 30px;
}

.header-item-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  border: 3px solid var(--nav-drop);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--nav-active);
  transition: all 0.3s ease;
  cursor: pointer;
}

.header-item-link:hover {
  border: 3px solid var(--color-03);
  color: var(--color-03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-icon {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 8px;
  background-color: var(--color-danger);
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Make language-panel consistent with theme-panel */
.header-panel {
  position: absolute;
  top: 64px;
  right: 14px;
  background: var(--color-02);
  border-radius: 0px 0px 4px 4px;
  padding: 0px;
  min-width: 200px;
  z-index: 999;
}

/* Language Switcher Styles */
.lang-switcher-container {
  position: relative;
}

.lang-options-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 160px;
  z-index: 2000;
}

.lang-menu-hidden {
  display: none;
}

.lang-menu-visible {
  display: block;
}

.lang-choices-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: left;
  color: #374151;
}

.lang-option-btn:hover {
  background-color: #f8fafc;
}

.lang-option-btn.lang-selected {
  background-color: #3b82f6;
  color: #ffffff;
}

.lang-option-flag img {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-option-text {
  font-size: 14px;
  font-weight: 500;
}

.current-lang-flag img {
  border-radius: 2px;
}

.language-tick {
  display: none;
  color: var(--color-success);
  font-size: 26px;
  margin-top: 3px;
  animation: tickFadeInOut 3s ease-in-out;
}

@keyframes tickFadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  10% {
    opacity: 1;
    transform: scale(1.1);
  }

  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.language-tick.animate {
  animation: tickFadeInOut 3s ease-in-out;
}

/* Style language buttons */
.language-panel.header-panel {
  padding: 10px 10px 5px 10px;
}

.language-panel .language-btn {
  background-color: var(--nav-drop);
  color: var(--color-04);
  border-radius: 4px;
  align-items: center;
  padding: 3px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin-bottom: 5px;
}

.language-panel .language-btn:hover,
.language-panel .language-btn:focus {
  background-color: var(--nav-active);
}

.language-panel .language-btn.active {
  background-color: var(--nav-active);
  font-weight: bold;
}

/* Profile Panel Styles */
.profile-panel {
  position: absolute;
  top: 64px;
  right: 14px;
  background: var(--color-02);
  border-radius: 0px 0px 4px 4px;
  padding: 10px 10px 5px 10px;
  min-width: 200px;
  z-index: 999;
}

.profile-panel.hidden {
  display: none;
}

.profile-options {
  display: flex;
  flex-direction: column;
}

.profile-options:hover{
  color: var(--nav-active);
}

.profile-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--color-03);
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 12px;
  background-color: var(--nav-drop);
  border-radius: 4px;
  margin-bottom: 5px;
}

.profile-option:hover,
.profile-option:focus {
  background-color: var(--nav-drop);
  color: var(--nav-active);
  text-decoration: none;
}

.profile-option i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}
.profile-option span {
color: var(--color-03);
}
.profile-option:hover span {
  color:var(--nav-active)
}

.profile-option span {
  color: var(--color-03);
}

.profile-option span:hover{
  color: var(--nav-active);
} 

.profile-option i:hover{
  color: var(--nav-active);
}

.profile-divider {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--nav-drop);
}

/* Profile User Info Section */
.profile-user-info {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  background-color: var(--nav-drop);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background-color 0.3s ease;
}

.profile-user-info:hover {
  background-color: rgba(104, 167, 223, 0.1);
}

.profile-user-avatar {
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nav-active);
}

.profile-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--nav-active);
}

.profile-avatar-placeholder i {
  font-size: 24px;
  color: var(--color-02);
}

.profile-user-details {
  flex: 1;
  min-width: 0;
}

.profile-user-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-03);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-user-email {
  font-size: 12px;
  color: var(--color-04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

/* Responsive adjustments for smaller profile panels */
@media (max-width: 480px) {
  .profile-panel {
    min-width: 180px;
    right: 5px;
  }
  
  .profile-user-info {
    padding: 10px;
    gap: 10px;
  }
  
  .profile-avatar-img,
  .profile-avatar-placeholder {
    width: 40px;
    height: 40px;
  }
  
  .profile-avatar-placeholder i {
    font-size: 20px;
  }
  
  .profile-user-name {
    font-size: 14px;
  }
  
  .profile-user-email {
    font-size: 11px;
  }
}


/*------- Notofication Drawer--- */
.notification-drawer {
  position: fixed;
  top: 64px;
  right: -420px;
  width: 420px;
  height: 94%;
  background-color: var(--color-02);
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
  padding: 6px 10px 10px 10px;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.notification-drawer.active {
  right: 0;
}

.notification-drawer .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-03);
  position: relative;
  min-height: 35px;
}

.notification-drawer .drawer-header button {
  border: 0px;
  background: no-repeat;
  font-weight: 700;
  font-size: 13px;
}

.notification-drawer .drawer-header .mark-read-all {
  color: var(--color-03);
}

.notification-drawer .drawer-header .refresh-list {
  color: var(--color-success);
}

.notification-drawer .drawer-header button:hover,
.notification-drawer .drawer-header button:focus {
  color: var(--color-06);
}

.notification-tabs {
  display: flex;
  flex-direction: row;
  gap: 5px;
  background: transparent;
  border-bottom: 1px solid var(--color-04);
}

.notification-tabs .nav-link {
  border: none;
  background-color: var(--nav-drop);
  color: var(--color-04);
  padding: 8px 0;
  font-size: 13px;
  border-radius: var(--border-radious);
  width: 100%;
  /* Ensure button fills its container */
}

.notification-tabs .nav-link.active {
  background-color: var(--nav-active);
  color: #fff;
  font-weight: 500;
}

.notification-tabs .nav-link:hover {
  background-color: var(--nav-hover);
  color: #fff;
}

.notification-drawer .tab-content {
  background-color: var(--color-04);
  height: 100%;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-list li {
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid var(--color-04);
  background-color: transparent;
  color: #fff;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--color-05);
}

/* Read vs Unread states */
.notification-list li.read {
  color: var(--color-06);
}

.notification-list li.unread {
  color: var(--color-01);
  font-weight: 700;
}

.notification-list li:hover {
  background-color: var(--nav-hover);
  color: var(--color-03);
  cursor: pointer;
}

/* World Clock Header Dropdown Styles - Enhanced for 7 Timezones */
/* -------------------------------------
  1. Container: time-zone-wrap
------------------------------------- */
.time-zone-wrap {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 1050px; /* Increased width for 7 timezones without overlap */
  overflow-x: auto;
  overflow-y: hidden;
}

/* -------------------------------------
  2. Inline Pinned Timezones - Enhanced Layout
------------------------------------- */
.pinned-timezones-inline {
  display: flex;
  gap: 8px; /* Increased gap to prevent overlap */
  padding: 5px 6px; /* Optimized padding */
  min-height: 60px;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 43, 91, 0.3) transparent;
  background-color: var(--color-02);
  border-radius: 4px 0px 0px 4px;
  transition: max-width 0.4s ease-in-out, opacity 0.3s ease;
  max-width: 1020px; /* Increased for 7 timezones without overlap */
}

/* Webkit scrollbar styling */
.pinned-timezones-inline::-webkit-scrollbar {
  height: 5px; /* Slightly thicker for better visibility */
}

.pinned-timezones-inline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.pinned-timezones-inline::-webkit-scrollbar-thumb {
  background: rgba(0, 43, 91, 0.4); /* More visible */
  border-radius: 2px;
}

.pinned-timezones-inline::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 43, 91, 0.6); /* Even more visible on hover */
}

/* Scrollable indicator when more than 5 timezones */
.pinned-timezones-inline.scrollable {
  position: relative;
}

/* Base state: only arrow shown */
.clock-toggle-btn .icon-clock {
  display: none;
}

.clock-toggle-btn .icon-arrow {
  display: inline;
}

/* When collapsed: show clock icon, hide arrow */
.clock-toggle-btn.is-collapsed .icon-clock {
  display: inline;
}

.clock-toggle-btn.is-collapsed .icon-arrow {
  display: none;
}

/* Collapse the pinned clocks container */
.pinned-timezones-inline.collapsed {
  opacity: 0;
  padding: 0;
  display: none;
}

/* Responsive: Adjust for smaller screens */
@media (max-width: 768px) {
  .pinned-timezones-inline {
    display: none;
  }
}

/* -------------------------------------
  3. Enhanced Timezone Item Styles for 7 Timezones
------------------------------------- */
.pinned-timezone-inline-item {
  display: flex;
  align-items: center;
  gap: 6px; /* Adequate gap between flag and info */
  padding: 4px 6px; /* Compact but readable padding */
  background: var(--main-bg); /* Light background */
  border-radius: 4px; /* Smaller border radius for compact look */
  border: 1px solid rgba(0, 43, 91, 0.1); /* Subtle dark border */
  min-width: 125px; /* Increased minimum width to prevent overlap */
  max-width: 140px; /* Increased max width for better readability */
  flex-shrink: 0; /* Prevent shrinking */
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--color-01); /* Dark text color */
}

.pinned-timezone-inline-item:hover {
  background-color: var(--color-01);
  color: var(--color-success);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 43, 91, 0.1); /* Subtle shadow */
}

.pinned-timezone-inline-item.my-timezone {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly different for user's timezone */
  border-color: rgba(0, 43, 91, 0.2);
  color: #002B5B; /* Dark text */
}

.pinned-timezone-inline-flag {
  font-size: 0.8rem;
  min-width: 18px; /* Ensure consistent flag width */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pinned-timezone-inline-info {
  display: flex;
  flex-direction: column;
  gap: 1px; /* Minimal gap */
  min-width: 85px; /* Increased for better readability */
  max-width: 105px; /* Increased max width */
  overflow: hidden; /* Prevent text overflow */
}

.pinned-timezone-inline-info .city {
  font-size: 0.7rem; /* Readable size */
  font-weight: 600;
  color: var(--color-02); /* Dark text for better contrast */
  margin: 0;
  line-height: 1.1; /* Tight line height */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px; /* Increased max width */
}

.pinned-timezone-inline-info .time {
  font-size: 0.65rem; /* Slightly larger for readability */
  font-weight: 500;
  color: var(--color-02); /* Keep the current time color as requested */
  margin: 0;
  line-height: 1.1; /* Tight line height */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-timezone-inline-info .date {
  font-size: 0.6rem; /* Readable size */
  color: var(--color-02); /* Dark gray for better contrast on light background */
  margin: 0;
  line-height: 1.1; /* Tight line height */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments for different screen sizes - Optimized for 7 timezones */
@media (max-width: 1400px) {
  .time-zone-wrap {
    max-width: 950px; /* Adjusted for smaller screens */
  }
  
  .pinned-timezones-inline {
    max-width: 920px; /* Adjusted */
    gap: 6px;
  }
  
  .pinned-timezone-inline-item {
    min-width: 115px;
    max-width: 130px;
    padding: 4px 6px;
  }
  
  .pinned-timezone-inline-info {
    min-width: 80px;
    max-width: 95px;
  }
  
  .pinned-timezone-inline-info .city {
    font-size: 0.65rem;
    max-width: 90px;
  }
  
  .pinned-timezone-inline-info .time {
    font-size: 0.6rem;
  }
  
  .pinned-timezone-inline-info .date {
    font-size: 0.55rem;
  }
}

@media (max-width: 1200px) {
  .time-zone-wrap {
    max-width: 850px; /* Adjusted for medium screens */
  }
  
  .pinned-timezones-inline {
    max-width: 820px; /* Adjusted */
    gap: 5px;
  }
  
  .pinned-timezone-inline-item {
    min-width: 105px;
    max-width: 120px;
    padding: 3px 5px;
  }
  
  .pinned-timezone-inline-info {
    min-width: 75px;
    max-width: 90px;
  }
  
  .pinned-timezone-inline-info .city {
    font-size: 0.6rem;
    max-width: 85px;
  }
  
  .pinned-timezone-inline-info .time {
    font-size: 0.55rem;
  }
  
  .pinned-timezone-inline-info .date {
    font-size: 0.5rem;
  }
}

/* Add new breakpoint for better 7-timezone handling */
@media (max-width: 992px) {
  .time-zone-wrap {
    max-width: 750px;
  }
  
  .pinned-timezones-inline {
    max-width: 720px;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 5px;
  }
  
  .pinned-timezone-inline-item {
    min-width: 95px;
    max-width: 110px;
    padding: 3px 4px;
  }
  
  .pinned-timezone-inline-info {
    min-width: 70px;
    max-width: 85px;
  }
  
  .pinned-timezone-inline-info .city {
    font-size: 0.55rem;
    max-width: 80px;
  }
  
  .pinned-timezone-inline-info .time {
    font-size: 0.5rem;
  }
  
  .pinned-timezone-inline-info .date {
    font-size: 0.45rem;
  }
}

/* Loading and error states */
.timezone-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  font-style: italic;
  font-size: 0.8rem;
}

.timezone-error {
  color: var(--color-danger);
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
}

/* Flag icons styling for pinned timezones */
.pinned-timezone-inline-flag .fi {
  width: 1.2em;
  height: auto;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0; /* Prevent flag from shrinking */
}

.pinned-timezone-inline-flag .timezone-flag {
  font-size: 1em;
  line-height: 1;
  flex-shrink: 0; /* Prevent flag from shrinking */
}

/* Fallback for browsers that don't support flag detection */
.pinned-timezone-inline-flag .timezone-flag[data-country]:empty::before {
  content: attr(data-country);
  font-size: 0.7rem;
  background: var(--color-03);
  color: var(--color-01);
  padding: 2px 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Fallback flag styling */
.pinned-timezone-inline-flag .fallback-flag {
  background: var(--color-03);
  color: var(--color-01);
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.6rem;
  font-weight: bold;
  flex-shrink: 0;
  min-width: 18px;
  text-align: center;
}

/* Container styling */
.pinned-timezone-inline-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scroll hint animation */
@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.scroll-hint {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(193, 154, 107, 0.5);
  font-size: 12px;
  pointer-events: none;
  animation: fadeInOut 2s infinite;
}

/* -------------------------------------
  4. Enhanced Clock & Settings Button Stack for 7 Timezones
------------------------------------- */
.clock-settings-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  background-color: var(--color-02);
  border-radius: 0px 6px 6px 0px;
  margin-left: -5px;
  z-index: 10;
  padding: 0px;
}

.collapsed-btn.clock-settings-toggle {
  border-radius: 4px;
}

/* Enhanced clock toggle button for better 7-timezone experience */
.clock-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(193, 154, 107, 0.3);
  border-radius: 6px;
  color: var(--nav-active);
  transition: all 0.3s ease;
  font-size: 18px;
  cursor: pointer;
}

.clock-toggle-btn:hover {
  background: rgba(193, 154, 107, 0.2);
  border-color: rgba(193, 154, 107, 0.5);
  color: var(--color-03);
}

.clock-toggle-btn.is-collapsed .icon-arrow {
  transform: rotate(180deg);
}

.icon-arrow {
  transition: transform 0.3s ease;
}

/* Clock settings button */
.clock-settings-btn {
  background: none;
  border: none;
  color: var(--nav-active);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.clock-settings-btn:hover,
.clock-settings-btn:focus {
  color: var(--color-03);
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Shared button styling for both buttons */
.clock-settings-toggle button {
  background: none;
  border: none;
  color: var(--nav-active);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clock-settings-toggle button:hover,
.clock-settings-toggle button:focus {
  color: var(--color-03);
  background-color: none;
}

/* -------------------------------------
  5. World Clock Dropdown (for Mobile)
------------------------------------- */
.world-clock-dropdown {
  position: relative;
}

.world-clock-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.world-clock-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.world-clock-header-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 0;
  width: 100vw;
  max-width: none;
  z-index: 1000;
  margin-top: 0;
  margin-left: calc(-100vw + 100%);
  overflow: hidden;
}

.world-clock-header-panel.hidden {
  display: none;
}

.world-clock-header-content {
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.pinned-timezones-header-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 80px;
  align-items: center;
  justify-content: flex-start;
}

.pinned-timezone-header-item {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pinned-timezone-header-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pinned-timezone-header-flag {
  font-size: 1.2rem;
}

.pinned-timezone-header-info {
  flex: 1;
}

.pinned-timezone-header-info .city {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
  line-height: 1.2;
}

.pinned-timezone-header-info .time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #212529;
  margin: 2px 0 0 0;
  line-height: 1;
}


/* Container for the vertical button group */
.clock-settings-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0px;
  background-color: var(--color-02);
  border-radius: 0px 4px 4px 0px;
}

.collapsed-btn.clock-settings-toggle {
  border-radius: 4px;
}

/* Shared button styling */
.clock-settings-toggle button {
  background: none;
  border: none;
  color: var(--nav-active);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clock-settings-toggle button:hover,
.clock-settings-toggle button:focus {
  color: var(--color-03);
  background-color: none;
}

/* -------------------------------------
         Widget Selector
------------------------------------- */
.widget-selector {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - var(--nav-width));
  background-color: var(--color-05);
  margin-left: var(--nav-width);
}

/*----------------------------------------------------------------------

                          General From Styles

-----------------------------------------------------------------------*/

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
.form-control,
.form-select,
.form-floating>.form-control,
.form-label,
.form-floating>.form-select {
  color: var(--color-01);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(193, 154, 107, 0.15);
  outline: none;
  transition: all 0.3s ease;
  background-color: var(--color-04);
  border: 1px solid var(--color-05);
}

.form-floating label {
  background-color: transparent;
  color: var(--color-06);
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
  background-color: transparent;
}

.form-floating select {
  color: var(--color-06);
}

.form-floating .toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--color-06);
  z-index: 2;
}

.form-floating .toggle-password i {
  font-size: 1rem;
}

.main-content {
  background-color: #e3e3e3;
  min-height: 90vh;
  padding-bottom: 50px;
  padding-top: 1px;
}

/*------- Common Widget Styles ------------*/

.sec-title-main.title-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-05);
}

.sec-title-main h2 {
  font-size: 25px;
  margin: 0px;
  padding: 5px;
  border-radius: 4px 4px 0px 0px;
}

.sec-title-main.title-nutral h2 {
  border-bottom: 1px solid var(--color-03);
  background-color: var(--color-03);
  color: var(--color-01);
}

.sec-title-main.title-active h2 {
  background-color: var(--color-01);
  color: var(--color-03);
}

.sec-title-main.title-inactive h2 {
  background-color: var(--color-theme-5);
  color: var(--color-06);
}

.sec-title.title-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-05);
}

.sec-title h2 {
  font-size: 25px;
  margin: 0px;
  padding: 5px;
  border-radius: 4px 4px 0px 0px;
}

.sec-title.title-nutral h2 {
  border-bottom: 1px solid var(--color-03);
  background-color: var(--color-03);
  color: var(--color-01);
}

.sec-title.title-active h2 {
  background-color: var(--color-01);
  color: var(--color-03);
}

.sec-title.title-inactive h2 {
  background-color: var(--color-theme-5);
  color: var(--color-06);
}

.sub-title {
  font-size: 22px;
  color: var(--color-01);
}

.subtitle-underline {
  border-bottom: 1px solid var(--color-05);
}

/*------- Common Widget Styles ------------*/
.widget {
  border-radius: 5px;
  overflow: hidden;
  padding-right: 0px;
  padding-left: 0px;
}

.widget.widget-default {
  background-color: var(--color-04);
  color: var(--color-02);
}

.widget .widget-body {
  padding: calc(var(--bs-gutter-x) * 1);
  padding-bottom: 30px;
}

.widget.widget-default .widget-title {
  background-color: var(--color-03);
}

.widget .widget-title {
  position: relative;
}

.widget .widget-title.with-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.widget .widget-title h5 {
  padding: 7px 10px;
  font-size: 18px;
  margin-bottom: 0px;
}

.widget-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0px 10px;
  position: relative;
  padding-right: 30px;
}

.widget-filters .single-filter {
  display: flex;
  align-items: center;
}

.widget-filters .single-filter .toggle-label {
  margin-right: 10px;
}

/* Laptop screen media query for widget-filters */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .widget-filters {
    padding-right: 0;
    gap: 15px;
  }
}

/*------- Search Results Styles ------------*/

.unified-controls-container .btn {
  border: 1px solid var(--color-06);
  color: var(--color-02);
  background: var(--color-03);
  font-weight: 500;
  min-width: 100px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  margin: 0.1rem;
  flex: 1;
  max-width: 120px;
  transition: all 0.3s ease;
}

.unified-controls-container .btn:hover {
  background: var(--color-button-bg-hover-1);
  border-color: var(--color-theme-3);
  color: var(--color-text-dark);
  transform: translateY(-1px);
}

.unified-controls-container .btn i {
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

/* Explanation text styling */
.unified-controls-container .text-white-50 {
  opacity: 0.9;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-text-primary) !important;
}

/* Responsive adjustments for unified controls */
@media (max-width: 1200px) {
  .unified-controls-container .btn {
    min-width: 45px;
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    flex: 1;
    max-width: 60px;
  }

  .unified-controls-container .btn span {
    display: none;
  }

  .unified-controls-container .btn i {
    margin-right: 0;
    font-size: 0.9rem;
  }

  .unified-controls-container .text-white-50 {
    font-size: 0.7rem;
    margin-bottom: 0.5rem !important;
  }
}

/* ============================== */
/* A to Z Toggle */
/* ============================== */
.widget-filters .letter-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  height: 30px;
  width: 61px;
  padding: 4px 7px;
  cursor: pointer;
}

.widget-filters .letter-toggle:hover,
.widget-filters .letter-toggle:focus {
  border: 1px solid var(--color-01);
  background-color: var(--color-01);
  color: var(--color-border);
}

/* ============================== */
/* Language Toggle (.ln-toggle) */
/* ============================== */
.widget-filters .ln-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  height: 30px;
  width: 140px;
}

.widget-filters .ln-toggle input {
  display: none;
}

.widget-filters .ln-toggle label,
.widget-filters .btn {
  flex: 1;
  width: 46px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.3s;
  font-weight: 500;
  min-width: 0px;
}

.widget-filters .ln-toggle span {
  position: absolute;
  top: 2px;
  height: 24px;
  width: 42px;
  background: #ddd;
  border-radius: 12px;
  z-index: 1;
  transition: left 0.2s ease, background 0.2s ease;
}

.widget-filters .ln-toggle input#lang-en:checked~span {
  left: 2px;
  background: var(--color-01);
}

.widget-filters .ln-toggle input#lang-fr:checked~span {
  left: 48px;
  background: var(--color-01);
}

.widget-filters .ln-toggle input#lang-all:checked~span {
  left: 94px;
  background: var(--color-01);
}

.widget-filters .ln-toggle input#lang-en:checked+label,
.widget-filters .ln-toggle input#lang-fr:checked+label,
.widget-filters .ln-toggle input#lang-all:checked+label {
  color: #fff;
}

.single-filter .btn {
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  width: 46px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.3s;
  font-weight: 500;
}

.single-filter .btn i {
  color: var(--color-01);
}

.single-filter .btn:hover {
  border: 1px solid var(--color-01);
  background-color: var(--color-01);
}

.single-filter .btn:hover i {
  color: var(--color-05);
}

.title-with-action .single-filter .btn {
  width: 110px;
}

.title-with-action .double-filter .btn {
  width: 160px !important;
}

/* ============================== */
/* File Type Toggle (.typ-toggle) */
/* ============================== */
.widget-filters .typ-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  height: 30px;
  width: 185px;
}

.widget-filters .typ-toggle input {
  display: none;
}

.widget-filters .typ-toggle label,
.widget-filters .btn {
  flex: 1;
  width: 46px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.3s;
  font-weight: 500;
}

.widget-filters .typ-toggle span {
  position: absolute;
  top: 2px;
  height: 24px;
  width: 42px;
  background: #ddd;
  border-radius: 12px;
  z-index: 1;
  transition: left 0.2s ease, background 0.2s ease;
}

/* File Type Toggle CSS - Similar to Language Toggle */
.widget-filters .typ-toggle input#type-xml:checked~span {
  left: 2px;
  background: var(--color-01);
}

.widget-filters .typ-toggle input#type-pdf:checked~span {
  left: 48px;
  background: var(--color-01);
}

.widget-filters .typ-toggle input#type-html:checked~span {
  left: 94px;
  background: var(--color-01);
}

.widget-filters .typ-toggle input#type-all:checked~span {
  left: 140px;
  background: var(--color-01);
}

.widget-filters .typ-toggle input#type-xml:checked+label,
.widget-filters .typ-toggle input#type-pdf:checked+label,
.widget-filters .typ-toggle input#type-html:checked+label,
.widget-filters .typ-toggle input#type-all:checked+label {
  color: #fff;
}

/* ============================== */
/* Exam File Type Toggle (.ex-toggle) */
/* ============================== */
.widget-filters .ex-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  height: 30px;
  width: 90px;
}

.widget-filters .ex-toggle input {
  display: none;
}

.widget-filters .ex-toggle label {
  flex: 1;
  width: 44px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.2s;
  font-weight: 500;
}

.widget-filters .ex-toggle span {
  position: absolute;
  top: 2px;
  height: 24px;
  width: 42px;
  left: 2px;
  background: #ddd;
  border-radius: 12px;
  z-index: 1;
  transition: left 0.2s ease, background 0.2s ease;
}

.widget-filters .ex-toggle input#irb-only:checked~span {
  left: 2px;
  background: var(--color-01);
}

.widget-filters .ex-toggle input#irb-all:checked~span {
  left: 44px;
  background: var(--color-01);
}

.widget-filters .ex-toggle input#irb-only:checked+label,
.widget-filters .ex-toggle input#irb-all:checked+label {
  color: #fff;
}

/* ============================== */
/* View Toggle (.view-toggle) */
/* ============================== */

.widget-filters .view-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  height: 30px;
  width: 90px;
}

.widget-filters .view-toggle input {
  display: none;
}

.widget-filters .view-toggle label {
  flex: 1;
  width: 44px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.2s;
  font-weight: 500;
}

.widget-filters .view-toggle span {
  position: absolute;
  top: 2px;
  height: 24px;
  width: 42px;
  left: 2px;
  background: var(--color-05);
  border-radius: 12px;
  z-index: 1;
  transition: left 0.2s ease, background 0.2s ease;
}

.widget-filters .view-toggle input#view-grid:checked~span {
  left: 2px;
  background: var(--color-01);
}

.widget-filters .view-toggle input#view-list:checked~span {
  left: 44px;
  background: var(--color-01);
}

.widget-filters .view-toggle input#view-grid:checked+label,
.widget-filters .view-toggle input#view-list:checked+label {
  color: var(--color-04);
}

/*------- Extended Widget Components Styles ------------*/
.widget-filters-extended {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.widget-filters-extended.active {
  max-height: 300px;
  opacity: 1;
}

/*------- Dark Widget Styles ------------*/

.widget.widget-dark {
  background-color: var(--widget-dark-bg);
}

.widget.widget-dark .widget-title {
  background-color: var(--color-01);
}

.widget.widget-dark .widget-title h5 {
  color: var(--color-03);
}

/*------- Dark Widget Styles End ------------*/

/*------- Blank Widget Styles ------------*/

.widget.widget-blank {
  background-color: var(--widget-bg);
}

.widget.widget-blank .widget-title {
  background-color: var(--widget-bg);
}

.widget.widget-blank .widget-title h5 {
  color: var(--color-01);
}

/*------- Dark Widget Styles End ------------*/

/*------- Widget Filters Styles ------------*/
.widget.widget-blank .widget-title.with-filters {
  background-color: var(--color-05);
}

.widget-filters-extended {
  position: absolute;
  top: 40px;
  left: 0px;
}

.widget-filters-extended .act-pagination {
  display: flex;
  padding: 0px 10px;
  margin: 0px;
  background-color: var(--color-border);
  border-radius: 16px;
}

.widget-filters-extended .act-pagination li {
  list-style: none;
}

.widget-filters-extended .act-pagination li a {
  padding: 5px;
  font-size: 14px;
  background-color: var(--color-border);
  color: var(--color-01);
}

.widget-filters-extended .act-pagination li a.disabled {
  background-color: var(--color-04);
  color: var(--color-05);
}

.widget-filters-extended .act-pagination li a:hover,
.widget-filters-extended .act-pagination li a:focus {
  background-color: var(--color-05);
  color: var(--color-03);
}

.widget-filters-extended .act-pagination li a.disabled:hover,
.widget-filters-extended .act-pagination li a.disabled:hover {
  background-color: var(--color-04);
  color: var(--color-05);
}

/*------- Widget Filters Styles End ------------*/

/*------- Home Tiles ------------*/
.tile-warpper .tile {
  background-color: var(--color-04);
}

.tile-warpper .tile-nutral {
  background-color: var(--color-03);
}

.tile-warpper .tile-action {
  background-color: var(--color-01);
}

.tile-warpper .tile-inactive {
  background-color: var(--color-04);
}

.tile-warpper .tile-body {
  border-radius: var(--border-radious);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease-in-out;
}

.tile-body.tile-vertical {
  flex-direction: column;
  text-align: center;
}

.tile-body.tile-vertical .tile-icon {
  margin: 0 0 15px 0;
}

.tile-body.tile-vertical .tile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-body.tile-vertical .tile-title,
.tile-body.tile-vertical .tile-desc {
  text-align: center;
}

.tile-warpper .tile-body:hover {
  transform: translateY(-4px);
}

.tile-warpper .tile-body .tile-icon {
  font-size: 30px;
  padding: 18px;
  border-radius: 10px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
}

.tile-warpper .tile-body.tile .tile-icon {
  color: var(--color-01);
}

.tile-warpper .tile-body.tile-nutral .tile-icon {
  color: var(--color-02);
}

.tile-warpper .tile-body.tile-action .tile-icon {
  color: var(--color-03);
}

.tile-warpper .tile-body.tile-inactive .tile-icon {
  color: var(--color-06);
}

.tile-warpper .tile-body.tile .tile-title {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  color: var(--color-01);
}

.tile-warpper .tile-body.tile-nutral .tile-title {
  color: var(--color-01);
}

.tile-warpper .tile-body.tile-action .tile-title {
  color: var(--color-03);
}

.tile-warpper .tile-body.tile-inactive .tile-title {
  color: var(--color-06);
}


.tile-desc {
  font-size: 14px;
  color: var(--color-06);
  margin: 4px 0 12px;
}

.tile-warpper .tile-body.tile-nutral .tile-desc {
  color: var(--color-01);
}

.tile-warpper .tile-body.tile-action .tile-desc {
  color: var(--color-03);
}

.tile-warpper .tile-body.tile-inactive .tile-desc {
  color: var(--color-06);
}

.tile-warpper.tile-progressive .tile-body {
  padding: 10px;
}

.tile-warpper.tile-progressive .tile-body .tile-icon {
  display: flex;
  flex-direction: column;
  background-color: var(--color-02);
  color: var(--color-03);
}

.tile-warpper.tile-progressive .tile-body .tile-icon .step-name {
  font-size: 14px;
  text-align: center;
}

.tile-warpper.tile-progressive .tile-body .tile-icon .step-number {
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1600px) {
  .tile-warpper .tile-body {
    flex-direction: column;
    text-align: center;
  }

  .tile-warpper .tile-body .tile-icon {
    margin: 0 0 15px 0;
  }

  .tile-warpper .tile-body .tile-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .tile-warpper .tile-body .tile-title,
  .tile-warpper .tile-body .tile-desc {
    text-align: center;
  }
}

/*------- Home Tiles End------------*/

/*------- Act Directory------------*/
.toggle-tile-body .toggle-tile-content {
  border-radius: var(--border-radious);
  background-color: var(--color-04);
  border: 1px solid var(--color-05);
  padding: 10px;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  overflow: visible;
  min-height: auto;
}

.toggle-tile-body .toggle-tile-content:hover {
  border-radius: var(--border-radious);
  background-color: var(--color-05);
  border: 1px solid var(--color-05);
}

.toggle-tile-body.grid .toggle-tile-content {
  min-height: 200px;
}

.toggle-tile-body .toggle-tile-content:hover {
  transform: translateY(-4px);
}

.toggle-tile-content h4 {
  color: var(--color-01);
  font-size: 18px;
}

.toggle-tile-content h4 i {
  color: var(--color-03);
}

.toggle-tile-body .toggle-tile-content .act-data {
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--color-06);
  padding-left: 20px;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.toggle-tile-body.list .toggle-tile-content .act-data {
  display: flex;
  flex-wrap: wrap;
}

.toggle-tile-body.grid .toggle-tile-content .act-data {
  display: block;
}

.toggle-tile-body .toggle-tile-content .act-data li {
  white-space: normal;
  line-height: 1.5;
}

.toggle-tile-body .toggle-tile-content .act-data .view-button a {
  color: var(--color-03);
  font-weight: bold;
  text-align: right;

}

/*------- Act Directory End------------*/

/*-------- Activity Log widget ------*/

.activity-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background-color: var(--widget-bg);
  border-left: 4px solid var(--color-03);
  border-radius: var(--border-radious);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.activity-icon {
  font-size: 16px;
  color: var(--color-03);
  margin-top: 4px;
  min-width: 20px;
  text-align: center;
}

.activity-text {
  font-size: 14px;
  color: var(--color-01);
  line-height: 1.4;
}

.activity-time {
  font-size: 12px;
  color: var(--color-06);
  display: inline-block;
  margin-top: 2px;
}

/*------- Activity log widget end------*/

/*------- Events and news widget------*/

.juris-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.news-item {
  padding: 10px;
  background-color: var(--widget-bg);
  border-left: 4px solid var(--color-01);
  border-radius: var(--border-radious);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-01);
  margin-bottom: 4px;
}

.news-content {
  font-size: 13px;
  color: var(--color-06);
  line-height: 1.4;
}

/*------- Events and news widget------*/

.bg_custom a {
  color: var(--color-ref);
}

.bg_custom a:hover {
  color: var(--color-text-dark);
}

.bt_head_custom {
  margin-bottom: 0 !important;
}

.appx_section {
  background-color: var(--color-widget-bg) !important;
  color: var(--color-text-dark) !important;
  border-color: var(--color-theme-3) !important;
}

.custom_table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}

.ht_custom {
  height: calc(41vh) !important;
}

.copy {
  margin-right: 10px;
}

.gap_save {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Profile Header with Background Image */
.profile-header {
  background-size: cover;
  background-position: center;
  height: 150px;
  /* Adjust height as needed */
  position: relative;
  border-radius: 8px 8px 0 0;
}

.team_pic {
  width: 13%;
}

/* Profile Picture Container */
.profile-picture-container {
  position: absolute;
  bottom: -50px;
  /* Position the profile picture overlapping the header */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  /* Background for placeholder images */
}

/* Profile Picture */
.profile-picture-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gap_top {
  margin-top: 20px;
}

.gap_top_profile {
  margin-top: 40px;
}

.gap_right_content {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: 80px;
}

.gap_right_home {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: 58px;
}

.main-content.sidebar-open {
  padding-right: 0;
}

.main-content .sec-title-main {
  margin-top: 30px;
}

.main-content .sec-title-main .titleAlignment{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-05);
}

.main-content .sec-title-main .titleAlignment a{
  margin-bottom: 3px;
}

.main-content .sec-title {
  margin-top: 30px;
}

.main-content .sec-title .titleAlignment{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-05);
}

.main-content .sec-title .titleAlignment a{
  margin-bottom: 3px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.pagination-btn {
  margin: 10px 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.page-select {
  padding: 8px;
  min-width: 150px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.home-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.home-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.home-link::before {
  font-size: 18px;
  color: inherit;
  transition: color 0.3s ease;
}

.home-link:hover::before {
  color: #fff;
}

.user-profile-btn {
  background-color: var(--color-theme-1) !important;
  border-color: var(--color-theme-1) !important;
}

#page_top {
  border-radius: 0px;
  border: 1px solid var(--color-sidebar-opacity);
  background-color: var(--color-sidebar-opacity);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/*------------------------------------------

              Workspace styles

------------------------------------------*/



/* Droppable Area */
.droppable-area {
  height: calc(44vh);
  background-color: #f4f4f4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow-y: auto;
  /* border: 1px solid #bbb; */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nested-droppable {
  flex: 0 0 auto;
  min-height: 150px;
  background-color: white;
  border-radius: 6px;
  margin-bottom: 15px;
}

.nested-droppable .pinned-popup {
  background-color: var(--color-04);
  border-radius: var(--border-radious);
  overflow: hidden;
}

.nested-droppable .pinned-popup .popup-header {
  background-color: var(--color-05);
  padding: 3px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nested-droppable .pinned-popup .popup-header .section-path {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-04);
}

.nested-droppable .pinned-popup .popup-header .popup-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0px 10px;
  position: relative;
}

.popup-content .popup-content-title {
  color: var(--color-01);
  border-bottom: 1px solid var(--color-05);
}

.popup-content .section-meta {
  background-color: #fff;
  padding: 5px;
  border-radius: var(--border-radious);
  font-size: 12px;
}

/* Editor Container */
.editor-container {
  flex: 1;
}

/* Styling for clickable references */
.ref {
  color: var(--color-ref);
  /* Link color */
  text-decoration: underline;
  /* Underline effect */
  cursor: pointer;
  /* Pointer cursor for links */
}

/* Active hover effect */
.ref:hover {
  color: var(--color-text-dark);
  /* Darker blue on hover */
}

custom-ref.unmatched-ref {
  color: var(--color-ref);
  /* Link color */
  text-decoration: underline;
  /* Underline effect */
  cursor: pointer;
  /* Pointer cursor for links */
}

/* Active hover effect */
custom-ref.unmatched-ref:hover {
  color: var(--color-text-dark);
  /* Darker blue on hover */
}

/* Popup Styling */
.popup {
  display: none;
  position: absolute;
  z-index: 10;
  width: 300px;
  height: auto;
  background-color: var(--color-border);
  padding: 10px;
  border: 1px solid #bbb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  box-sizing: border-box;
  min-width: 200px;
  min-height: 100px;
  overflow: auto;
  resize: both;
}

/* Popup title section */
.popup-title {
  cursor: grab;
  padding: 8px;
  background-color: var(--color-theme-3);
  color: var(--color-text-light);
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Popup and Cards */
/* .popup-title {
  background-color: var(--color-sidebar-opacity);
  color: var(--color-text-dark);
} */

/* Close button */
.close {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* Title text takes available space */
.title-text {
  flex-grow: 1;
  font-weight: bold;
}

/* Arrow toggle styling */
.arrow {
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
}

.arrow:hover,
.arrow:focus {
  color: #000;
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .main-content.sidebar-open {
    margin-left: 0;
  }

  .col-lg-8,
  .col-lg-4 {
    padding: 1rem;
  }
}

/* Notification Styling */
.notification {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  color: white;
  z-index: 1050;
  animation: slideIn 0.3s ease-out;
}

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

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

/* Styles for the input field */

/* Container Styling */
#keyword-search {
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#keyword-search .card-body {
  padding: 20px;
}

/* Top Navigation Styling */
#keyword-search .top-nav {
  margin-bottom: 15px;
}

#keyword-search .top-nav .home-link {
  font-size: 14px;
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: bold;
}

#keyword-search .top-nav .home-link:hover {
  text-decoration: underline;
}

/* Form Styling */
#search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#search-form .form-control {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#search-form .form-check {
  display: flex;
  align-items: center;
}

#search-form .form-check-label {
  margin-left: 5px;
  font-size: 14px;
  color: #555;
}

#search-form .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
}

#search-form .btn-custom {
  background-color: var(--color-theme-2);
  border-color: var(--color-theme-2);
  color: var(--color-sidebar);
}

#advanced-search-btn {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-dark);
  text-decoration: none;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

#advanced-search-btn:hover {
  text-decoration: underline;
}

#basic-search-btn {
  color: var(--color-text-dark);
}

/* Advanced Search Form */
.advanced-search-container {
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.advanced-search-container.d-none {
  display: none;
}

#advanced-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#advanced-search-form .form-group {
  flex: 1;
  min-width: 250px;
}

#advanced-search-form .form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
  display: block;
}

#advanced-search-form .form-group .form-control {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#advanced-search-form .btn-primary {
  margin-top: 15px;
  padding: 10px 20px;
  /* Optional: Adjust padding if needed */
  font-size: 14px;
  /* Optional: Keep font size consistent */
  border-radius: 4px;
  text-align: center;
  /* Ensure text is centered */
  align-self: flex-start;
  /* Align button to the start of the form */
}

/*select 2 custom CSS */

.select2-container .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px);
  /* Matches Bootstrap's input height */
  padding: 0.375rem 0.75rem;
  /* Matches Bootstrap padding */
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ced4da;
  /* Matches Bootstrap border */
  border-radius: 0.375rem;
  /* Matches Bootstrap border radius */
}

/* Align Select2 with Bootstrap styles */
.select2-container .select2-selection--multiple {
  border: 1px solid #ced4da;
  /* Match Bootstrap input borders */
  border-radius: 0.375rem;
  /* Match Bootstrap border radius */
  padding: 0.375rem 0.75rem;
  /* Adjust padding for better look */
}
.select2-container .select2-selection--multiple:focus {
  border: solid #394a59 1px;
  box-shadow: 0 0 0 0.2rem rgba(57, 74, 89, 0.25);
}
.select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: #ffffff;
  /* Bootstrap primary color */
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  margin: 0 0.125rem 0.125rem 0;
}

.select2-container .select2-selection--multiple .select2-selection_choice_remove {
  color: #000000 !important;
}

.select2-container .select2-selection--multiple .select2-selection_choice_remove:focus {
  color: #0d6efd !important;
}

.select2-container .select2-selection--multiple .select2-selection_choice_remove:hover {
  color: #000000 !important;
}

.select2-container .select2-selection--multiple .select2-selection__clear {
  display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background-color: #0d6efd;
  /* Slightly darker Bootstrap primary color */
  color: white;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: #e9ecef;
  /* Match Bootstrap hover styles */
  color: #495057;
  /* Text color */
}

.select2-container .select2-search--inline .select2-search__field {
  margin-left: 0.5rem;
}

.select2-selection_choice_display {
  padding-left: 5px !important;
}

.search-results-container {
  margin: 0 auto;
  padding-top: 20px;
  animation: fadeIn 0.5s ease-out;
}

.sticky-search-section .card {
  width: 100%;
  margin: auto;
  line-height: inherit;
  height: auto;
  text-align: inherit;
}

.act-results {
  padding: 15px;
}

.search-result {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.search-result:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.result-title {
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.result-content h4 {
  color: var(--color-text-dark);
  margin: 10px 0;
}

.highlight {
  background-color: var(--color-border);
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--color-theme-3);
}

/* Loading animation container */
.loading-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-container.active {
  display: flex;
}

/* Animation elements */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

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

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

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

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.act-container {
  padding: 2rem;
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
}

/* Add animation delay for each act container */
.act-container:nth-child(1) {
  animation-delay: 0.1s;
}

.act-container:nth-child(2) {
  animation-delay: 0.2s;
}

.act-container:nth-child(3) {
  animation-delay: 0.3s;
}

.act-container:nth-child(4) {
  animation-delay: 0.4s;
}

.act-container:nth-child(5) {
  animation-delay: 0.5s;
}

/* Content body styling */
.popup_content_body {
  width: 100% !important;
  padding: 10px !important;
  /* Padding for body content */
  max-height: 200px !important;
  /* Limit height for content */
  overflow-y: auto !important;
  /* Enable vertical scrolling if needed */
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 56px;
  left: -280px;
  width: 280px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1030;
  padding: 1rem;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

/* TinyMCE specific styles */
.tox-tinymce {
  border-radius: 6px !important;
  border: 1px solid #ddd !important;
}

.tox-tinymce-aux .tox-toolbar__overflow {
  display: none;
}

/* Template Items */
.template-item {
  padding: 0.75rem;
  margin: 0.5rem 0;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.template-item:hover {
  transform: translateX(5px);
  background-color: #e9ecef;
}

.save-button {
  padding: 8px 16px;
  background-color: var(--color-content-bg-opacity) !important;
  color: var(--color-theme-4) !important;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  margin-left: auto;
  display: inline-block;
}

.save-button:hover {
  background-color: var(--color-button-bg-hover-1) !important;
  border-color: var(--color-button-bg-hover-1) !important;
  color: var(--color-button-hover) !important;
}

.list-group-item.active {
  background-color: var(--color-theme-2) !important;
  border-color: var(--color-theme-2) !important;
}

/* Buttons */

.btn-custom {
  background-color: var(--nav-active) !important;
  border-color: var(--nav-drop) !important;
  color: var(--nav-drop) !important;
  max-width: 100px;
}

.btn-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55) !important;
}

.btn-warning {
  background-color: var(--color-warning) !important;
  border-color: var(--color-warning-deep) !important;
  color: var(--color-warning-deep) !important;
  max-width: 100px;
}

.btn-warning i {
  color: var(--color-warning-deep) !important;
}

.btn-warning:hover {
  background-color: var(--color-warning-deep) !important;
  color: var(--color-warning) !important;
  border-color: var(--color-danger-deep) !important;
}

.btn-warning:hover i {
  color: var(--color-warning) !important;
}

.btn-save {
  background-color: var(--color-success) !important;
  border: 1px solid var(--color-success-deep) !important;
  color: var(--color-success-deep) !important;
}

.btn-save i {
  color: var(--color-success-deep) !important;
}

.btn-save:hover {
  background-color: var(--color-success-deep) !important;
  border-color: var(--color-success) !important;
  color: var(--color-success) !important;
}

.btn-save:hover i {
  color: var(--color-success) !important;
}

.btn-fetch {
  background-color: var(--color-table-header-opacity) !important;
  border-color: var(--color-table-header-opacity) !important;
}

.btn-fetch:hover {
  background-color: var(--color-button-bg-hover-2) !important;
}

.btn-clear {
  background-color: var(--color-danger-opacity) !important;
  border-color: var(--color-danger-opacity) !important;
}

.btn-clear:hover {
  background-color: var(--color-button-danger-hover) !important;
}

.btn-right {
  margin-right: 10px;
}

.btn-custom:hover {
  background-color: var(--color-button-bg-hover-1) !important;
  border-color: var(--color-button-bg-hover-1) !important;
  color: var(--color-button-hover) !important;
}

.btn-custom2 {
  background-color: transparent !important;
  border-color: var(--color-theme-4) !important;
  color: var(--color-theme-4) !important;
}

.btn-custom2:hover {
  background-color: var(--color-button-bg-hover-1) !important;
  border-color: var(--color-button-bg-hover-1) !important;
  color: var(--color-button-hover) !important;
}

.view-mode-btn.active-view {
  background-color: var(--color-button-bg) !important;
  color: var(--color-button) !important;
  border-color: var(--color-button-border) !important;
}

.btn-header {
  color: var(--color-theme-4);
}

.home-title {
  font-family: 'Jost', sans-serif;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.backButton{
  color: var(--color-03);
}

.backButton:hover{
  color: var(--color-01);
}

/* Theme selection buttons in settings panel */
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.theme-btn {
  padding: 8px 15px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--color-content-bg);
  color: var(--color-text-primary);
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-btn.active {
  border-color: var(--color-theme-2);
  background-color: var(--color-theme-2-opacity);
  color: var(--color-text-light);
}



.body-pd {
  padding-left: calc(var(--nav-width) + 200px);
}

.height-100 {
  height: 100vh;
}

@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width) + 2rem);
  }

  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
  }

  .header_img {
    width: 40px;
    height: 40px;
  }

  .header_img img {
    width: 45px;
  }
}

@media screen and (max-width: 1370px) {
  #save-pinned-popups {
    width: 150px;
  }

  #fetch-pinned-popups {
    margin-top: 10px;
    width: 150px;
  }

  #clear-pinned-popups {
    margin-left: 10px;
    padding: 5px 20px 5px 20px;
  }
}

.sticky-container {
  position: sticky;
  top: 80px;
}

.logo {
  position: fixed;
  top: 6px;
  left: 20px;
}

.logo img {
  width: 50px;
  height: auto;
}

/* Card Inner Content */

.act-card {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bg-dark-blue {
  background-color: #295095;
}

.act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.act-card-inner {
  padding: 1.5rem;
}

.template-card-inner {
  padding: 1.5rem;
}

.act-home-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-table-header)
}

.view-button {
  color: var(--color-theme-3);
  font-weight: bold;
  text-align: right;
}

.no-results {
  text-align: center;
  color: #6c757d;
  padding: 2rem;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 2rem;
}

/* Grid View */
.act-content.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fit,
      minmax(300px, 1fr));
  /* Adjusts based on screen width */
  gap: 20px;
  /* Adds consistent gap between items */
}

.act-content.grid-view .act-card {
  background-color: var(--color-card-bg) !important;
  border-radius: 0.5rem;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.act-content.grid-view .act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* List View */
.act-content.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Adds spacing between list items */
}

.act-content.list-view .act-card {
  background-color: var(--color-card-bg) !important;
  border-radius: 0.5rem;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.act-content.list-view .act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-body {
  color: var(--color-text-dark);
}



.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  /* Space between buttons */
}

.custom-container {
  --bs-gutter-x: 0;
}

#versions-list {
  background-color: var(--color-content-bg-opacity) !important;
}

.submit_reset_format {
  width: 100%;
}

.footer-header-text {
  color: var(--color-theme-4) !important;
}

.footer-text {
  color: var(--color-sidebar) !important;
}

.header_style {
  /* background-color: var(--color-sidebar-opacity); */
  color: var(--color-theme-3);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-align: center;
}

/*CSS for footer*/
.footer {
  background-color: var(--color-05);
  color: var(--color-footer);
  padding: 20px 0;
}

.footer p {
  margin: 0;
}

.footer .errorWrapper .error-toggle {
  background-color: var(--color-03);
  color: var(--color-01);
  padding: 5px;
  border-radius: var(--border-radious);
  position: relative;
  padding-right: 40px;
}

.footer .errorWrapper .error-toggle:hover {
  background-color: var(--color-01);
  color: var(--color-04);
}

.footer .errorWrapper .error-toggle:hover i {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  background-color: var(--color-05);
  color: var(--color-01);
}

.footer .errorWrapper .error-toggle i {
  padding: 5px 6px;
  border-radius: 50%;
  Position: absolute;
  right: 3px;
  bottom: 4px;
  background-color: var(--color-01);
  transition: transform 0.3s ease;
  color: var(--color-03);
}

.footer .copyright {
  font-size: 12px;
}

/*----- Error Reporting section -------*/
.popup2 {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 43, 91, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup2.is-visible,
.popup2.show {
  display: flex;
}

.popup-container {
  background-color: #fff;
  color: var(--color-01);
  border-radius: 10px;
  max-width: 600px;
  width: 95%;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 43, 91, 0.3);
  position: relative;
}

/* .popup-title {
  color: #002B5B !important;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
} */

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  color: var(--color-01);
  text-decoration: none;
  cursor: pointer;
  background-color: var(--color-04);
  height: 30px;
  width: 30px;
  border-radius: 50%;
  line-height: 25px;
  text-align: center;
  border: 1px solid var(--color-01);
  transition: all 0.3s ease;
}

.popup-close:hover {
  background-color: var(--color-06);
  color: #ffffff;
}

.errorForm {
  background-color: var(--color-04);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--color-05);
}

.errorForm .form-label {
  color: var(--color-01);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

.errorForm .form-control,
.errorForm .form-select {
  border-radius: 5px;
  padding: 10px 15px;
  background-color: #ffffff;
  color: var(--color-06);
}

.errorForm .form-control:focus,
.errorForm .form-select:focus {
  border-color: #002B5B;
  box-shadow: 0 0 0 0.2rem rgba(0, 43, 91, 0.25);
}

#errorFields input{
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #9DACB9;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

#errorFields .form-check{
  margin-left: 20px;
}

#errorFields .form-check .form-check-label{
  padding: 3px;
}

#errorFields .form-check .form-check-input:checked[type="checkbox"] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

#errorFields .form-check .form-check-input:checked {
  background-color: var(--color-01);
  border-color: var(--color-01);
}

#errorPopup .popup-title{
  color: var(--color-01)
}

/*.errorForm .btn-action {
  background-color: #002B5B;
  border: 2px solid #002B5B;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.errorForm .btn-action:hover {
  background-color: #C19A6B;
  border-color: #C19A6B;
  color: #002B5B;
}

.errorForm .btn-neutral {
  background-color: #ffffff;
  border: 2px solid #C19A6B;
  color: #002B5B;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.errorForm .btn-neutral:hover {
  background-color: #fff7ea;
  border-color: #002B5B;
}*/

.errorForm input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #002B5B;
}

.errorForm textarea {
  resize: vertical;
  min-height: 120px;
}

/*----- Error Reporting section End-------*/

/*CSS for navigation_bars.php*/

.error-box {
  background-color: #d2636deb;
  border: 1px solid #e0b4b4;
  color: #420505;
  padding: 16px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.error-box h4 {
  margin-top: 0;
  color: #440f0f;
  font-size: 18px;
  font-weight: bold;
}

.error-box ul {
  padding-left: 20px;
  margin: 10px 0;
}

.error-box ul li {
  list-style-type: disc;
}

.error-box .error-action {
  margin-top: 12px;
  font-weight: bold;
  color: #401313;
}

.error-box .error-action a {
  color: #ad0000;
  text-decoration: underline;
}

.error-message {
  color: var(--color-danger);
  font-weight: bold;
}

.info-message {
  color: #555;
  font-style: italic;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.settings-dropdown {
  position: relative;
  display: inline-block;
}

.settings-toggle {
  background-color: transparent !important;
  color: var(--color-theme-4);
  border: 1px solid var(--color-theme-4);
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.down-arrow {
  margin-left: 5px;
  font-size: 10px;
}

#settings-panel {
  position: absolute;
  top: 60px;
  /* adjust based on header height */
  left: 0;
  width: 100vw;
  background: var(--color-content-bg-opacity);
  z-index: 1000;
  padding: 20px 30px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
 PAYMENT DETAILS PAGE STYLES Start  
======================================== */

    .clickable-heading {
        cursor: pointer;
        color: #007bff;
        transition: color 0.2s;
    }
    .clickable-heading:hover {
        color: #0056b3;
        text-decoration: underline;
    }    
    .ref {
        color: #28a745;
        cursor: pointer;
        font-weight: 600;
        text-decoration: underline;
        transition: all 0.2s;
        padding: 0 2px;
        border-radius: 3px;
        position: relative;
    }
    .ref:hover {
        color: #218838;
        background-color: rgba(40, 167, 69, 0.1);
    }
    .ref:after {
        content: " 🔍";
        font-size: 10px;
        vertical-align: super;
    }
    .direct-reference {
        color: #3b82f6;
        cursor: pointer;
        margin-left: 5px;
        font-size: 14px;
        vertical-align: middle;
        transition: transform 0.2s;
    }
    .direct-reference:hover {
        transform: scale(1.2);
    }
    .section-btn {
        font-size: 10px;
        line-height: 1;
        margin-left: 2px;
        vertical-align: middle;
    }
    .legal-content {
        padding-left: 1.5rem;
        border-left: 1px solid #dee2e6;
    }
    .legal-section {
        margin-bottom: 1rem;
    }
    .footnote {
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 0.5rem;
    }
    .section-content {
        max-height: 70vh;
        overflow-y: auto;
    }
    .section-item {
        padding: 0.75rem;
        border-radius: 0.25rem;
        background-color: #f8f9fa;
        margin-bottom: 1rem;
    }
    .legal-text-content {
        line-height: 1.6;
    }
    .modal.draggable .modal-dialog {
        cursor: move;
        position: absolute;
        margin: 0;
    }
    .modal-header.draggable {
        cursor: move;
        user-select: none;
    }
    .pinned-popup {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
        margin-bottom: 1.5rem;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    .pinned-popup:hover {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
    .pinned-popup .modal-header {
        background-color: var(--primary-color);
        color: #fff;
        cursor: default;
    }
    
    /* Full-screen client selection modal styles */
    .modal-fullscreen .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-fullscreen .modal-body {
        overflow-y: auto;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .client-selection-card {
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .client-selection-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: #007bff;
        background: #f8f9fa;
    }
    
    .client-selection-card.selected {
        border-color: #007bff;
        background: #e3f2fd;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    }
    
    .client-avatar-large {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #007bff, #0056b3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .client-info-large {
        flex: 1;
    }
    
    .client-info-large h5 {
        margin: 0 0 0.25rem 0;
        color: #2c3e50;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .client-email-large {
        color: #7f8c8d;
        margin: 0 0 0.25rem 0;
        font-size: 0.95rem;
    }
    
    .client-status-large {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        margin: 0.25rem 0;
    }
    
    .status-active {
        background: #d4edda;
        color: #155724;
    }
    
    .status-inactive {
        background: #f8d7da;
        color: #721c24;
    }
    
    .client-actions-large {
        flex-shrink: 0;
    }
    
    /* Unified modal client avatar styling */
    .client-avatar-large {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(45deg, #007bff, #6c757d);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    /* Client selection section styling */
    .client-selection-section {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .clients-grid {
       
        overflow-y: auto;
    }
    
    .btn-select-client {
        background: linear-gradient(135deg, #28a745, #20c997);
        border: none;
        color: white;
        padding: 0.5rem 1.5rem;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-select-client:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        color: white;
    }
    
    .no-clients-found {
        text-align: center;
        padding: 3rem;
        color: #7f8c8d;
    }
    
    .no-clients-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }
    
    /* Hide modal backdrop completely - we don't need it for centered modals */
    .modal-backdrop {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .modal-backdrop.show {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Custom centered modal styles like iCloud - Bootstrap compatible */
    .modal.modal-centered {
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
        padding: 15px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important; /* Override any conflicting width */
        height: 100% !important;
        margin: 0 !important;
        /* Add backdrop effect directly to modal */
        background-color: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        /* Let Bootstrap handle display property for show/hide */
    }
    
    .modal.modal-centered.show {
        display: flex !important; /* Show when active */
        z-index: 1055 !important; /* Bootstrap modal z-index */
        pointer-events: auto !important; /* Allow interactions when shown */
        width: 100% !important; /* Ensure full width even with conflicting CSS */
    }
    
    /* Force hide when not in use - but don't override Bootstrap's display handling */
    .modal.modal-centered:not(.show) {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 100% !important;
        z-index: -1 !important; /* Behind everything when not shown */
    }
    
    .modal.modal-centered .modal-dialog {
        margin: 0 !important;
        max-width: 90vw !important;
        width: auto !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    .modal-centered .modal-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        min-width: 400px;
    }
    
    /* Popup save modal specific styles */
    #popupSaveModal.modal-centered .modal-dialog {
        max-width: 500px;
        width: 100%;
        transition: max-width 0.3s ease, width 0.3s ease;
    }

    #popupSaveModal.modal-centered.expanded .modal-dialog {
        max-width: 1000px;
        width: 95vw;
    }

    #popupSaveModal .modal-content {
        transition: all 0.3s ease;
        background: var(--modal-bg, rgba(255,255,255,0.95));
        color: var(--color-text, #222);
    }

    #popupSaveModal.expanded .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    #popupSaveModal .modal-header {
        background: var(--color-03);
        color: var(--color-04);
        border-bottom: none;
        padding: 1.5rem 2rem 1rem 2rem;
        border-radius: 20px 20px 0 0;
    }

    #popupSaveModal .modal-title i {
        color: var(--color-theme-3, #667eea);
    }

    #popupSaveModal .modal-body {
        padding: 2rem;
        background: var(--modal-bg, rgba(255,255,255,0.9));
    }

    #popupSaveModal .modal-footer {
        background: var(--modal-footer-bg, rgba(248,249,250,0.9));
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 1rem 2rem 1.5rem 2rem;
        border-radius: 0 0 20px 20px;
    }

    #popupSaveModal .btn-outline-primary {
        border: 2px solid var(--color-02);
        color: var(--color-05);
        background: var(--color-01);
    }
#popupSaveModal .btn-outline-primary:hover {
    background: var(--color-02);
    color: var(--color-04);
}

#popupSaveModal .btn-outline-success {
    border: 2px solid var(--color-theme-3, #28a745);
    color: var(--color-theme-3, #28a745);
    background: var(--color-bg, #fff);
}
#popupSaveModal .btn-outline-success:hover {
    background: var(--color-theme-3, #28a745);
    color: var(--color-text-light, #fff);
}

#popupSaveModal .btn-outline-secondary {
    border: 2px solid var(--color-theme-2, #6c757d);
    color: var(--color-theme-2, #6c757d);
    background: var(--color-bg, #fff);
}
#popupSaveModal .btn-outline-secondary:hover {
    background: var(--color-theme-2, #6c757d);
    color: var(--color-text-light, #fff);
}

/* Disabled button styles */
#popupSaveModal .btn:disabled,
#popupSaveModal .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

#popupSaveModal .btn:disabled:hover,
#popupSaveModal .btn.disabled:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    transform: none;
}

/* Disabled button styles for both popup and notes modals */
#popupSaveModal .btn:disabled,
#popupSaveModal .btn.disabled,
#notesSaveModal .btn:disabled,
#notesSaveModal .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

#popupSaveModal .btn:disabled:hover,
#popupSaveModal .btn.disabled:hover,
#notesSaveModal .btn:disabled:hover,
#notesSaveModal .btn.disabled:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    transform: none;
}

/* Enhanced button styles for the modals */
.modal-centered .btn {
        border-radius: 25px;
        padding: 12px 24px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .modal-centered .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .modal-centered .btn-outline-primary {
        border: 2px solid #007bff;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .modal-centered .btn-outline-success {
        border: 2px solid #28a745;
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* Close button styling */
    .modal-centered .btn-close {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .modal-centered .btn-close:hover {
        background: rgba(255, 255, 255, 0.3);
        opacity: 1;
        transform: scale(1.1);
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .modal-centered .modal-dialog {
            max-width: 95vw;
            margin: 10px;
        }
        
        #clientSelectionModal .modal-content {
            height: 95vh;
        }
        
        .modal-centered .modal-content {
            border-radius: 15px;
        }
        
        #popupSaveModal .modal-header,
        #clientSelectionModal .modal-header {
            padding: 1rem 1.5rem 0.5rem 1.5rem;
            border-radius: 15px 15px 0 0;
        }
        
        #popupSaveModal .modal-body,
        #clientSelectionModal .modal-body {
            padding: 1.5rem;
        }
        
        #popupSaveModal .modal-footer,
        #clientSelectionModal .modal-footer {
            padding: 0.75rem 1.5rem 1rem 1.5rem;
            border-radius: 0 0 15px 15px;
        }
    }
    /* Visual enhancement for dropable areas */
    .nested-droppable.ui-droppable-hover {
        border: 2px dashed #007bff;
        background-color: rgba(0, 123, 255, 0.1);
    }
    
    /* Additional styles for hierarchical structure */
    .standalone-group {
        border: 1px solid #e9ecef;
        border-radius: 0.375rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
        background-color: #f8f9fa;
    }
    
    .section-container {
        border-left: 3px solid #4caf50 ;
        padding-left: 1rem;
        margin-bottom: 1rem;
        background-color: #ffffff;
        border-radius: 0 0.375rem 0.375rem 0;
    }
    
    /* Hide section-container border when Structure Highlighter is enabled */
    .highlighting-enabled .section-container {
        border-left: none;
    }
    
    .part-section > h2 {
        color: #495057;
        border-bottom: 2px solid #007bff;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .division-section > h4 {
        color: #6c757d;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .subdivision-section > h4 {
        color: #868e96;
        margin-bottom: 0.5rem;
    }
    
    .section-section > h5, .section-section > h6 {
        color: #007bff;
        margin-bottom: 0.5rem;
    }
    
    .subsection-section {
        border-left: 2px solid #28a745;
        padding-left: 0.75rem;
        margin-left: 0.5rem;
    }
    
    .paragraph-section {
        border-left: 1px solid #ffc107;
        padding-left: 0.5rem;
        margin-left: 0.75rem;
    }
    
    .legal-text {
        line-height: 1.7;
        margin-bottom: 0.5rem;
    }
    
    .legal-text strong {
        color: #495057;
        font-weight: 600;
    }
    
    .pagination-controls {
        background-color: #f8f9fa;
        padding: 1rem;
        border-radius: 0.375rem;
        border: 1px solid #dee2e6;
    }
    
    .pagination-controls .btn {
        margin: 0 0.25rem;
    }
    
    .pagination-btn {
        color: var(--color-theme-3) !important;
        border-color: var(--color-theme-3) !important;
        background-color: transparent !important;
        padding: 8px 15px;
        border: 2px solid var(--color-theme-3);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .pagination-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        background-color: var(--color-theme-3) !important;
        color: white !important;
    }
    
    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .cross-act-ref {
        background-color: rgba(255, 193, 7, 0.1);
        border: 1px solid #ffc107;
        color: #856404;
        padding: 2px 4px;
        border-radius: 3px;
    }
    
    .cross-act-ref:hover {
        background-color: rgba(255, 193, 7, 0.2);
        color: #533f03;
    }
    
    /* Enhanced Floating popup styles */
    .floating-popup {
        position: absolute;
        z-index: 1050;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
        width: 500px;
        max-width: 90vw;
        border: 1px solid rgba(0,0,0,0.125);
        backdrop-filter: blur(10px);
        animation: popupFadeIn 0.3s ease-out;
    }
    
    @keyframes popupFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    @keyframes popupFadeOut {
        from {
            opacity: 1;
            transform: scale(1);
        }
        to {
            opacity: 0;
            transform: scale(0.95);
        }
    }
    
    .popup-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--color-border, #dee2e6);
        background-color: var(--color-02) !important;
        color: var(--color-05, white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0.5rem 0.5rem 0 0;
        cursor: move;
        user-select: none;
    }
    
    .popup-header h6 {
        margin: 0;
        font-weight: 600;
        font-size: 1rem;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .popup-header .section-number {
        background: rgba(255,255,255,0.2);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.875rem;
        font-weight: 500;
        margin-right: 0.5rem;
    }
    
    .popup-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
    
    .popup-actions .btn {
        border: 1px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
        min-width: 0px;
    }
    
    .popup-actions .btn:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.5);
        transform: translateY(-1px);
    }
    
    .popup-content {
        padding: 15px;
        max-height: 65vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    
    .popup-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .popup-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .popup-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .popup-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    .section-item {
        padding: 1rem;
        border-radius: 0.375rem;
        background: linear-gradient(145deg, #f8f9fa, #e9ecef);
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }
    
    .section-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-color: #007bff;
    }
    
    .section-title::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 30px;
        height: 2px;
        background: #28a745;
    }
    
    .section-text {
        line-height: 1.6;
        color: #333;
        font-size: 0.95rem;
    }
    
    .section-meta {
        background: rgba(0,123,255,0.1);
        padding: 0.5rem;
        border-radius: 0.25rem;
        border-left: 3px solid #4caf50 ;
        margin-top: 0.75rem;
    }
    
    .section-meta div {
        margin-bottom: 0.25rem;
    }
    
    .section-meta div:last-child {
        margin-bottom: 0;
    }
    
    /* Enhanced loading state */
    .popup-loading {
        text-align: center;
        padding: 2rem;
    }
    
    .popup-loading .spinner-border {
        width: 2rem;
        height: 2rem;
        border-width: 0.2em;
    }
    
    .popup-loading p {
        margin-top: 1rem;
        color: #6c757d;
        font-style: italic;
    }
    
    /* Mobile adjustments */
    @media (max-width: 768px) {
        .floating-popup {
            width: 95vw;
            max-height: 85vh;
            margin: 0 auto;
            left: 50% !important;
            transform: translateX(-50%);
        }
        
        .popup-header {
            padding: 0.75rem 1rem;
        }
        
        .popup-content {
            padding: 1rem;
            max-height: 70vh;
        }
        
        .popup-actions .btn {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
    }
    
    /* Pinned popup styles */
    .pinned-popup {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
        margin-bottom: 0.75rem;
        overflow: hidden;
        transition: all 0.3s ease;
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0;
        display: block; /* Force block display */
    }
    
    .pinned-popup:hover {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
    
    .pinned-popup .popup-header {
        background-color: var(--primary-color, #28a745);
        color: #fff;
        cursor: default;
        padding: 0.5rem;
        font-size: 0.9rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Popup collapse button styling */
    .popup-collapse-btn {
        background-color: transparent !important;
        border: none !important;
        color: white !important;
        padding: 2px 6px !important;
        font-size: 0.8rem !important;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .popup-collapse-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    /* Popup unpin button styling */
    .popup-unpin-btn {
        background-color: transparent !important;
        border: none !important;
        color: white !important;
        padding: 2px 6px !important;
        font-size: 0.8rem !important;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .popup-unpin-btn:hover {
        opacity: 1;
        transform: scale(1.1);
        background-color: rgba(0, 123, 255, 0.2) !important;
    }
    
    .pinned-popup .popup-content {
        max-height: 150px;
        overflow-y: auto;
        padding: 0.75rem;
        display: block; /* Ensure content is visible by default */
    }
    
    /* Ensure the pinned popup content fits properly */
    .nested-droppable > .pinned-popup {
        display: block;
        margin-bottom: 0.75rem;
    }
    
    .nested-droppable > .pinned-popup:last-child {
        margin-bottom: 0;
    }
    
    /* Remove old styles that conflict with new structure */
    .pinned-popup .modal-header,
    .pinned-popup .modal-body,
    .pinned-popup .modal-footer,
    .pinned-popup .card-header,
    .pinned-popup .card-body {
        padding: 0.5rem;
        margin: 0;
        border: none;
    }

    .pinned-popup .card-header,
    .pinned-popup .modal-header {
        background-color: var(--color-theme-3, #28a745);
        color: white;
        font-size: 0.9rem;
    }
    
    /* Debugging outlines - remove in production */
    .debug-outline {
        outline: 2px dashed red !important;
    }

    /* Unified Controls Styling - Theme Colors */
    .unified-controls-container {
        background: linear-gradient(135deg, var(--color-theme-1) 0%, var(--color-card-bg) 100%);
        border: 1px solid var(--color-border);
        box-shadow: 0 2px 8px var(--color-theme-1-opacity);
    }

    /* Unified Controls Header - Theme Colors */
    .unified-controls-container .card-header {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        background: var(--color-theme-3) !important;
        border-bottom: 1px solid var(--color-button-border);
        color: var(--color-text-primary) !important;
    }

    .unified-controls-container .card-body {
        background: var(--color-widget-bg);
        border-radius: 8px;
        padding: 0.75rem;
    }

    .unified-controls-container .btn {
        border: 1px solid var(--color-06);
        color: var(--color-02);
        background: var(--color-03);
        font-weight: 500;
        min-width: 100px;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        margin: 0.1rem;
        flex: 1;
        max-width: 120px;
        transition: all 0.3s ease;
    }

    .unified-controls-container .btn:hover {
        background: var(--color-button-bg-hover-1);
        border-color: var(--color-theme-3);
        color: var(--color-text-dark);
        transform: translateY(-1px);
    }

    .unified-controls-container .btn i {
        font-size: 0.85rem;
        margin-right: 0.4rem;
    }

    /* Explanation text styling */
    .unified-controls-container .text-white-50 {
        opacity: 0.9;
        font-style: italic;
        line-height: 1.3;
        color: var(--color-text-primary) !important;
    }

    /* Responsive adjustments for unified controls */
    @media (max-width: 1200px) {
        .unified-controls-container .btn {
            min-width: 45px;
            font-size: 0.75rem;
            padding: 0.35rem 0.5rem;
            flex: 1;
            max-width: 60px;
        }
        
        .unified-controls-container .btn span {
            display: none;
        }
        
        .unified-controls-container .btn i {
            margin-right: 0;
            font-size: 0.9rem;
        }
        
        .unified-controls-container .text-white-50 {
            font-size: 0.7rem;
            margin-bottom: 0.5rem !important;
        }
    }

    /* Sidebar container responsive height management */
    .sticky-container {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    }

    .sticky-container::-webkit-scrollbar {
        width: 4px;
    }

    .sticky-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .sticky-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

    .sticky-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }

    /* Sidebar Header Controls Styling - Theme Colors */
    .header-controls .btn {
        border: 1px solid var(--color-button-border);
        background: var(--color-button-bg);
        color: var(--color-text-dark);
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .header-controls .btn:hover {
        background: var(--color-button-bg-hover-2);
        border-color: var(--color-theme-3);
        color: var(--color-text-dark);
        transform: scale(1.1);
        box-shadow: 0 2px 8px var(--color-theme-1-opacity);
    }

    .header-controls .btn:focus {
        box-shadow: 0 0 0 2px var(--color-theme-3);
        outline: none;
    }

    .header-controls .btn i {
        font-size: 14px;
    }

    /* Widget Card Styling - Theme Colors */
    .widget_custom.bg_custom {
        background: var(--color-widget-bg) !important;
        border: 1px solid var(--color-border);
    }

    .widget_custom .card-header.bg-warning {
        background: var(--color-theme-3) !important;
        border-bottom: 1px solid var(--color-button-border);
        color: var(--color-text-primary) !important;
    }

    .widget_custom .card-header.bg-primary {
        background: var(--color-theme-3) !important;
        border-bottom: 1px solid var(--color-button-border);
        color: var(--color-text-primary) !important;
    }

    /* Droppable area theme styling */
    .nested-droppable {
        min-height: 80px;
        border: 2px dashed var(--color-border);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        padding: 0.5rem;
        background: var(--color-content-bg);
    }

    .nested-droppable:hover {
        border-color: var(--color-theme-3);
        background: var(--color-widget-bg);
    }

    .nested-droppable .card-title {
        margin: 0;
        font-weight: 400;
        font-size: 0.85rem;
        line-height: 1.3;
        color: var(--color-text-primary);
    }

    /* Scrollbar theme styling */
    .sticky-container::-webkit-scrollbar-thumb {
        background: var(--color-theme-2);
        border-radius: 2px;
    }

    .sticky-container::-webkit-scrollbar-thumb:hover {
        background: var(--color-theme-1);
    }

    /* Compact card styling for better space utilization */
    .card.mb-2 {
        margin-bottom: 0.5rem !important;
    }

    .card-header.py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .card-body.py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Editor container improvements - Theme Colors */
    .editor-container textarea {
        min-height: 200px;
        max-height: 300px;
        resize: vertical;
        background: var(--color-widget-bg);
        border: 1px solid var(--color-border);
        color: var(--color-text-primary);
    }

    .editor-container textarea:focus {
        border-color: var(--color-theme-3);
        box-shadow: 0 0 0 2px var(--color-theme-1-opacity);
        outline: none;
    }

    /* Better responsive behavior for laptop screens */
    @media (max-width: 1366px) and (min-width: 1024px) {
        .sticky-container {
            max-height: calc(100vh - 120px);
            top: 90px;
        }
        
        .unified-controls-container .btn {
            min-width: 50px;
            font-size: 0.7rem;
            padding: 0.3rem 0.4rem;
            flex: 1;
            max-width: 70px;
        }
        
        .unified-controls-container .btn span {
            display: none;
        }
        
        .unified-controls-container .btn i {
            margin-right: 0;
            font-size: 0.85rem;
        }
        
        .unified-controls-container .text-white-50 {
            font-size: 0.65rem;
            margin-bottom: 0.4rem !important;
        }
        
        .card-header h6 {
            font-size: 0.85rem;
        }
        
        .nested-droppable {
            min-height: 60px;
        }
        
        .nested-droppable .card-title {
            font-size: 0.8rem;
        }
    }

    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
        .sticky-container {
            position: relative !important;
            width: 100% !important;
            right: auto !important;
            top: auto !important;
            max-height: none !important;
        }
        
        .unified-controls-container .d-flex {
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .unified-controls-container .btn {
            width: 100%;
            min-width: auto;
            justify-content: center;
        }
    }

    /* Sidebar Header Controls Styling */
    .header-controls .btn {
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .header-controls .btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .header-controls .btn:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .header-controls .btn i {
        font-size: 14px;
    }

    /* Droppable area styling */
    .nested-droppable {
        min-height: 200px;
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transition: all 0.3s ease;
        overflow-y: auto;
        max-height: 400px;
        padding: 10px;
        margin: 0;
    }

    .nested-droppable:hover {
        border-color: #007bff;
        background: rgba(0, 123, 255, 0.05);
    }

    .nested-droppable .card-title {
        margin: 0;
        font-weight: 400;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    /* Hide scrollbar for nested-droppable while keeping scroll functionality */
    .nested-droppable::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    .nested-droppable::-webkit-scrollbar-track {
        background: transparent;
    }

    .nested-droppable::-webkit-scrollbar-thumb {
        background: transparent;
    }

    .nested-droppable::-webkit-scrollbar-thumb:hover {
        background: transparent;
    }

    /* Hide scrollbar for Firefox */
    .nested-droppable {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    /* Empty state for droppable area */
    .nested-droppable:empty::after {
        content: "Drag and drop your references here";
        color: #6c757d;
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 20px 0;
    }

    /* Content Selection Checkboxes */
    .content-selection .form-check {
        cursor: pointer;
        transition: all 0.3s ease;
        background: rgba(248, 249, 250, 0.8);
    }

    .content-selection .form-check:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .content-selection .form-check-input:checked + .form-check-label {
        color: var(--color-theme-1);
    }

    .content-selection .form-check-input {
        transform: scale(1.2);
    }

    /* Save/Fetch Option Cards */
    .save-option-card, .fetch-option-card {
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .save-option-card:hover, .fetch-option-card:hover {
        border-color: var(--color-theme-1);
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .save-option-card.selected, .fetch-option-card.selected {
        border-color: var(--color-theme-1);
        background: rgba(102, 126, 234, 0.1);
    }

    /* Disabled card styles */
    .save-option-card.disabled, .fetch-option-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f8f9fa !important;
        border-color: #dee2e6 !important;
        color: #6c757d !important;
    }

    .save-option-card.disabled:hover, .fetch-option-card.disabled:hover {
        transform: none;
        box-shadow: none;
        border-color: #dee2e6 !important;
    }

    /* Unified Modal Styling */
    #unifiedSaveModal .modal-content,
    #unifiedFetchModal .modal-content {
        border-radius: 20px;
        border: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    #unifiedSaveModal .modal-header,
    #unifiedFetchModal .modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom: none;
        border-radius: 20px 20px 0 0;
    }

    #unifiedSaveModal .modal-body,
    #unifiedFetchModal .modal-body {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.95);
    }

    /* Sticky Layout Styles */
    .main-content-wrapper {
        height: calc(100vh - 80px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-top: 17px; /* Align with sidebar content */
    }

    /* Search results styles */
    .search-highlight {
        background-color: #fff3cd;
        color: #856404;
        padding: 1px 2px;
        border-radius: 2px;
        font-weight: 600;
    }

    .search-results-container {
        background: #fff;
    }

    .search-result-item {
        border-bottom: 1px solid #e9ecef;
        padding: 1.5rem;
        transition: all 0.2s ease;
    }

    .search-result-item:hover {
        background-color: #f8f9fa;
        border-left: 4px solid var(--color-theme-3);
    }

    .search-result-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .search-result-title {
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .search-result-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .search-result-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .search-result-content {
        line-height: 1.6;
        color: #495057;
        margin-bottom: 0.75rem;
    }

    .search-result-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .relevance-score {
        font-size: 0.75rem;
    }

    .search-pagination {
        padding: 1rem;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }

    .search-pagination .pagination {
        margin: 0;
        justify-content: center;
    }

    .no-results-container {
        text-align: center;
        padding: 3rem 1rem;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .clear-search-btn {
        border-left: none !important;
    }

    .clear-search-btn:hover {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
    }

    /* Ensure search form elements align properly */
    .input-group .form-control:focus + .clear-search-btn {
        border-color: var(--color-theme-3);
    }

    .view-full-section {
        transition: all 0.3s ease;
    }

    .view-full-section:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .copy-content {
        transition: all 0.3s ease;
    }

    .copy-content:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .sticky-search-section {
        position: sticky;
        top: 0;
        z-index: 100;
        padding-bottom: 15px;
        margin-bottom: 0;
    }

    .sticky-content-header {
        position: sticky;
        top: 0;
        z-index: 99;
        margin-bottom: 0;
    }

    .scrollable-content-area {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        margin: 0;
    }

    /* Ensure search card matches Content Management height */
    .search-card-match {
        min-height: 88px; /* Match Content Management card height */
        display: flex;
        flex-direction: column;
    }

    .search-card-match .card-header {
        padding: 0.75rem 1rem;
        background: var(--color-theme-3) !important;
        color: var(--color-text-primary) !important;
        border-bottom: 1px solid var(--color-button-border);
        font-weight: 600;
    }

    .search-card-match .card-body {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 1rem;
    }

    /* Legal content header alignment */
    .legal-content-header-align {
        margin-top: 0;
        border-radius: 0.375rem 0.375rem 0 0;
    }

    .legal-content-body-scroll {
        max-height: calc(100vh - 60px); /* Adjust based on header heights */
        overflow-y: auto;
        border-radius: 0 0 0.375rem 0.375rem;
    }

    /* Hide scrollbar for scrollable-content-area */
    .scrollable-content-area::-webkit-scrollbar {
        width: 0px; /* Hide scrollbar */
        background: transparent;
    }

    .scrollable-content-area::-webkit-scrollbar-track {
        background: transparent;
    }

    .scrollable-content-area::-webkit-scrollbar-thumb {
        background: transparent;
    }

    .scrollable-content-area::-webkit-scrollbar-thumb:hover {
        background: transparent;
    }

    /* Hide scrollbar for Firefox on scrollable-content-area */
    .scrollable-content-area {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    /* Show custom scrollbar ONLY for legal-content-body-scroll */
    .legal-content-body-scroll::-webkit-scrollbar {
        width: 8px; /* Visible scrollbar width */
        background: #f1f1f1; /* Light background */
    }

    .legal-content-body-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .legal-content-body-scroll::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
        transition: background 0.3s ease;
    }

    .legal-content-body-scroll::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    /* Show scrollbar for Firefox ONLY on legal-content-body-scroll */
    .legal-content-body-scroll {
        scrollbar-width: thin; /* Firefox - thin scrollbar */
        scrollbar-color: #c1c1c1 #f1f1f1; /* Firefox - thumb and track colors */
    }
    
    /* Advanced search examples styling */
    .text-muted code {
        background-color: #f8f9fa;
        color: #6c757d;
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.85em;
        border: 1px solid #e9ecef;
    }
    
    /* Search type indicator styling */
    #searchHint {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    #searchTypeIndicator {
        transition: color 0.3s ease;
    }
    
    #searchTypeIndicator.text-primary {
        font-weight: 600;
    }
    
    #searchTypeIndicator.text-info {
        font-weight: 500;
    }
    
    /* Toggle Button Styles */
    .toggle-switch {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
    }
    
    .toggle-switch input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .toggle-slider {
        position: relative;
        width: 50px;
        height: 24px;
        background-color: #ccc;
        border-radius: 24px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .toggle-slider:hover {
        background-color: #b0b0b0;
    }
    
    .toggle-switch input:checked + .toggle-slider:hover {
        background-color: #218838;
    }
    
    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background-color: white;
        border-radius: 50%;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .toggle-switch input:checked + .toggle-slider {
        background-color: #28a745;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }
    
    .toggle-text {
        font-size: 14px;
        color: #333;
        transition: color 0.3s ease;
    }
    
    .toggle-switch input:checked ~ .toggle-text {
        font-weight: 600;
    }

    /* Coming Soon Modal Enhancements */
    #comingSoonModal .modal-content {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    #comingSoonModal .modal-header {
        border-radius: 15px 15px 0 0;
        background: linear-gradient(135deg, #17a2b8, #138496);
    }

    #comingSoonModal .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    #comingSoonModal .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    #contextMenuHelpModal .modal-content {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    #contextMenuHelpModal .modal-header {
        border-radius: 15px 15px 0 0;
        background: linear-gradient(135deg, #007bff, #0056b3);
    }

    #contextMenuHelpModal .list-group-item {
        border: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0.75rem 0;
    }

    #contextMenuHelpModal .list-group-item:last-child {
        border-bottom: none;
    }

    #contextMenuHelpModal kbd {
        background-color: #f8f9fa;
        color: #495057;
        border: 1px solid #dee2e6;
        border-radius: 3px;
        padding: 0.2rem 0.4rem;
        font-size: 0.875rem;
    }

    /* Floating Help Button */
    #floating-paste-help {
        animation: fadeInUp 0.3s ease-out;
    }

    #floating-paste-help .btn {
        transition: all 0.3s ease;
    }

    #floating-paste-help .btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Pulse animation for help elements */
    .pulse-help {
        animation: pulseGlow 2s infinite;
    }

    @keyframes pulseGlow {
        0%, 100% {
            box-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
        }
        50% {
            box-shadow: 0 0 20px rgba(23, 162, 184, 0.8);
        }
    }

    /* Enhanced notification styling */
    .alert.position-fixed {
        animation: slideInRight 0.5s ease-out;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

 /* ========================================
 PAYMENT DETAILS PAGE STYLES End
 ======================================== */

/* ========================================
   PAYMENT DETAILS PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-card {
  background: var(--color-button);
  border-radius: 20px;
  padding: 3rem 2rem;
  color: var(--color-button-bg);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  color: #667eea;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 0;
  font-weight: 300;
  color: #6b7280;
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.05);
}

.decoration-circle:nth-child(1) {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -60px;
}

.decoration-circle:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 50%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.decoration-circle:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  right: 20%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-02);
  margin-bottom: 0.5rem;
  position: relative;
  border-bottom: 2px solid #4caf50;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 0 auto;
  border-radius: 2px;
}

/* Modern Alerts */
.modern-alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.modern-alert.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left-color: #22c55e;
}

.modern-alert.alert-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border-left-color: #ef4444;
}

/* Subscription Cards */
.subscription-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.active-subscription {
  border-color: var(--color-footer);
  background: white;
  border-left: 4px solid var(--color-footer);
}

.subscription-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.subscription-icon {
  width: 60px;
  height: 60px;
  background: white;
  border: 3px solid #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 1.5rem;
  margin-right: 1rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.subscription-info {
  flex: 1;
}

.subscription-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-footer);
  margin-bottom: 0.5rem;
}

.subscription-badges {
  display: flex;
  gap: 0.5rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background-color: #22c55e;
  color: white;
}

.status-badge.trial {
  background-color: #3b82f6;
  color: white;
}

.subscription-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.detail-item i {
  font-size: 1.25rem;
  color: #667eea;
  margin-right: 1rem;
  width: 20px;
}

.detail-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  display: block;
  font-weight: 600;
  color: var(--color-footer);
  margin-top: 0.25rem;
}

.detail-value.highlight {
  color: #dc2626;
  font-weight: 700;
}

.subscription-actions {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* No Subscription Card */
.no-subscription-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px dashed #e5e7eb;
}

.no-subscription-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 3px solid #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.no-subscription-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

/* Info Banners */
.info-banner {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.info-banner i {
  font-size: 1.25rem;
  margin-right: 1rem;
}

.info-banner.trial {
  background-color: #f0f9ff;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.info-banner.active {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.info-banner.warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Package Cards */
.package-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
  border-color: #667eea;
  background: white;
  transform: scale(1.05);
  border-left: 4px solid #667eea;
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-footer);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.package-icon {
  width: 60px;
  height: 60px;
  background: white;
  border: 3px solid #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-footer);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.package-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-footer);
  margin-bottom: 1rem;
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.package-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6b7280;
}

.package-price .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-footer);
  line-height: 1;
  margin: 0 0.25rem;
}

.package-price .period {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

.package-description {
  margin-bottom: 1.5rem;
  flex: 1;
}

.package-description p {
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

.package-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.feature-item i {
  color: #22c55e;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  width: 20px;
}

.feature-item span {
  color: var(--color-footer);
  font-weight: 500;
}

.package-action {
  margin-top: auto;
}

/* Modern Buttons */
.btn-modern {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-modern:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover:before {
  left: 100%;
}

.btn-package {
  width: 100%;
  background: var(--color-footer);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-package:hover {
  background: var(--color-button-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  color: var(--color-theme-4);
}

.btn-featured {
  background: var(--color-footer) !important;
  box-shadow: 0 8px 20px;
}

.btn-featured:hover {
  background: var(--color-button-bg) !important;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-outline-danger.btn-modern {
  border: 2px solid #dc2626;
  color: #dc2626;
  background: transparent;
}

.btn-outline-danger.btn-modern:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-2px);
}

.btn-primary.btn-modern {
  background: #667eea;
  color: white;
}

.btn-primary.btn-modern:hover {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* History Table */
.history-table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.modern-table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.modern-table thead {
  background: #f8f9fa;
}

.modern-table th {
  border: none;
  padding: 1.25rem 1rem;
  font-weight: 700;
  color: var(--color-footer);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.modern-table td {
  border: none;
  padding: 1.25rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.history-row:hover {
  background-color: #f9fafb;
}

.package-info {
  display: flex;
  align-items: center;
}

.package-info i {
  color: #667eea;
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

.package-info span {
  font-weight: 600;
  color: var(--color-footer);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px dashed #e5e7eb;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

/* Additional Modern Enhancements */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation for buttons */
.btn-modern.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-modern.loading:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

/* Pulse animation for notifications */
.notification-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Card entrance animations */
.card-entrance {
  opacity: 0;
  transform: translateY(30px);
  animation: cardEntrance 0.8s ease forwards;
}

.card-entrance:nth-child(1) {
  animation-delay: 0.1s;
}

.card-entrance:nth-child(2) {
  animation-delay: 0.2s;
}

.card-entrance:nth-child(3) {
  animation-delay: 0.3s;
}

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

/* Improved focus states for accessibility */
.btn-modern:focus,
.package-card:focus,
.subscription-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Status indicator animation */
.status-badge {
  position: relative;
  overflow: hidden;
}

.status-badge:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.status-badge:hover:before {
  left: 100%;
}

/* Improved table responsiveness */
@media (max-width: 992px) {
  .modern-table {
    font-size: 0.875rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .modern-table thead {
    display: none;
  }

  .modern-table,
  .modern-table tbody,
  .modern-table tr,
  .modern-table td {
    display: block;
    width: 100%;
  }

  .modern-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .modern-table td {
    border: none !important;
    padding: 0.5rem 0;
    text-align: left;
    position: relative;
    padding-left: 120px;
  }

  .modern-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 110px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
  }
}

/* Removed dark mode support to maintain consistent white backgrounds */

/* Print styles */
@media print {

  .hero-card,
  .package-action,
  .subscription-actions,
  .btn-modern {
    display: none;
  }

  .package-card,
  .subscription-card {
    border: 2px solid #000;
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .modern-table {
    border-collapse: collapse;
  }

  .modern-table th,
  .modern-table td {
    border: 1px solid #000;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .package-card,
  .subscription-card {
    border: 3px solid;
  }

  .btn-modern {
    border: 2px solid;
  }

  .status-badge {
    border: 1px solid;
  }
}
/*-----------------------------------------------------------*/
/*------------- Legal Document HTML Page Styles -------------*/

.sidebar-toggle {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-03);
  color: white;
  border: none;
  width: 30px;
  height: 60px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1001;
  outline: none;
}

.sidebar-toggle:hover {
  background-color: var(--color-warning-deep);
  left: -35px;
}

.sidebar-toggle i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.right-sidebar.collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

/* Tooltip for sidebar toggle */
.sidebar-toggle::after {
  content: attr(title);
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1002;
}

.sidebar-toggle:hover::after {
  opacity: 1;
}

.html-document-container {
  display: flex;
  height: calc(100vh - 80px);
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.html-content-area {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: margin-right 0.3s ease;
}

.html-content-area.sidebar-collapsed {
  margin-right: 0;
}

.html-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  position: relative;
}

.html-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.html-navigation {
  position: absolute;
  top: 8px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

.html-navigation .btn {
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  background-color: var(--color-03);
}

.html-navigation .btn:hover {
  border-color: var(--color-01);
  color: var(--color-01);
}

.html-navigation #html-controls-toggle {
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.html-navigation #html-controls-toggle .toggle-icon {
  transition: transform 0.3s ease;
  color: #666;
  font-size: 0.9rem;
}

.html-navigation #html-controls-toggle.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.html-viewer-container {
  flex: 1;
  position: relative;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.html-controls {
  padding: 0px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.html-controls.collapsed {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
}

.html-controls .btn-group {
  display: flex;
  gap: 5px;
}

.html-controls .btn {
  padding: 5px 10px;
  font-size: 0.875rem;
  border: 1px solid #ddd;
  background: #f8f9fa;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.html-controls .btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.html-controls .btn:active {
  background: #dee2e6;
}

.html-content-editor-container {
  flex: 1;
  position: relative;
  overflow: auto;
  background: #f5f5f5;
  transform-origin: top left;
  transition: transform 0.3s ease;
  padding: 10px;
}

.html-content-editor {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-height: 600px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.right-sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.right-sidebar.collapsed {
  transform: translateX(100%);
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 1000;
}

.notes-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#html-tiny-editor {
  flex: 1;
  min-height: 380px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}

/* Client info styling if present */
.client-info-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #28a745;
  font-size: 1.5rem;
}

.save-status {
  font-size: 0.9rem;
  color: #666;
  margin: 15px 20px 20px 20px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f8f9fa;
  border-left: 3px solid #28a745;
}

.save-status.success {
  color: #155724;
  background: #d4edda;
  border-left-color: #28a745;
}

.save-status.error {
  color: #721c24;
  background: #f8d7da;
  border-left-color: #dc3545;
}

/* TinyMCE container styling */
.tox-tinymce {
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
}

.tox .tox-toolbar {
  border-bottom: 1px solid #ddd !important;
}

/* Hide sidebar elements for HTML context since we have our own rich text editor */
.fixed-sidebar-container {
  display: none !important;
}

/* Adjust main content to take full width when sidebar is hidden */
.main-content-with-sidebar {
  width: 100% !important;
  float: none !important;
}

/* Notes selection modal styles */
.note-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.note-item:hover {
  background: #e9ecef;
  border-color: #28a745;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.note-item.selected {
  background: #e8f5e8;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.note-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.note-preview {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
}

.note-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.note-context-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.note-context-badge.user {
  background: #e8f5e8;
  color: #1b5e20;
}

.note-context-badge.client {
  background: #e3f2fd;
  color: #0d47a1;
}

.note-doc-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.note-doc-badge.badge-html {
  background: #e8f5e8;
  color: #2e7d32;
}

.note-doc-badge.badge-legal {
  background: #e3f2fd;
  color: #1976d2;
}

.note-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #888;
}

.d-flex.gap-1>*+* {
  margin-left: 0.25rem;
}

.empty-notes-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.load-selected-note-btn {
  margin-top: 15px;
}

/* Full screen mode adjustments */
.html-document-container.full-width {
  gap: 0;
}

.html-document-container.full-width .html-content-area {
  margin-right: 0;
}

/* Smooth transition for HTML content area */
.html-viewer-container {
  flex: 1;
  position: relative;
  background: #f5f5f5;
  transition: all 0.3s ease;
}

/* Visual feedback for full-width mode */
.html-document-container.full-width .html-content-area {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .right-sidebar {
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
    background: white;
  }

  .right-sidebar.collapsed {
    transform: translateX(100%);
  }

  .html-content-area {
    margin-right: 0;
  }

  .sidebar-toggle {
    left: -40px;
    width: 40px;
    height: 80px;
  }

  .html-controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  .html-controls .btn-group {
    flex-wrap: wrap;
  }
}

/* HTML-specific improvements */
.html-content-editor-container::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.html-content-editor-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.html-content-editor-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
}

.html-content-editor-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Enhanced HTML loading state */
.html-content-editor {
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Fullscreen mode styles */
.html-content-area:fullscreen {
  background: #000;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.html-content-area:fullscreen .html-header {
  display: none;
}

.html-content-area:fullscreen .html-viewer-container {
  height: 100vh;
}

.html-content-area:fullscreen .html-controls {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-bottom: 1px solid #333;
}

.html-content-area:fullscreen .html-controls .btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: #555;
  color: white;
}

.html-content-area:fullscreen .html-controls .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #777;
}

/* Keyboard shortcut hints */
.keyboard-hints {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.keyboard-hints.show {
  opacity: 1;
}

.keyboard-hints kbd {
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.75rem;
}

/* HTML Document Container - Resizable Layout */
    .html-document-container {
        display: flex;
        height: calc(100vh - 80px);
        position: relative;
    }
    
    .html-content-area {
        flex: 1;
        min-width: 300px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* HTML Resize Handle */
    .html-resize-handle {
        width: 12px;
        background: #e9ecef;
        cursor: col-resize;
        border-left: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
        position: relative;
        transition: background-color 0.2s ease;
        min-height: 100%;
        min-width: 12px;
        touch-action: none;
    }
    
    .html-resize-handle:hover,
    .html-resize-handle:active {
        background: var(--color-05);
    }
    
    .html-resize-handle::before {
        content: '⋮⋮';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #6c757d;
        font-size: 14px;
        line-height: 1;
        pointer-events: none;
    }
    
    .html-resize-handle:hover::before,
    .html-resize-handle:active::before {
        color: white;
    }
    
    .right-sidebar {
        width: 33%;
        min-width: 250px;
        max-width: 60%;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    /* Responsive behavior */
    @media (max-width: 991px) {
        .html-document-container {
            flex-direction: column;
        }
        
        .html-resize-handle {
            display: none;
        }
        
        .right-sidebar {
            width: 100%;
            max-width: 100%;
            margin-top: 20px;
            padding-left: 0;
        }
        
        .html-content-area {
            padding-right: 0;
        }
    }
    
    /* Resize animation */
    .html-document-container.resizing .html-content-area,
    .html-document-container.resizing .right-sidebar {
        transition: none;
    }
    
    /* Touch-specific improvements */
    @media (hover: none) and (pointer: coarse) {
        .html-resize-handle {
            width: 16px;
            min-width: 16px;
        }
        
        .html-resize-handle::before {
            font-size: 16px;
        }
    }
    
    /* Prevent text selection during resize on all devices */
    .html-document-container.resizing {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .html-document-container.resizing * {
        pointer-events: none;
    }
    
    .html-document-container.resizing .html-resize-handle {
        pointer-events: auto;
    }
    
    /* Edit item styling */
    .edit-item {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }    .edit-item:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    }
    
    .edit-item.selected {
        background: #e7f3ff;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    
    .edit-title {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }
    
    .edit-description {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .edit-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        color: #888;
    }
    
    .edit-date {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .edit-size {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        color: #888;
    }
    
    .empty-edits-message {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }
    
    .load-selected-edit-btn, .delete-selected-edit-btn {
        margin-top: 15px;
    }
    
    /* Save form styling */
    #htmlEditSaveForm .btn {
        border-radius: 8px;
        padding: 12px 20px;
        font-weight: 500;
    }
    
    #htmlEditSaveForm .btn small {
        font-weight: normal;
        font-size: 0.8rem;
    }

    /* Save status styling */
    .save-status {
        padding: 8px 12px;
        margin-top: 10px;
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .save-status.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .save-status.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* Notes selection modal styles */
    .note-item {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .note-item:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    }
    
    .note-item.selected {
        background: #e3f2fd;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    }
    
    .note-title {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }
    
    .note-preview {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .note-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        color: #888;
    }
    
    .note-date {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .note-context-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .note-context-badge.user {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .note-context-badge.client {
        background: #e8f5e8;
        color: #388e3c;
    }
    
    .note-doc-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .note-doc-badge.badge-html {
        background: #fff3cd;
        color: #856404;
    }
    
    .note-doc-badge.badge-pdf {
        background: #ffebee;
        color: #c62828;
    }
    
    .note-doc-badge.badge-legal {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .note-source {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        color: #888;
    }
    
    .d-flex.gap-1 > * + * {
        margin-left: 0.25rem;
    }
    
    .empty-notes-message {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }
    
    .load-selected-note-btn {
        margin-top: 15px;
    }

/*------------- Legal Document HTML Page Styles End -------------*/
/*---------------------------------------------------------------*/

/*---------------------------------------------------------------*/
/*------------- Legal Document PDF Page Styles Start -------------*/

.pdf-document-container {
        display: flex;
        height: calc(100vh - 80px);
        position: relative;
    }
    
    .pdf-content-area {
        flex: 1;
        min-width: 300px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* PDF Resize Handle */
    .pdf-resize-handle {
        width: 12px;
        background: #e9ecef;
        cursor: col-resize;
        border-left: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
        position: relative;
        transition: background-color 0.2s ease;
        min-height: 100%;
        margin-left: 10px;
        touch-action: none;
        user-select: none;
    }
    
    .pdf-resize-handle:hover {
        background: var(--color-05);
    }
    
    .pdf-resize-handle:active {
        background: var(--color-06);
    }
    
    .pdf-resize-handle::before {
        content: '⋮⋮';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #6c757d;
        font-size: 12px;
        line-height: 1;
    }
    
    .pdf-resize-handle:hover::before {
        color: white;
    }
    
    .pdf-resize-handle:active::before {
        color: white;
    }
    
    /* Touch-specific improvements */
    @media (hover: none) and (pointer: coarse) {
        .pdf-resize-handle {
            width: 16px;
            background: #d68c2c;
        }
        
        .pdf-resize-handle::before {
            color: white;
            font-size: 14px;
        }
    }
    
    @media (pointer: coarse) {
        .pdf-resize-handle {
            pointer-events: auto;
        }
    }
    
    .pdf-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        position: relative;
    }
    
    .pdf-header h3 {
        margin: 0;
        color: #333;
        font-size: 1.25rem;
    }
    
    .pdf-navigation {
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .pdf-navigation .btn {
        padding: 8px 12px;
        font-size: 0.875rem;
        border-radius: 6px;
    }
    
    .pdf-metadata {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.9rem;
        color: #666;
    }
    
    .pdf-viewer-container {
        flex: 1;
        position: relative;
        background: #f5f5f5;
        display: flex;
        flex-direction: column;
    }
    
    .pdf-controls {
        padding: 0px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .pdf-controls .btn-group {
        display: flex;
        gap: 5px;
    }
    
    .pdf-controls .btn {
        padding: 5px 10px;
        font-size: 0.875rem;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #333;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .pdf-controls .btn:hover {
        background: #e9ecef;
        border-color: #adb5bd;
    }
    
    .pdf-controls .btn:active {
        background: #dee2e6;
    }
    
    /* PDF Controls collapsed state */
    .pdf-controls.collapsed {
        display: none !important;
    }
    
    #pdf-controls-toggle.collapsed .toggle-icon {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
    
    #pdf-controls-toggle .toggle-icon {
        transition: transform 0.3s ease;
    }
    
    .zoom-info {
        font-size: 0.875rem;
        color: #666;
        font-weight: 500;
    }
    
    .pdf-embed-container {
        flex: 1;
        position: relative;
        overflow: auto;
        background: #f5f5f5;
        transform-origin: top left;
        transition: transform 0.3s ease;
    }
    
    .pdf-embed {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
        min-height: 600px;
    }
    
    .right-sidebar {
        width: 33%;
        min-width: 250px;
        max-width: 60%;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 10px;
    }
    
    /* Responsive behavior */
    @media (max-width: 991px) {
        .pdf-document-container {
            flex-direction: column;
        }
        
        .pdf-resize-handle {
            display: none;
        }
        
        .right-sidebar {
            width: 100%;
            max-width: 100%;
            margin-top: 20px;
            padding-left: 0;
        }
        
        .pdf-content-area {
            padding-right: 0;
        }
    }
    
    /* Resize animation */
    .pdf-document-container.resizing .pdf-content-area,
    .pdf-document-container.resizing .right-sidebar {
        transition: none;
    }
    
    .notes-editor-container {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .notes-editor {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    #pdf-tiny-editor {
        flex: 1;
        min-height: 380px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        resize: none;
        outline: none;
        transition: border-color 0.3s ease;
    }
    
    /* Client info styling if present */
    .client-info-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        background: #f0f0f0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        color: #d68c2c;
        font-size: 1.5rem;
    }
    
    .save-status {
        font-size: 0.9rem;
        color: #666;
        margin: 15px 20px 20px 20px;
        padding: 8px 12px;
        border-radius: 4px;
        background: #f8f9fa;
        border-left: 3px solid #d68c2c;
    }
    
    .save-status.success {
        color: #155724;
        background: #d4edda;
        border-left-color: #28a745;
    }
    
    .save-status.error {
        color: #721c24;
        background: #f8d7da;
        border-left-color: #dc3545;
    }
    
    /* TinyMCE container styling */
    .tox-tinymce {
        border-radius: 4px !important;
        border: 1px solid #ddd !important;
    }
    
    .tox .tox-toolbar {
        border-bottom: 1px solid #ddd !important;
    }
    
    /* Hide sidebar elements for PDF context since we have our own rich text editor */
    .fixed-sidebar-container {
        display: none !important;
    }
    
    /* Adjust main content to take full width when sidebar is hidden */
    .main-content-with-sidebar {
        width: 100% !important;
        float: none !important;
    }
    
    /* Notes selection modal styles */
    .note-item {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .note-item:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    }
    
    .note-item.selected {
        background: #e3f2fd;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    }
    
    .note-title {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }
    
    .note-preview {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .note-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        color: #888;
    }
    
    .note-date {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .note-context-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .note-context-badge.user {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .note-context-badge.client {
        background: #e8f5e8;
        color: #388e3c;
    }
    
    .note-doc-badge {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .note-doc-badge.badge-pdf {
        background: #ffebee;
        color: #c62828;
    }
    
    .note-doc-badge.badge-legal {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .note-source {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        color: #888;
    }
    
    .d-flex.gap-1 > * + * {
        margin-left: 0.25rem;
    }
    
    .empty-notes-message {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }
    
    .load-selected-note-btn {
        margin-top: 15px;
    }
    
    /* PDF-specific improvements */
    .pdf-embed-container::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }
    
    .pdf-embed-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }
    
    .pdf-embed-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 6px;
    }
    
    .pdf-embed-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* Enhanced PDF loading state */
    .pdf-embed {
        background: white;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    
    /* Zoom transition improvements */
    .pdf-embed-container.zooming {
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }

    
    /* Fullscreen mode styles */
    .pdf-content-area:fullscreen {
        background: #000;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .pdf-content-area:fullscreen .pdf-header {
        display: none;
    }
    
    .pdf-content-area:fullscreen .pdf-viewer-container {
        height: 100vh;
    }
    
    .pdf-content-area:fullscreen .pdf-controls {
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border-bottom: 1px solid #333;
    }
    
    .pdf-content-area:fullscreen .pdf-controls .btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: #555;
        color: white;
    }
    
    .pdf-content-area:fullscreen .pdf-controls .btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: #777;
    }
    
    /* Keyboard shortcut hints */
    .keyboard-hints {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 0.8rem;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .keyboard-hints.show {
        opacity: 1;
    }
    
    .keyboard-hints kbd {
        background: #333;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: monospace;
        font-size: 0.75rem;
    }
    
    /* PDF Upload Modal Styles */
    .upload-area {
        border: 2px dashed #d68c2c;
        border-radius: 8px;
        padding: 40px 20px;
        text-align: center;
        background: #f8f9fa;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .upload-area:hover {
        border-color: #b8761f;
        background: #f0f0f0;
    }
    
    .upload-area.dragover {
        border-color: #28a745;
        background: #e8f5e8;
    }
    
    .upload-icon {
        font-size: 3rem;
        color: #d68c2c;
        margin-bottom: 15px;
    }
    
    .upload-text {
        color: #666;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .upload-hint {
        color: #888;
        font-size: 0.9rem;
    }
    
    .file-input {
        display: none;
    }
    
    .upload-progress {
        margin-top: 20px;
        display: none;
    }
    
    .file-info {
        background: #e3f2fd;
        border-radius: 6px;
        padding: 15px;
        margin-top: 15px;
        display: none;
    }
    
    .file-info-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    
    .file-info-item:last-child {
        margin-bottom: 0;
    }
    
    .file-info-label {
        font-weight: 600;
        color: #333;
    }
    
    .file-info-value {
        color: #666;
    }

/*------------- Legal Document PDF Page Styles End -------------*/
/*--------------------------------------------------------------*/

/*------------- Register and Login Page Styles -------------*/

log-reg-form .form-floating {
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: var(--bg-color);
}

.signup-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 43, 91, 0.08) 0%, rgba(193, 154, 107, 0.15) 100%);
}

.signup-card {
  background: var(--light-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
}

.signup-left {
  background-color: var(--color-01);
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.signup-left::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--color-03);
  opacity: 0.1;
  border-radius: 50%;
}

.logo-section {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.logo-section h2 {
  color: var(--color-03);
}

.logo-section img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.logo-section p {
  font-size: 14px;
  font-style: italic;
  color: var(--color-03);
  text-align: left;
  margin-left: 2px;
}

.intro-section h4 {
  color: var(--color-06);
}

.intro-section p {
  color: var(--color-05);
  font-size: 14px;
}

.signup-right {
  padding: 60px 40px;
  background-color: var(--color-04);
}

.form-title {
  color: var(--color-02);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.form-subtitle {
  color: #666;
  margin-bottom: 40px;
}

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

.form-control {
  border: 1px solid #e1e8ed;
}

.declaration p,
.declaration .form-check .form-check-label {
  font-size: 14px;
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(193, 154, 107, 0.15);
  outline: none;
  border: 1px solid var(--color-05);
}

input[type="checkbox"]:checked {
  box-shadow: 0 0 0 0.2rem rgba(193, 154, 107, 0.15);
}

.btn-signup {
  padding: 17px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

.btn-signup:hover {
  transform: translateY(-1px);
}

.alert {
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.login-link {
  text-align: center;
  margin-top: 30px;
}

.login-link .single-link {
  color: var(--color-03);
  text-decoration: none;
}

.login-link a.single-link:hover {
  color: var(--color-02);
}

.password-requirements {
  font-size: 0.875rem;
  color: #666;
  margin-top: 5px;
}

.conditional-field {
  display: none;
  animation: slideDown 0.3s ease;
}

.conditional-field.show {
  display: block;
}

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

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

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: var(--color-04);
}

.file-upload-display {
  display: flex;
  align-items: center;
  padding: 17px 15px;
  border: 1px solid var(--color-01);
  border-radius: 4px;
  background-color: var(--color-04);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-display:hover {
  border-color: var(--color-03);
  background-color: var(--light-color);
}

.file-upload-display i {
  margin-right: 8px;
  color: #666;
}

.file-upload-text {
  color: #666;
  flex: 1;
}

@media (max-width: 768px) {
  .signup-left {
    padding: 40px 20px;
  }

  .signup-right {
    padding: 40px 20px;
  }

  .form-title {
    font-size: 2rem;
  }
}

/*--------- Account Approval ---------*/

.approval-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.approval-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.approval-message {
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid var(--info-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
}

.approval-message-success {
  background: rgba(73, 184, 23, 0.1);
  border: 1px solid var(--info-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
}

.approval-message i {
  color: var(--info-color);
  margin-top: 2px;
  font-size: 1.2rem;
}

.approval-message p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.approval-message-success i {
  color: var(--info-color);
  margin-top: 2px;
  font-size: 1.2rem;
}

.approval-message-success p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.approval-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem 0;
  position: relative;
  gap: 2rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  flex: 1;
}

/* Horizontal connector line */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 11%;
  width: 100%;
  height: 2px;
  background: #ddd;
  transform: translateX(50%);
  z-index: 0;
}

.timeline-item.completed::after {
  background: var(--color-01);
}

.timeline-item.pending::after {
  background: var(--color-05);
}

.timeline-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.timeline-item.completed .timeline-icon {
  background: var(--color-01);
}

.timeline-item.pending .timeline-icon {
  background: var(--color-03);
}

.timeline-item:not(.completed):not(.pending) .timeline-icon {
  background: #ddd;
  color: #999;
}

.timeline-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--primary-color);
}

.timeline-content p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .approval-timeline {
    flex-direction: column;
    gap: 1.5rem;
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-item {
    text-align: left;
    align-items: flex-start;
  }
}

/*------------- Coming Soon Page Styles -------------*/


.comingsoonPageMain {
  padding: 100px 250px;
}

.comingsoonContent {
  align-content: center;
  padding: 10px 10px;
}

.comingsoonContent h1 {
  font-size: 50px;
  font-weight: 600;
  color: var(--color-01);
  padding: 3px;
  text-align: left;
}

.comingsoonContent p {
  font-size: 16px;
  color: var(--color-01);
  padding: 3px;
  text-align: center !important;
}

.comingsoonContent .btn {
  max-width: 140px;
  margin: 0 auto;
  max-width: 140px;
  margin: 0 auto;
}

.comingsoonImg img {
  text-align: left;
}

.comingsoonImg img {
  width: 100%;
  padding: 10px;
}

@media (max-width: 768px) {
  .comingsoonPageMain {
    padding: 50px;
  }

  .comingsoonImg img {
    padding: 50px;
  }

  .comingsoonContent h1 {
    font-size: 40px;
  }

  .comingsoonContent {
    padding: 0px 65px;
    margin-bottom: 50px;
  }
}

@media (max-width: 991px) {
  .comingsoonPageMain {
    padding: 10px 80px;
  }

  .comingsoonImg img {
    padding: 50px;
  }

  .comingsoonContent h1 {
    font-size: 40px;
  }
}

@media (max-width: 1200px) {
  .comingsoonPageMain {
    padding: 100px 50px;
  }

  .comingsoonImg img {
    padding: 60px;
  }

  .comingsoonContent h1 {
    font-size: 45px;
  }
}

/*------------- My Acount Page Styles -------------*/

.tab-content.tableBorder {
  display: block !important;
  padding: 15px;
}

.myAccountMain .tableTitlebar {
  flex-direction: row;
  justify-content: flex-start;
}

.myAccountMain .titleHead {
  color: var(--color-01);
  width: 185px;
}

.myAccountMain .titleHead.active {
  background-color: var(--color-01);
  border: 1px solid var(--color-01);
  color: var(--color-04);
}

/*------------- Profile Page Styles -------------*/

#profileTab {
  width: 100% !important;
}

.profileShow .show {
  width: 100% !important;
  opacity: 1 !important;
}

.profilePageMain {
  padding: 20px;
  width: 100%;
}

.profileImage {
  padding: 17px 15px;
  border-radius: 10px;
  background-color: var(--color-05);
}

.profileImage .profile-image-container {
  margin-top: 15px;
}

#profile_image {
  font-size: 12px;
}

.profileDetails {
  margin-top: 10px;
}

.profileFormDetails {
  padding: 0px 20px;
}

.profileFormDetails .form-check-label {
  padding: 2px;
}

.profileTableTitle {
  background-color: var(--color-01) !important;
}

.profileTableTitle h3 {
  font-size: 20px;
}

.profileTableBody {
  background-color: var(--color-05) !important;
}

.profileTableBody .btn {
  background-color: var(--color-03);
  width: 168px;
  border: 1px solid var(--color-03);
  color: var(--color-01);
}

.profileTableBody .btn:hover {
  background-color: var(--color-04);
  border: 1px solid var(--color-01);
  color: var(--color-01);
}

.profileDetails {
  border-bottom: 1px solid var(--color-01);
  font-size: 20px;
}

.profileTableBody label {
  font-size: 15px;
}

.profileTableBody input {
  font-size: 14px;
}

.profileTableBody select {
  font-size: 14px;
}

.profileTableBody textarea {
  font-size: 14px;
}

.profileTableBody .form-text {
  font-size: 11px;
  float: right;
}

.profileCompanyDetails {
  padding: 10px 30px;
}

.profilePracticeArea {
  padding: 10px 30px;
}

.profilePracticeArea .row {
  padding: 0px 7px;
}

.profilePracticeArea .form-check-label {
  font-size: 14px;
  padding: 3px;
  margin-left: 7px;
}

.profilePracticeArea .select2-container .select2-search--inline .select2-search__field {
  font-size: 15px;
  margin-left: 10px;
  height: 30px;
  color: #000306;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: var(--color-05);
}

.select2-container .select2-selection--multiple .select2-selection__choice:hover {
  background-color: var(--color-05);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #465e74;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  padding: 0 4px;
  position: relative;
  left: 0px;
  top: 0px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--color-04);
}

.profileCompanyDetails .form-check {
  padding-left: 2.5em;
}

.profilePracticeArea .form-label {
  font-weight: 700;
}

.select2-container {
  width: 98% !important;
  height: 20px;
}

.select2-container .select2-selection--multiple {
  padding: 0px;
}

#languages .selection .select2-search--inline {
  padding: 10px !important;
}

.select2-container--open .select2-dropdown {
  left: 0;
  top: 20px;
}

.select2-container--default .select2-results_option--highlighted.select2-results_option--selectable {
  background-color: var(--color-05);
  color: white;
}

.profileGenderOption {
  padding: 5px 10px;
}

.profileResidentOption {
  padding: 0px 35px;
}

.profileGenderOption {
  padding: 0px 35px;
}

.profileGenderOption .genderOption {
  margin-left: 10px;
}

.profileResidentOption .residentOption {
  margin-left: 10px;
}

.profileMemoryDetails {
  padding: 0px 30px;
}

.memberCategoryDetails {
  margin-top: 15px;
}

input[type="radio"] {
  accent-color: var(--color-01);
}

.custom-radio label {
  border-radius: 5px;
}

.passwordUpdateDetails {
  padding: 10px 30px;
}

.passwordUpdateDetails label {
  margin-bottom: .5rem;
}

/* Hide the default radio */




.custom-radio input[type="radio"]+label {
  background-color: #fff;
  color: #333;
  margin-left: 5px;
}

.custom-radio input[type="radio"]:checked+label {
  background-color: #ccc;
  border-color: #ccc;
  color: #3a4b5a;
}

/*----------- Subscription Page Styles ----------*/

.billingHistoryDetails .col-lg-12 {
  text-align: right;
}

.currentPlanDetails .row {
  padding: 10px 30px;
}

.billingHistoryDetails .row {
  padding: 25px 30px;
}

.changeSubscriptionDetails .form-section {
  padding: 10px 30px;
}

.subscription-modal {
  font-family: Arial, sans-serif;
  padding: 30px;
  max-width: 800px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.modal-left {
  flex: 1 1 60%;
}

.modal-right {
  flex: 1 1 35%;
  background: #fafafa;
  border-radius: 6px;
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.info-note {
  font-size: 14px;
  margin-bottom: 20px;
}

.current-plan-box {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.badge-blue {
  background-color: #007bff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}

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

.form-section label {
  font-weight: bold;
  display: block;
}

.summary-icon {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 10px;
}

.summary-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.summary-note {
  font-size: 13px;
  color: #555;
}


.status-paid {
  color: #28a745;
  background-color: #ccffd6;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
}

.status-not-paid {
  color: #a72828;
  background-color: #fcc;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
}

.year-dropdown {
  margin-top: 10px;
  font-size: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  color: #007bff;
}

.tab-menu {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.tab-menu div {
  padding-bottom: 6px;
  cursor: pointer;
}

.tab-menu .active {
  border-bottom: 3px solid #007bff;
  color: #007bff;
  font-weight: bold;
}

.currentPlanDetails .packageName {
  font-weight: 800;
  font-size: 22px;
}

.currentPlanDetails .packagBilling {
  font-weight: 700;
  font-size: 20px;
}

.currentPlanDetails .packagActive {
  margin-top: 0;
  width: 120px;
}

.currentPlanDetails .packagCancel:hover {
  width: 120px;
  background-color: var(--bs-btn-hover-border-color);
  color: #ffff;
}

.currentPlanDetails .packagChange {
  margin-left: 25px;
  width: 120px;
}

.billingHistoryDetails .packagView {
  margin-top: 0;
  width: 100px;
}

.billingHistoryDetails .packagPrint {
  margin-top: 0;
  width: 100px;
}

.pkgTitleOne {
  color: #3FB8AF;
  font-size: 30px;
  margin-top: 10px;
}

.pkgTitleSecound {
  color: #3A8FD1;
  font-size: 30px;
  margin-top: 10px;
}

.pkgTitleThird {
  color: #e26a6a;
  font-size: 30px;
  margin-top: 10px;
}

.pkgPrice {
  font-size: 60px;
}

.pkgPrice small {
  font-size: 16px;
  color: var(--color-01);
}

.tileContent {
  margin-left: 10px;
}

.tileSelect .form-check-label {
  padding: 3px 7px;
}

.calculateBillingButton {
  width: 200px;
}

.calculateCancel {
  width: 100px;
  background-color: #e1e0e0;
  color: #848282;
}

.subscriptionPlanCheck {
  margin-left: 20px;
}

.subscriptionPlanCheck label {
  padding: 4px 7px;
}

.summaryDetails {
  padding: 10px 30px;
}

.summaryDetails .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  background-color: #fefbf8;
}

.summaryDetails .card h5 {
  color: #465e74;
  text-align: left;
}

.summaryDetails .card i {
  color: var(--color-01);
  padding: 22px;
  border-radius: 65px;
  border: 4px solid var(--color-01);
  font-size: 65px;
}

.summaryDetails .card p {
  font-size: 16px !important;
}

.summaryDetails .card a {
  color: #d7a769 !important;
  font-weight: 500;
  text-decoration: none;
}

.billingIcon {
  font-size: 48px;
  color: #2a72e5;
  margin-bottom: 15px;
  padding: 24px 0px;
}

.yearandMonthlyChange {
  padding: 25px 0px;
}


/*------------- Setting Page Styles -------------*/

#settingTab {
  width: 100% !important;
}

.settingShow .show {
  width: 100% !important;
  opacity: 1 !important;
}

.settingPageMain {
  padding: 20px;
  width: 100%;
}

.settingTableTitle {
  background-color: var(--color-01) !important;
}

.settingTableTitle h3 {
  font-size: 20px;
}

.settingTableBody {
  background-color: var(--color-05) !important;
}

.settingTableBody .btn {
  background-color: var(--color-03);
  width: 168px;
  border: 1px solid var(--color-03);
  color: var(--color-01);
}

.settingTableBody .btn:hover {
  background-color: var(--color-04);
  border: 1px solid var(--color-01);
  color: var(--color-01);
}

.settingDetails {
  border-bottom: 1px solid var(--color-01);
  font-size: 20px;
}

.profileSaveButton .col-md-12 .d-flex {
  float: right;
}

.profileSaveButton .col-md-12 .d-flex button {
  width: 130px;
}


/*------------- resources Page Styles start -------------*/
.jurisTable th {
  background-color: #3d4e5e;
  color: #d7a769;
  border: 1px solid #3d4e5e;
  padding: 7px;
  text-align: center;
  font-weight: 400;
}

.tableFullWidth {
  width: 100%;
}

.tableTextAlignCenter,
.cellTextCenter {
  text-align: center;
}

.cellTextLeft {
  text-align: left;
}

.jurisTable .filterSet td {
  background-color: var(--color-04);
}

.jurisTable {
  background-color: var(--color-04);
  overflow: hidden;
}

.juristableFullWidth {
  width: 100%;
}

.jurisTable tr:nth-child(even) td {
  background-color: #fff;
}


ul {
  list-style: none;
}


.jurisTable td {
  border: 1px solid var(--color-03);
}

.jurisTable td {
  border: 1px solid var(--color-05);
}

.jurisTable td {
  padding: 12px 6px;
  font-weight: 400;
  position: relative;
  font-size: 14px;

}

/*------------- glossary tool -------------*/
.pagination li a {
  background-color: var(--color-01);
  color: var(--color-04);
  border: 1px solid var(--color-04);
}

.pagination li a {
  text-decoration: none;
  cursor: pointer;
  padding: 3px 6px;
  display: block;
  text-align: center
}

.pagination li a:hover {
  background-color: var(--color-03);
  color: var(--color-04);
  border: 1px solid #f5faff;
}

.pagination li a:hover {
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: center;
}

.pagination-stick-top {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
  width: fit-content;
  margin: 0 auto;
}

.pagination-stick-top.sticky {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  background-color: var(--color-04);
  padding: 7px 20px;
  border-radius: 4px;
}

/*------------- resources Page Styles end -------------*/

/*------------- Dashboard-coming soon page style start -------------*/
.comingsoonContent .headingTitle {
  font-size: 47px !important;
  color: var(--color-03);
  margin-bottom: 30px;
  text-align: center;
}

.comingsoonContent .commingSoonTitle {
  font-size: 35px;
}

/*-------------legislation-comingsoon-page style ----------*/
.comingsoonContent .headingText {
  font-size: 43px !important;
  color: var(--color-03);
  margin-bottom: 30px;
  text-align: center;
}

/*------------- Dashboard-coming soon page style end-------------*/

/*-------------settings page style ----------*/
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--color-01);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.settings.jurisTable th {
  background-color: var(--color-05);
  color: #394a59;
  border: 1px solid #eee;
  padding: 7px;
  text-align: center;
  font-weight: 400;
}

.settingsFormDetails {
  padding: 0px 12px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color:var(--color-05);
  color:var(--color-01);
}
/*------------- settings page style end-------------*/


/*------------- Exam Preps styles-------------*/
.question-box {
  border: 1px solid var(--color-05);
  padding: calc(var(--bs-gutter-x) * .5);
  padding-bottom: 30px;
  background-color: var(--color-04);
  border-radius: 0px 0px 4px 4px;
}

.explanation {
  display: none;
  margin-top: 15px;
  background-color: var(--color-border);
  padding: 10px;
  border-radius: var(--border-radious);
}

.next-btn {
  margin-top: 15px;
}

.submit-btn {
  margin-top: 10px;
}

/*------------- sidebar Styles start -------------*/
.inpage-sidebar-list li a {
  display: block;
  background-color: var(--color-01);
  margin-bottom: 2px;
  color: var(--color-03);
  padding: 5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.inpage-sidebar-list {
  position: sticky !important;
  z-index: 100;
  padding: 0px;
  top: 160px;
}

.inpage-sidebar-list li a:hover,
.inpage-sidebar-list li a:focus,
.inpage-sidebar-list li a.active {
  color: var(--color-01);
  border-left: 3px solid var(--color-01);
  background-color: var(--color-03);
  padding-left: 5px;
}

.prep-titles li:not(.dropdown-item) a {
  color: var(--color-03);
}

.prep-titles .dropdown-submenu li a {
  background-color: var(--color-02);
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.prep-titles li:not(.dropdown-item) a:hover,
.prep-titles li:not(.dropdown-item) a:focus,
.prep-titles .dropdown-submenu li.active a {
  color: var(--color-01);
  border-left: 3px solid var(--color-02);
  background-color: var(--color-03);
}

.prep-titles .dropdown-submenu {
  border: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  transition: max-height 0.3s ease;
}

.prep-titles .dropdown-submenu.open {
  max-height: 500px;
  overflow-y: auto;
}

.prep-titles .dropdown-toggle {
  background-color: var(--color-01);
  color: var(--color-03);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  padding-right: 25px;
}

.prep-titles .dropdown-toggle::after {
  position: absolute;
  top: 14px;
  right: 3px;
}

.nav_dropdown.dropdown-open+.dropdown_menu {
  display: flex;
}


/*------------- sidebar Styles end -------------*/

.flashcard-container {
  perspective: 1000px;
  width: 100%;
}

.flashcard {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
  min-height: 179px;
  margin-bottom: calc(var(--bs-gutter-x)* .5);
}

/* Flip effect */
.flashcard-container.active .flashcard {
  transform: rotateY(180deg);
}

/* Set a common wrapper to allow content to define height */
.flashcard .front,
.flashcard .back {
  position: absolute;
  width: 100%;
  padding: 20px;
  backface-visibility: hidden;
  border: 1px solid var(--color-05);
  border-radius: var(--border-radious);
  background-color: var(--color-03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.flashcard .front {
  z-index: 2;
  pointer-events: auto;
}

.flashcard-container.active .flashcard .front {
  z-index: 0;
  pointer-events: none !important;
}

.flashcard .back {
  pointer-events: none;
}

.flashcard-container.active .flashcard .back {
  z-index: 2;
  pointer-events: auto !important;
}

.flashcard .back a {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 10;
  color: #fff;
  text-decoration: underline;
}

.flashcard .back a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.flashcard .front .card-cat {
  position: absolute;
  left: 0px;
  top: 0px;
  padding: 5px 10px;
  background-color: var(--color-01);
  color: var(--color-03);
  font-size: 12px;
}

.flashcard .back .card-cat {
  position: absolute;
  right: 0px;
  bottom: 0px;
  padding: 5px 10px;
  background-color: var(--color-03);
  color: var(--color-01);
  font-size: 12px;
}

.flashcard .front i {
  font-size: 35px;
  color: var(--color-danger-deep);
}

.flashcard .front .front-content {
  margin-top: 10px;
  width: 100%;
}

.flashcard .front .front-content p {
  margin-bottom: 5px;
  width: 100%;
  text-align: center;
}

/* Flip back */
.flashcard .back {
  transform: rotateY(180deg);
  background-color: var(--color-02);
  padding-left: 20px !important;
  padding-right: 20px !important;
  direction: ltr;
  unicode-bidi: normal;
}

.flashcard .back p {
  color: var(--color-03);
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.flashcard .back p:last-of-type {
  margin-bottom: 0;
}

.flashcard .back p strong,
.flashcard .back strong {
  color: var(--color-03);
  text-align: center;
  display: inline;
}

/* Create dynamic height container */
.flashcard::before {
  content: '';
  display: block;
}

.flashcard,
.flashcard .front,
.flashcard .back {
  min-height: 179px;
}


/*------------- course page style start -------------*/

.learn-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.learn-box h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.learn-list.one-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learn-item {
  background-color: #f7f7f7;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1em;
  color: #333;
}


.pricing-box {
  background-color: var(--color-03);
  font-family: Arial, sans-serif;
  width: 320px;
  margin: 30px auto;
  padding: 24px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.pricing-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.pricing-box p {
  margin: 6px 0;
  color: #444;
  font-size: 14px;
}

.pricing-box a.learn-more {
  color: #5624d0;
  text-decoration: none;
  font-weight: 600;
}

.btn-purple {
  background-color: #5624d0;
  color: #fff;
  font-weight: bold;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  margin: 16px 0 10px;
  cursor: pointer;
}

.price {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0 10px;
}

.btn-outline {
  border: 2px solid #5624d0;
  background: #fff;
  color: #5624d0;
  font-weight: bold;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  margin: 6px 0;
  cursor: pointer;
}

.small-note {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin: 10px 0;
}

.links {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.links a {
  margin: 0 8px;
  color: #5624d0;
  font-weight: bold;
  text-decoration: none;
}

.coupon-box {
  border: 1px dashed #ccc;
  padding: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #333;
}

.coupon-code {
  font-weight: bold;
}

.coupon-input {
  display: flex;
  margin-top: 10px;
}

.coupon-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.coupon-input button {
  background-color: #5624d0;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.pricing-box button {
  width: 100%;
}

.courseContent h1 {
  font-size: 40px;
}

.features-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.features-section h1 {
  font-size: 2em;
  margin-bottom: 40px;
  font-weight: bold;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.feature-box .icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.feature-box h2 {
  font-size: 1.2em;
  margin: 10px 0;
  font-weight: 600;
}

.feature-box p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.5;
}

/*------------- course page style end -------------*/



/*---------------------------------------------------

---------------- How It Works start --------------

---------------------------------------------------*/

/* Arrow styles for left and right alignment */
.bocata.arrow-left::after,
.bocata.arrow-right::after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  z-index: 10;
  border: 0;
}

.bocata.arrow-left::after {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #ffffff;
  top: 50%;
  margin-top: -10px;
  left: -10px;
}

.bocata.arrow-right::after {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #ffffff;
  top: 50%;
  margin-top: -10px;
  right: -10px;
}

.grey_light-block {
  background-color: #f2f2f2;
}

.timeline {
  position: relative;
  background-image: linear-gradient(to bottom,
      var(--color-01),
      var(--color-02),
      var(--color-03));
  width: 50px;
  text-align: center;
  transition: all 0.3s;
}

@media screen and (max-width: 768px) {
  .timeline {
    margin: 0 0 0 20px;
  }
}

@media screen and (min-width: 769px) {
  .timeline {
    margin: 0 auto;
  }
}

.howItWorksPageMain .timeline {
  margin-top: 100px;
  margin-bottom: 50px;
}

.timeline .point .year {
  padding: 6px;
  color: var(--color-01);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: var(--color-03);
  margin: 5px;
  border: 2px solid var(--color-01);
}

.timeline .point .bocata {
  position: relative;
  background-color: var(--color-04);
  padding: 20px;
  transition: all 0.3s;
  border: 1px solid var(--color-02);
  border-radius: 5px;
}


.timeline .point .bocata .bTitle h4 {
  font-size: 20px;
}

.timeline .point .bocata .bTitle h4 {
  font-size: 20px;
}

.timeline .point .bocata .bBody p,
.timeline .point .bocata .bBody li {
  text-align: left;
  font-size: 16px;
  margin-bottom: 3px;
  color: var(--color-02);
}

.timeline .point .bocata .bTitle h4 {
  font-size: 20px;
}

.timeline .point .bocata .bBody p,
.timeline .point .bocata .bBody li {
  text-align: left;
  font-size: 16px;
  margin-bottom: 3px;
  color: var(--color-02);
  position: relative;
}

.timeline .hexList p {
  text-align: left;
  font-size: 14px;
  margin-bottom: 3px;
  margin-left: 10px;
}

.hexList {
  list-style: none;
  padding-left: 0;
}

.hexList li {
  padding-left: 10px;
  list-style: none;
  position: relative;
}

@media screen and (max-width: 425px) {
  .timeline .point .bocata {
    width: 180px;
  }

  .timeline .point .bocata.little {
    width: 180px;
  }
}

@media screen and (min-width: 426px) and (max-width: 574px) {
  .timeline .point .bocata {
    width: 250px;
  }

  .timeline .point .bocata.little {
    width: 250px;
  }
}

@media screen and (min-width: 575px) {
  .timeline .point .bocata {
    width: 400px;
  }

  .timeline .point .bocata.little {
    width: 250px;
  }
}

.timeline .point .bocata+.bocata {
  margin-top: 35px;
}

/* Even - Now shows on RIGHT side */
.timeline .point:nth-child(even) .bocata {
  box-shadow: 6px 10px 20px -20px #394a59;
  left: 100px;
  position: relative;
}

.timeline .point:nth-child(even) .bocata.arrow-right::after {
  content: '';
}

/* Odd - Now shows on LEFT side */
.timeline .point:nth-child(odd) .bocata {
  box-shadow: -6px 10px 20px -20px #394a59;
  right: 525px;
  position: relative;
}

@media screen and (max-width: 768px) {
  .timeline .point:nth-child(even) .bocata,
  .timeline .point:nth-child(odd) .bocata {
    left: 100px;
    right: auto;
  }

  .timeline .point:nth-child(even) .bocata.arrow-left::after,
  .timeline .point:nth-child(odd) .bocata.arrow-left::after {
    content: '';
  }
}

@media screen and (min-width: 769px) {
  /* Even items on RIGHT in desktop */
  .timeline .point:nth-child(even) .bocata {
    left: 100px;
    right: auto;
  }

  .timeline .point:nth-child(even) .bocata.little {
    left: 100px;
  }

  .timeline .point:nth-child(even) .bocata.arrow-right::after {
    content: '';
  }

  /* Odd items on LEFT in desktop */
  .timeline .point:nth-child(odd) .bocata {
    right: 480px;
    left: auto;
  }

  .timeline .point:nth-child(odd) .bocata.little {
    right: 375px;
  }

  .timeline .point:nth-child(odd) .bocata.arrow-left::after {
    content: '';
  }
}

.timeline .point .arrow {
  border: solid #f2f2f2;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 20px;
  transform: rotate(45deg);
}

.timeline .point:first-child .arrow,
.timeline .point:last-child .arrow {
  border: solid #f2f2f2;
  border-width: 0 12px 12px 0;
  padding: 20px;
  transform: rotate(45deg);
}

.timeline .point:last-child .arrow {
  border-width: 0 16px 18px 0;
  position: absolute;
  bottom: -14px;
  right: -2px;
}

.timeline .point .arrow-clean {
  border: solid #f2f2f2;
  border-width: 0 20px 20px 0;
  display: inline-block;
  padding: 20px;
  position: absolute;
  left: -5px;
  bottom: -13px;
  transform: rotate(45deg);
}

.howItWorksPageMain .timeline h6 {
  font-weight: 700;
  color: var(--color-03);
  font-size: 20px;
}

.hexList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8.4px;
  height: 8.4px;
  background-color: var(--color-02);
  clip-path: polygon(35% 0%, 65% 0%, 100% 50%, 65% 100%, 35% 100%, 0% 50%);
}

/*---------------------------------------------------

---------------- How It Works end -------------------

---------------------------------------------------*/

/*------------- courses page style start-------------*/
.tile-thumbnail {
  overflow: hidden;
  /*margin-bottom: 10px;*/
  border-radius: 6px;
}

.tile-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Grid-specific adjustments */
.toggle-tile-body.grid .tile-thumbnail img {
  height: 160px;
  /* Fixed height for grid view */
}



.list .tile-thumbnail {
  width: 15%;
  max-width: 80px;
}

.grid .tile-thumbnail {
  margin-bottom: 10px;
}

.toggle-tile-body.list .tile-inline-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.toggle-tile-body.grid .tile-inline-wrapper {
  display: block;
}

.tile-content-details {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.tile-content-details h4 {
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tile-content-details .act-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  overflow: visible;
}

.tile-content-details .act-data li {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.examDetails {
  margin-top: 5px;
}

.examPrep table {
  margin-top: 5px;
}

.examPrep strong {
  display: block;
}

.toggle-tile-body .toggle-tile-content .act-data .view-button a {
  position: absolute;
  right: 10px;
  bottom: 10px;
}


.toggle-tile-body .toggle-tile-content {
  position: relative;
}

/*------------- courses page style end-------------*/

/*------------- flash card style start-------------*/

@keyframes lift {

  0%,
  100% {
    transform: translateZ(0rem);
  }

  50% {
    transform: translateZ(8rem);
  }
}

.lift-card {
  animation: lift 1s;
}

.card {
  position: relative;
  text-align: center;
  line-height: 3rem;
  width: 16rem;
  height: 20rem;
  margin: 4rem auto;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card_disabled {
  position: inherit !important;
  height: auto !important;
  width: auto !important;
}

.face {
  position: absolute;
  display: flex;
  justify-content: center;
  flex-direction: column;
  top: 0;
  left: 0;
  background: white;
  border-radius: 0.3rem;
  width: 100%;
  height: 100%;
  transition: transform 1s;
}

.front {
  border-top: 5px solid #f60;
  backface-visibility: hidden;
}

.back {
  border-top: 5px solid #25c;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.flipped {
  transform: rotateY(180deg);
}

.back-flipped {
  transform: rotateY(360deg);
}

.word {
  font-size: 5rem;
  font-weight: bold;
}

.kana {
  font-weight: bold;
  font-size: 2rem;
}

.sentence {
  color: #888;
}

.sentence span {
  color: #25c;
}

.back div {
  margin: 1rem;
}





/*-----------------------------------

      hearing flow style start

------------------------------------*/

.hearingFlowPageMain .timeline h6 {
  font-weight: 700;
  color: var(--color-03);
  font-size: 20px;
  text-align: left;
}

.hearingFlowPageMain .login-info-details p {
  text-align: left;
}

@media screen and (min-width: 769px) {
  .timeline .point:nth-child(2n) .bocata {
    right: 675px;
  }
}

@media screen and (min-width: 575px) {
  .timeline .point .bocata {
    width: 650px;
  }
}

/*-----------------------------------

      hearing flow style end

------------------------------------*/

/*-----------------------------------

    strategy timeline style start

------------------------------------*/

.tile-warpper.tile-progressive .tile-body .tile-icon {
  display: flex;
  flex-direction: column;
  background-color: var(--color-02);
  color: var(--color-03);
}

.tile-warpper.tile-progressive .tile-body .tile-icon .step-name {
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-03);
}

.tile-warpper.tile-progressive .tile-body .tile-icon .step-number {
  font-size: 25px;
  font-weight: 900;
  text-align: center;
  color: var(--color-03);
}


/*-----------------------------------

    strategy timeline style end

------------------------------------*/
.equal-width {
  table-layout: fixed;
  width: 100%;
}

.equal-width th,
.equal-width td {
  width: 33.33%;
  /* For 3 columns */
}


/*-----------------------------------

    strategy timeline style start

------------------------------------*/

.stratagyTimelineMain {
  margin-top: 30px;
}

.timeline-entry {
  background-color: rgba(248, 249, 250, 0.5);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-entry:hover {
  background-color: rgba(248, 249, 250, 0.8);
  transition: background-color 0.2s ease;
}

.empty-state {
  padding: 40px 20px;
}

.tile-progressive .tile-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/*-----------------------------------

    strategy timeline style end

------------------------------------*/

/*-----------------------------------

      hearing flow style start

------------------------------------*/

.hearingFlowPageMain .timeline h6 {
  font-weight: 700;
  color: var(--color-03);
  font-size: 20px;
  text-align: left;
}

.hearingFlowPageMain .login-info-details p {
  text-align: left;
}

@media screen and (min-width: 769px) {
  .timeline .point:nth-child(2n) .bocata {
    right: 475px;
  }
}

@media screen and (min-width: 575px) {
  .timeline .point .bocata {
    width: 450px;
  }
}

.timeline {
  position: relative;
  background-image: linear-gradient(to bottom, var(--color-01), var(--color-02), var(--color-03));
  width: 50px;
  text-align: center;
  transition: all 0.3s;
}

.timeline .point {
  padding: 1px 0px
}

/*-----------------------------------

      hearing flow style end

------------------------------------*/

/*-----------------------------------

    footer style strat

------------------------------------*/
.footer {
  background-color: var(--color-01);
  border-top: 1px solid #e9ecef;
  padding: 2rem 0 1rem 0;
}

.footer .error-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #d7a769;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #495057;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.footer .error-toggle:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
  text-decoration: none;
}

.footer .error-toggle i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.footer .error-toggle i {
  pointer-events: none;
}

.footer .last-updated {
  font-size: 0.875rem;
  margin-bottom: 0;
  background-color: var(--color-03);
  padding: 5px;
  border-radius: 4px;
  max-width: 303px;
  color: var(--color-01);
  margin: 0 auto;


}

.footer .copyright {

  font-size: 0.8rem;
  padding-top: 1rem;
  /* border-top: 1px solid #e9ecef;*/
}

.footer .copyright p {
  color: var(--color-05);
}

.footer .copyright a {
  text-decoration: none;
  color: var(--color-03);
}

.footer .copyright a:hover {
  /* text-decoration: underline;*/
  color: var(--color-04);
}

/* Error popup styles */
.errorWrapper {
  position: relative;
}

/*-----------------------------------

    footer style end

------------------------------------*/


/*-----------------------------------

   Clients Workspace Hub style start

------------------------------------*/

.min-vh-18 {
  min-height: 60vh;
}

.myAccountMain {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.headingText {
  color: #D4A574;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.commingSoonTitle {
  color: #5a6269;
  font-weight: 700;
  font-size: 2.2rem;
  margin: 1rem 0 2rem 0;
  text-shadow: none;
}

.comingsoonImg img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.comingsoonContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}

.comingsoonImg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Override btn-action specifically for this page to match screenshot */
.clients-workspace-btn {
  background-color: #5a6269 !important;
  border-color: #5a6269 !important;
  color: white !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  border: 1px solid #5a6269 !important;
}

.clients-workspace-btn:hover {
  background-color: #495057 !important;
  border-color: #495057 !important;
  color: white !important;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* Error Reporting Styles */
.errorWrapper {
  position: relative;
}

.error-toggle {
  color: var(--color-01);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: white;
  transition: all 0.3s ease;
}

.error-toggle:hover {
  background-color: var(--color-01);
  color: white;
  text-decoration: none;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .commingSoonTitle {
    font-size: 2rem;
  }

  .comingsoonContent {
    padding: 1rem;
  }

  .card-text {
    font-size: 1rem;
  }

  .myAccountMain {
    padding: 1rem 0.5rem;
  }
}

/*-----------------------------------

   Clients Workspace Hub style start

------------------------------------*/

/* Section Title with Action Button */
.sec-title.title-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sec-title.title-with-action .col-md-4 {
    display: flex;
    align-items: flex-start;
    min-height: fit-content;
}

.sec-subtitle {
    color: var(--color-06);
    font-size: 1rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

/* Statistics Cards */
.stats-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
    transition: all 0.3s ease;
    cursor: default;
    background: var(--color-widget-bg);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-card .tile-icon.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.stats-card .tile-content {
    text-align: center;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-01);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--color-06);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Search and Filter Container */
.search-filter-container {
    padding: 1.5rem;
    background: var(--color-widget-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
    background: var(--color-04);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-06);
    pointer-events: none;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Clients List */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.clients-list .client-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
}

.clients-list .client-card-header {
    flex-shrink: 0;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clients-list .client-card-body {
    flex: 1;
    margin-right: 1.5rem;
}

.clients-list .client-card-body .client-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.clients-list .client-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* View Toggle Styles */
.view-controls {
    display: flex;
    align-items: center;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.view-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-neutral-light);
    border-radius: 25px;
    padding: 3px;
    border: 1px solid var(--color-border);
}

.view-toggle input[type="radio"] {
    display: none;
}

.view-toggle label.toggle {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 2;
}

.view-toggle input[type="radio"]:checked + label.toggle {
    color: white;
    background: var(--color-action);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-toggle span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--color-action);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Responsive Clients Layout */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .clients-list .client-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .clients-list .client-card-header {
        margin-right: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .clients-list .client-card-body {
        margin-right: 0;
        width: 100%;
    }
    
    .clients-list .client-card-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .view-controls {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Client Card */
.client-card {
    background: var(--color-widget-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-03);
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-03);
    border-radius: 50%;
    color: var(--color-04);
    font-size: 1.5rem;
}

.client-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(60, 179, 113, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(60, 179, 113, 0.3);
}

.status-inactive {
    background: rgba(233, 80, 80, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(233, 80, 80, 0.3);
}

.client-card-body {
    margin-bottom: 1.5rem;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-01);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.client-email {
    color: var(--color-06);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-meta small {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.client-card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.client-card-actions .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--border-radious);
}

.client-card-actions .dropdown-toggle::after {
    display: none;
}

.client-card-actions .dropdown-menu {
    min-width: 160px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-card-actions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-01);
    transition: all 0.2s ease;
}

.client-card-actions .dropdown-item:hover {
    background-color: var(--color-04);
    color: var(--color-01);
}

.client-card-actions .dropdown-item.text-danger:hover {
    background-color: rgba(233, 80, 80, 0.1);
    color: var(--color-danger);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: var(--border-radious);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: var(--color-03);
    color: var(--color-04);
    border-radius: var(--border-radious) var(--border-radious) 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 2rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--color-01);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radious);
    padding: 0.75rem 1rem;
    background: var(--color-04);
    color: var(--color-01);
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-03);
    box-shadow: 0 0 0 0.2rem rgba(215, 167, 105, 0.25);
    background: var(--color-04);
    color: var(--color-01);
}

/* Empty State Styling */
.tile-content i.fa-4x {
    margin-bottom: 1.5rem;
    color: var(--color-05);
}

.tile-content h4 {
    color: var(--color-01);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-filter-container .row {
        gap: 1rem;
    }
    
    .search-filter-container .col-md-6,
    .search-filter-container .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    .client-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .client-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-card .tile-content {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sec-title.title-with-action {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .sec-title.title-with-action .col-md-4,
    .sec-title.title-with-action .col-sm-12 {
        text-align: center !important;
        justify-content: center !important;
        width: 100%;
        margin-top: 1rem;
    }
    
    .sec-title.title-with-action h2 {
        margin-bottom: 0.5rem;
    }
    
    .sec-title.title-with-action .sec-subtitle {
        margin-bottom: 1rem;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Loading and Animation States */
.client-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Success/Error States */
.alert-success {
    background-color: rgba(60, 179, 113, 0.1);
    border-color: rgba(60, 179, 113, 0.3);
    color: var(--color-success-deep);
}

.alert-danger {
    background-color: rgba(233, 80, 80, 0.1);
    border-color: rgba(233, 80, 80, 0.3);
    color: var(--color-danger-deep);
}

/*-----------------------------------

   Clients Workspace Hub style end

------------------------------------*/


.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-04);
}

.btn-danger:hover {
  background-color: var(--color-danger-deep);
  color: var(--color-04);
}

.btn-success {
  background-color: var(--color-success);
  color: var(--color-04);
  border: none;
}

.btn-success:hover {
  background-color: var(--color-success-deep);
  color: var(--color-04);
  border: none;
}

.btn-warning {
  background-color: var(--color-05);
  color: var(--color-warning-deep);
  border: none;
}

.btn-warning:hover {
  background-color: var(--color-warning-deep);
  color: var(--color-04);
  border: none;
}

.btn-disabled {
  background-color: var(--color-05);
  color: var(--widget-dark-bg);
  cursor: not-allowed !important;
  border: none;
}

.btn-disabled:hover,
.btn-disabled:focus {
  background-color: var(--color-06);
  border: none;
  color: var(--color-05);
}

.widget-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0px 10px;
  position: relative;
  padding-right: 30px;
}

.widget-filters .letter-toggle {
  display: inline-flex;
  position: relative;
  border: 1px solid var(--color-06);
  background-color: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  padding: 4px 11px;
  cursor: pointer;
}

/*------- Act Directory------------*/

.toggle-tile-body .toggle-tile-content {
  border-radius: var(--border-radious);
  background-color: var(--color-04);
  border: 1px solid var(--color-05);
  padding: 10px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  overflow: visible;
  min-height: auto;
}

.toggle-tile-body.grid .toggle-tile-content {
  min-height: 200px;
}

.toggle-tile-body .toggle-tile-content:hover {
  transform: translateY(-4px);
}

.toggle-tile-content h4 {
  color: var(--color-01);
  font-size: 18px;
  font-weight: 600;
}

.toggle-tile-content h4 i {
  color: var(--color-03);
}

.toggle-tile-body .toggle-tile-content .act-data {
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--color-06);
  padding-left: 20px;
  opacity: 1;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex-wrap: wrap;
}

.toggle-tile-body .toggle-tile-content:hover .act-data {
  opacity: 1;
}

.toggle-tile-body .toggle-tile-content .act-data li {
  white-space: normal;
  line-height: 1.5;
}

.toggle-tile-body .toggle-tile-content .act-data .view-button a {
  color: var(--color-03);
  font-weight: bold;
  text-align: right;
}

.toggle-tile-content .badge {
  font-size: 12px;
  padding: 5px;
}

.toggle-tile-content .badge.badge-pdf {
  background-color: var(--nav-active);
}

.toggle-tile-content .badge.badge-xml {
  background-color: var(--color-danger);
}

.toggle-tile-content .badge.badge-html {
  background-color: var(--color-success);
}

.toggle-tile-content .badge.badge-irb {
  background-color: var(--color-warning);
}

/* ============================================================================
   CLIENTS WORKSPACE STYLES - View Toggle and Layout Styles
   ============================================================================ */

/* View Toggle Styles - Matching Your Theme Colors */
.view-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-04, #f2f2f2);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--color-border, #dddddd);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-toggle input[type="radio"] {
    display: none;
}

.view-toggle label.toggle {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-06, #999999);
    background: transparent;
    border: none;
    z-index: 2;
}

.view-toggle input[type="radio"]:checked + label.toggle {
    color: var(--color-03, #d7a769);
    background: var(--color-01, #394a59);
    box-shadow: 0 2px 8px rgba(57, 74, 89, 0.3);
    transform: translateY(-1px);
}

.view-toggle label.toggle:hover {
    color: var(--color-01, #394a59);
    background: rgba(215, 167, 105, 0.1);
}

.view-toggle input[type="radio"]:checked + label.toggle:hover {
    color: var(--color-03, #d7a769);
    background: var(--color-02, #465e74);
}

.toggle-label {
    font-weight: 500;
    color: var(--color-01, #394a59);
    font-size: 14px;
}

/* Client Grid Layout - Fixed Height Issues and Full Screen Width */
.clients-container {
    display: grid;
    gap: 20px;
    width: 100%;
    padding: 0; /* Remove any padding that might constrain width */
}

.clients-list {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.clients-list .client-card {
    min-height: 90px; /* Compact height for list view */
    max-height: 120px; /* Prevent excessive height in list view */
}

.client-card {
    position: relative;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e9ecef;
    min-height: 200px; /* Set consistent minimum height for grid view */
    height: auto; /* Allow natural height expansion */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%; /* Ensure cards use full available width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #007bff);
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-01, #394a59) 0%, var(--color-02, #465e74) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-03, #d7a769);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(57, 74, 89, 0.2);
}

.client-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.client-card-body {
    flex-grow: 1;
    margin-bottom: 15px;
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #343a40;
    line-height: 1.3;
}

.client-email {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-meta small {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #868e96;
}

.client-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.client-card-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
}

/* List View Styles - Fixed Alignment */
.clients-list .client-card {
    flex-direction: row;
    align-items: center;
    padding: 20px 25px;
    min-height: 90px;
    height: auto;
    display: flex;
    gap: 20px; /* Add consistent spacing between elements */
}

.clients-list .client-card-header {
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.clients-list .client-card-body {
    flex-grow: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0; /* Allow proper text truncation */
}

.clients-list .client-info {
    flex-grow: 1;
    min-width: 0; /* Allow text truncation */
}

.clients-list .client-name {
    margin-bottom: 4px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clients-list .client-email {
    margin-bottom: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clients-list .client-meta {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-left: 20px;
    flex-shrink: 0; /* Prevent meta info from shrinking */
    align-items: center;
}

.clients-list .client-card-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
    margin-left: 0;
    display: flex;
    gap: 8px;
}

.clients-list .client-card-actions .btn {
    flex: none;
    padding: 6px 12px;
}

/* Search and Filter Container */
.search-filter-container {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.search-box {
    position: relative;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-box input {
    padding-right: 40px;
}

/* Hidden class for search filtering */
.client-card.hidden {
    display: none !important;
}

/* No results message */
#noResultsMessage {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

#noResultsMessage i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Responsive adjustments - Better screen utilization */
@media (max-width: 768px) {
    .clients-container {
        padding: 0 10px;
    }
    
    .clients-list .client-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .clients-list .client-card-header {
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .clients-list .client-card-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
    
    .clients-list .client-info {
        width: 100%;
    }
    
    .clients-list .client-meta {
        margin-left: 0;
        margin-top: 0;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .clients-list .client-card-actions {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }
    
    .clients-list .client-card-actions .btn {
        flex: 1;
    }

   
}

