@import url("theme.css");

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

.transition {
  -webkit-transition: background-color 0.6s ease;
  -moz-transition: background-color 0.6s ease;
  -ms-transition: background-color 0.6s ease;
  -o-transition: background-color 0.6s ease;
  transition: background-color 0.6s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  /* font-family: "Nunito", sans-serif; */
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
}

svg {
  width: 14px;
  height: 14px;
}

.nav-icon .material-icons,
.icon-btn .material-icons {
  font-size: var(--theme-font-sm-heading);
}


/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

h4 {
  font-size: var(--theme-font-sm-heading);
}

::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-rgba-20);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-rgba-30);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-rgba-20) var(--secondary);
}

::selection {
  background-color: var(--color-primary-rgba-20);
  color: var(--primary-dark);
}

[data-bs-theme="dark"] {
  .main-content {
    background-image: radial-gradient(#ffffff3a 0.6000000000000001px, var(--bg-bgsecondary) 0.6000000000000001px);
  }

  .btn-light{
    color: var(--white)
  }
  .text-dark{
    color: var(--text-primary) !important;
  }

  .form-control:disabled {
    background-color: #27282f;
    opacity: 1;
  }

  .form-control:focus{
    color: var(--text-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem var(--color-primary-rgba-20);
  }

  .btn-primary {
    background-color: var(--primary);
    color: #ffffff;
  }

  .header-dropdown-item:hover {
    background-color: var(--secondary);
    color: var(--text-primary);
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button.current a,
  .dataTables_wrapper .dataTables_paginate .paginate_button.active a {
    color: #ffffff;
  }

  .btn-secondary:hover {
    background-color: #454545;
    color: var(--text-primary);
  }

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

  input,
  textarea,
  select,
  button {
    color: var(--text-primary);
  }

  input:placeholder,
  textarea:placeholder,
  select:placeholder {
    color: var(--text-secondary);
  }

  #calendar .fc-day-today .fc-daygrid-day-number {
    color: #ffffff;
  }
}


div.dataTables_wrapper div.dataTables_filter {
  text-align: right;
  float: right !important;    
  position: absolute;
    right: 0px;
    top: 0px;
}

div.dataTables_wrapper div.dataTables_paginate {
    position: absolute;
    right: 0;
    bottom: -10px;
}

.h3,
h3 {
  font-size: 16px;
  font-weight: 600;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.table-container {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
}

/* Hover effects for interactive cards */
.app-card:hover,
.project-card:hover,
.community-card:hover,
.tutorial-card:hover,
.learning-card:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease-in-out;
}

/* Sidebar */
.sidebar {
  width: 256px;
  background-color: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 80px;
  overflow: visible;
}

.sidebar.collapsed .sidebar-header .logo div:nth-child(2),
.sidebar.collapsed .nav-item > span:not(.nav-icon):not(.material-icons),
.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed .dropdown-caret,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-heading {
    display: none !important;
}

/* Floating Submenus on Hover for Collapsed Sidebar */
.sidebar.collapsed .nav-dropdown {
    position: relative;
}

.sidebar.collapsed .nav-dropdown .nav-submenu {
    display: none !important;
    position: absolute;
    left: calc(100% + 18px);
    top: -5px;
    width: 210px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 8px 8px 8px;
    box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 1101;
    transition: opacity 0.2s ease;
}

/* Bridge to close the gap for hover stability */
.sidebar.collapsed .nav-dropdown .nav-submenu::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 0;
    width: 24px;
    height: 100%;
    z-index: 9999;
}

.sidebar.collapsed .nav-dropdown:hover .nav-submenu {
    display: block !important;
}

.sidebar.collapsed .nav-submenu .nav-subitem {
    padding: 10px 15px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sidebar.collapsed .nav-submenu .nav-subitem span {
    display: inline !important; 
    font-size: 13px;
    color: var(--text-primary);
}

.sidebar.collapsed .nav-submenu .nav-subitem .az-subicon {
    display: inline-block !important;
}

/* Prevent bottom items from being cut off */
.sidebar.collapsed .nav-dropdown:last-child .nav-submenu,
.sidebar.collapsed .nav-dropdown:nth-last-child(2) .nav-submenu {
    bottom: auto;
    border-radius: 8px 8px 8px 8px;
}

.sidebar.collapsed .sidebar-nav {
    overflow: visible;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 15px 0;
    margin-bottom: 5px;
}

.sidebar.collapsed .nav-icon {
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.sidebar.collapsed .nav-icon .material-icons {
    display: inline-block !important;
    font-size: 20px !important;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  aspect-ratio: 1 / 1;
  /* background: var(--primary) 0%; */
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-with-bg-primary);
  font-size: 20px;
}

.logo h2 {
  font-size: 16px;
  font-weight: 600;
}

.logo p {
  font-size: 10px;
  color: var(--text-secondary);
}

.search-box {
  padding: 12px;
}

.search-input,
.select2-container--default .select2-selection--single,
.form-select,
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background-color: var(--white) !important;
  font-size: var(--theme-font-sm);
  height: 36px;    
  /* box-shadow: var(--bs-box-shadow-sm) !important; */
  
}

.search-input:focus,
.az-select2:focus,
.form-select:focus,
.form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem var(--color-primary-rgba-20) !important;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nav-footer-img-text {
  text-align: center;
  font-size: 12px;
  background: var(--primary);
  color: white;
  line-height: 1.2;
  padding: 5px 11px;
  border-radius: 10px 4px;
}

.nav-section-title {
  font-size: calc(7px + 0.2vw);
}



.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  line-height: 1em !important;
}

.nav-item:hover {
  background-color: var(--secondary);
}

.nav-item.active,
.nav-subitem.active {
    background-color: var(--secondary);
    color: var(--text-primary);
}


.nav-link {
  cursor: pointer;
}




.badge {
  margin-left: auto;
  background-color: var(--secondary);
  padding: 4px 8px 4px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Badge Variants */
.badge-success {
  background-color: var(--green);
  color: var(--white);
}

.badge-warning {
  background-color: var(--orange);
  color: var(--white);
}

.badge-info {
  background-color: var(--blue);
  color: var(--white);
}

.badge-danger {
  background-color: var(--red);
  color: var(--white);
}

.sidebar-footer {
  padding: 6px;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 3px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: var(--theme-font-sm);
}

.user-info {
  display: flex;
  flex-direction: column;
  font-size: var(--theme-font-sm);
}

.pro-badge {
  font-size: 11px;
  background-color: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

/* Main Content */
.main-content {
  position: relative;
  flex: 1;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-bgsecondary);
  background-image: radial-gradient(#c3c3c3 0.6000000000000001px, var(--bg-bgsecondary) 0.6000000000000001px);
  background-size: 12px 12px;
  width: 100%;
  align-items: center;
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
  margin-left: 80px;
}



.header {
  height: 73px;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-top: 10px;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin: 10px 8px 0 0;
}

/* 
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
} */

/* Header Dropdowns */
.header-dropdown {
  position: relative;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-in-out;
}

.header-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.header-dropdown-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.header-dropdown-item:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.header-dropdown-item i {
  color: var(--text-secondary);
  font-size: 16px;
}

.header-dropdown-item:hover i {
  color: var(--primary);
}

/* Notification Dropdown */
.notification-dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.notification-dropdown-item:last-child {
  border-bottom: none;
}

.notification-dropdown-item:hover {
  background-color: var(--secondary);
}

.notification-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notification-content .notification-desc {
  font-size: 10px;
}


.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
}

.notification-content .notification-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

.notification-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.notification-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.notification-footer a {
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.notification-footer a:hover {
  text-decoration: underline;
}

/* Custom Styles */
/* Navigation Headings */
.nav-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray);
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
  letter-spacing: 0.5px;
}

.nav-heading+.nav-item {
  margin-top: 0.25rem;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  background-color: var(--light);
  border-color: var(--primary);
}

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease-in-out;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
}

.table-responsive,
.card,
.card-body {
    overflow: visible !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--dark);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  font-size: var(--theme-font-sm) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--light);
  color: var(--primary);
}

.dropdown-item i {
  font-size: 1.1em;
}

/* Touch-friendly adjustments */
@media (max-width: 768px) {

  .dropdown-toggle,
  .dropdown-item {
    padding: 0.75rem 1rem;
    /* Larger touch targets */
  }

  .dropdown-menu {
    width: 100%;
    /* Full width on mobile */
    border-radius: 5px;
    /* Larger border radius */
  }
}

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

/* Responsive grid adjustments */
@media (min-width: 1820px) {
  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

@media (max-width: 1023px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .overview-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

.overview-card {
  background: var(--white);
  border-radius: 5px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.col-span-2 {
  grid-column: span 2;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 24px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
}

/* Review Summary Styles */
.review-summary,
.card-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.summary-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.1rem;
}

.stat-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .overview-grid {
    display: flex;
    flex-direction: column;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .stat-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-header {
    flex-direction: column-reverse;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-breakdown {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .card-header {
    flex-direction: column-reverse;
    gap: 0.5rem;
    text-align: center;
  }
}

.icon-btn {
  cursor: pointer;
  width: 32px;
  aspect-ratio: 1 / 1;
  border: none;
  background-color: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm-heading);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.notification-btn {
  position: relative;
  margin-right: 8px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--red);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.user-avatar {
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: var(--theme-font-sm);
}

.user-avatar.small {
  width: 28px;
  height: 28px;
  aspect-ratio: 1 / 1;
}

.user-avatar.large {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
}

/* Tabs */
.tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  background-color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  color: var(--text-secondary);
}

.tab-btn:hover {
  background-color: var(--secondary);
}

.tab-btn.active {
  background-color: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-actions {
  display: flex;
  gap: 12px;
}

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-content {
  display: none;
}

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

/* Sections */
.section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section h2 {
  font-size: var(--theme-font-sm-heading);
  font-weight: 600;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  color: var(--text-primary);
}

.btn-outline {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: #f9fafb;
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--theme-font-sm);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.btn-success {
  background-color: var(--green);
  color: var(--white);
}

.btn-success:hover {
  background-color: #059669;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg,
      var(--primary) 45%,
      var(--color-primary-900) 100%);
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* mobile responsive */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 16px 32px !important;
  }
}

@media (max-width: 568px) {
  .hero-section {
    text-align: center;
    padding: 16px 32px !important;
  }
}
.open-modal{
  cursor: pointer;
}


.hero-pink {
  background: linear-gradient(135deg, var(--pink) 0%, var(--red) 100%);
}

.hero-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
}

.hero-purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--primary) 100%);
}

.hero-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-with-bg-primary)
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 5px;
  opacity: 0.9;
  color: var(--text-with-bg-primary)
}

.badge-premium {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 5px;
  font-size: var(--theme-font-sm);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.rotating-circles {
  width: 160px;
  height: 160px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
  animation: rotate 50s linear infinite;
}

.rotating-circles::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.rotating-circles::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Grids */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.app-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.app-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.app-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.app-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.app-card .badge {
  display: inline-block;
  margin-bottom: 12px;
}

.app-card .btn {
  width: 100%;
}

/* Files List */
.files-list {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item:hover {
  background-color: var(--secondary);
}

.file-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border-radius: var(--radius);
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 600;
  font-size: var(--theme-font-sm);
  margin-bottom: 4px;
}

.file-meta {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Projects */
.projects-list {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.project-item:last-child {
  border-bottom: none;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress {
  height: 6px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue) 100%);
  border-radius: 3px;
  transition: width 0.3s;
}

.project-meta {
  display: flex;
  gap: 16px;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.card-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.project-card .btn {
  width: 100%;
  margin-top: 16px;
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.community-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.community-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.community-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.community-card h3 {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px 4px;
}

.community-author {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  padding: 0 16px 8px;
}

.community-stats {
  display: flex;
  gap: 12px;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  padding: 8px 16px 16px;
}

/* Tutorials */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.tutorial-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}

.tutorial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.tutorial-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.tutorial-card h3 {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px 4px;
}

.tutorial-card p {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 16px 8px;
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  padding: 0 16px 8px;
}

.tutorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 16px;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

/* Learning Paths */
.learning-paths {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.learning-card {
  background-color: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}

.learning-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.learning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.learning-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.learning-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.learning-stats {
  display: flex;
  justify-content: space-between;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress-text {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.learning-card .btn {
  width: 100%;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .search-input {
  margin-left: auto;
  width: 200px;
}

/* Two Column Section */
.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .main-content {
    margin-left: 0;
  }

  .hero-section {
    flex-direction: column;
  }

  .hero-visual {
    display: none;
  }

  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .tutorials-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .learning-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 200;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 200;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .header {
    padding: 0 16px;
  }

  .tabs-container {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-actions {
    width: 100%;
    flex-direction: column;
  }

  .tab-actions .btn {
    width: 100%;
  }

  .content {
    padding: 16px;
  }

  .section h2 {
    font-size: 20px;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .community-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar .search-input {
    width: 100%;
    margin-left: 0;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    width: 100%;
    justify-content: space-between;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    gap: 8px;
  }

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

@media (max-width: 480px) {
  .sidebar {
    width: 60%;
  }

  .header h1 {
    font-size: 16px;
  }

  .tabs {
    overflow-x: auto;
    width: 100%;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: var(--theme-font-sm);
  }

  .section h2 {
    font-size: var(--theme-font-sm-heading);
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: var(--theme-font-sm);
  }

  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .tutorials-grid {
    grid-template-columns: 1fr;
  }

  .learning-paths {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* --- Select2 Override Styles --- */
/* Container */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 4px 8px;
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
  transition: all 0.2s ease-in-out;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--color-primary-rgba-20);
}

/* Dropdown */
.select2-container--default .select2-dropdown {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1055;
}

/* Results */
.select2-container--default .select2-results__option {
  padding: 8px 12px;
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--secondary);
  color: var(--primary);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--primary);
  color: var(--white);
}

/* Single selection clear & arrow */
.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--text-secondary);
  font-size: var(--theme-font-sm-heading);
  margin-right: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
  right: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-secondary) transparent transparent transparent;
}

/* Multiple selection tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--color-primary-rgba-20);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 11px;
  padding: 2px 6px;
  margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--primary);
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--white);
  background-color: var(--primary);
}

/* Search box inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary);
  outline: none;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 12px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-top: 4px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: start;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.document-item:last-child {
  border-bottom: none;
}

.document-icon {
  margin-right: 12px;
  color: var(--text-secondary);
}

.document-info {
  flex: 1;
}

.document-name {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

.document-meta {
  margin: 0;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.document-actions,
.document-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-checkbox {
  margin-right: 8px;
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.application-details {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.detail-item {
  margin-bottom: 12px;
}

.detail-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
}

.detail-value {
  color: var(--text-secondary);
}

/* Assessment Computation specific styles */
.fee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.fee-name {
  font-weight: 500;
  color: var(--text-primary);
}

.fee-calculation {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.amount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-weight: 500;
}

.amount-breakdown {
  background-color: var(--bg-bgsecondary);
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.form-check-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary-rgba-20);
}

.form-switch .form-check-input {
  width: 2.5rem;
  height: 1.25rem;
  background-color: var(--border);
  border: none;
  border-radius: 1rem;
  transition: background-color 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Review & Submit Tab Specific Styles */
.review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon .az-icon {
  width: 24px;
  height: 24px;
}

.az-subicon{
  font-size: 8px !important;
  opacity: 0.3;
}
.stat-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.workflow-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s ease;
}

.workflow-step.completed {
  background: var(--secondary);
  border-color: var(--green);
}

.workflow-step.active {
  background: #fff3cd;
  border-color: var(--orange);
}

.workflow-step.pending {
  background: var(--secondary);
  border-color: var(--border);
}

.workflow-step .step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-step.completed .step-icon {
  background: var(--green);
  color: var(--white);
}

.workflow-step.active .step-icon {
  background: var(--orange);
  color: var(--white);
}

.workflow-step.pending .step-icon {
  background: var(--border);
  color: var(--text-secondary);
}

.step-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.step-status {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workflow-step.completed .step-status {
  color: var(--green);
}

.workflow-step.active .step-status {
  color: var(--orange);
}

.workflow-step.pending .step-status {
  color: var(--text-secondary);
}

.bulk-actions-container {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.selection-count {
  font-weight: 600;
  color: var(--text-primary);
}

.bulk-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background-color: var(--white);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary);
  background-color: rgba(var(--primary), 0.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.upload-placeholder h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Inspection & Verification Styles */
.template-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.template-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.bg-primary-light {
  background-color: rgba(59, 130, 246, 0.1);
}

.bg-success-light {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-light {
  background-color: rgba(249, 115, 22, 0.1);
}

.bg-danger-light {
  background-color: rgba(239, 68, 68, 0.1);
}

.template-features {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
}

.template-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.template-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* Inspector Assignment Styles */
.inspector-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.inspector-workload {
  height: 6px;
  background-color: var(--secondary);
  border-radius: 3px;
  margin-top: 0.5rem;
}

.inspector-workload-bar {
  height: 100%;
  border-radius: 3px;
}

.workload-low {
  background-color: var(--green);
  width: 30%;
}

.workload-medium {
  background-color: var(--orange);
  width: 60%;
}

.workload-high {
  background-color: var(--red);
  width: 90%;
}

/* Checklist Styles */
th,
.checklist-table th,
.td,
.checklist-table td {
  vertical-align: middle;
}

.checklist-section {
  background-color: var(--secondary);
  font-weight: bold;
}

.checklist-item {
  padding-left: 1.5rem;
}

.checklist-notes {
  max-width: 250px;
}

.regulatory-reference {
  border-left: 4px solid var(--color-primary);
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-rgba-20);
  margin-bottom: 1rem;
}

.upload-placeholder p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.upload-placeholder .text-muted {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  opacity: 0.7;
}

.upload-placeholder .btn {
  margin-top: 16px;
}

.upload-area.dragover {
  border-color: var(--primary);
  background-color: rgba(var(--primary), 0.05);
}

.upload-area.dragover .upload-icon {
  color: var(--primary);
}

@media (max-width: 768px) {
  .d-grid {
    grid-template-columns: 1fr !important;
  }

  .action-buttons {
    flex-direction: column;
  }
}

.btn-filter.active {
  background-color: var(--primary);
  color: var(--white);
}

.avatar-circle {
  width: 32px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
}

/* override calendar default styles */
#calendar {
  width: 100%;
  margin: 0 auto;
  font-family: inherit;
  background: transparent !important;
  border: 1px solid var(--border);
}

/* Calendar header */
#calendar .fc-header-toolbar {
  padding: 16px 24px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  margin: 0;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  #calendar .fc-header-toolbar {
    flex-direction: column;
    align-items: center;
  }

  #calendar .fc-toolbar-chunk {
    margin-bottom: 10px;
  }
}

#calendar .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

#calendar .fc-button {
  padding: 6px 12px;
  font-size: 0.775rem !important;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: all 0.2s;
}

#calendar .fc-button .fc-icon {
  font-size: .845em !important;
  vertical-align: middle;
}

#calendar .fc-button:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

#calendar .fc-button-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Calendar grid */
#calendar .fc-scrollgrid {
  border: none;
  width: 100% !important;
}

#calendar .fc-col-header-cell {
  padding: 0px 0;
  background: transparent !important;
  border: none !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#calendar .fc-daygrid-day {
  border: 1px solid var(--border);
  min-height: 40px;
}

th.fc-col-header-cell.fc-day a {
  color: var(--text-primary);
}

#calendar .fc-daygrid-day-number {
  padding: 4px 6px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

#calendar { border: none !important; }
#calendar .fc-header-toolbar { background: transparent !important; border: none !important; }
#calendar .fc-toolbar-title { font-size: 0.9rem !important; font-weight: 700 !important; color: var(--text-primary); }
#calendar .fc-button { background: var(--bg-bgsecondary) !important; border: none !important; color: var(--text-primary) !important; padding: 4px 8px !important; font-size: 0.7rem !important; }
#calendar .fc-button:hover { background: var(--border) !important; }
#calendar .fc-scrollgrid,
#calendar .fc-col-header,
#calendar .fc-scrollgrid-section-header,
#calendar .fc-scrollgrid-section-header th,
#calendar .fc-scrollgrid-section-header td,
#calendar .fc-col-header-cell,
#calendar thead,
#calendar thead *,
#calendar .fc-col-header-cell-cushion { 
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
}
#calendar .fc-scrollgrid { border: none !important; }
#calendar .fc-daygrid-day { border: none !important; height: 35px !important; }
#calendar .fc-daygrid-day-number { color: var(--text-primary); text-decoration: none !important; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin: 2px auto !important; border-radius: 50%; transition: all 0.2s; }
#calendar .fc-daygrid-day-number:hover { background: var(--bg-bgsecondary); }
#calendar .fc-day-today { background: transparent !important; }
#calendar .fc-day-today .fc-daygrid-day-number { background: var(--primary) !important; color: white !important; font-weight: 700; }
#calendar .fc-event { border: none !important; padding: 2px 5px !important; border-radius: 4px !important; font-size: 10px !important; font-weight: 600 !important; }
#calendar .fc-daygrid-event-dot { border-width: 4px !important; }
#calendar a { text-decoration: none !important; }
#calendar .fc-daygrid-body-unbalanced .fc-daygrid-day-events { min-height: 0 !important; }

#calendar .fc-daygrid-day-events {
  padding: 0 4px;
  margin-top: 2px;
}

#calendar .fc-day-today {
  background: rgba(162, 22, 31, 0.05);
}

#calendar .fc-day-today .fc-daygrid-day-number {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
}

/* Events */
#calendar .fc-event {
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 2px 0;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
  white-space: normal;
  line-height: 1.3;
}

#calendar .fc-event:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#calendar .fc-event-main {
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Event colors */
#calendar .fc-event-primary {
  background: var(--primary);
}

#calendar .fc-event-success {
  background: var(--green);
}

#calendar .fc-event-warning {
  background: var(--orange);
}

#calendar .fc-event-info {
  background: var(--blue);
}

#calendar .fc-event-danger {
  background: var(--red);
}

/* More events popover */
#calendar .fc-popover {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

#calendar .fc-popover-header {
  padding: 8px 12px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
}

#calendar .fc-popover-body {
  padding: 8px;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid #dddddd00 !important;
}

/* Responsive */
@media (max-width: 768px) {
  #calendar .fc-header-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  #calendar .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  #calendar .fc-button {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

.modal-blur {
  -webkit-backdrop-filter: blur(5px);
  -moz-backdrop-filter: blur(5px);
  -ms-backdrop-filter: blur(5px);
  -o-backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* cursor pointer */
.cursor-pointer {
  cursor: pointer;
}

.cursor-help {
  cursor: help;
}

.cursor-wait {
  cursor: wait;
}

.cursor-crosshair {
  cursor: crosshair;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-move {
  cursor: move;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

.cursor-zoom-in {
  cursor: zoom-in;
}

.cursor-text {
  cursor: text;
}

/* Sidebar Dropdown */
.nav-dropdown {
  width: 100%;
}

.nav-dropdown .nav-toggle {
  position: relative;
}

.nav-dropdown .dropdown-caret {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  margin-top: 4px;
  padding-left: 14px;
  transition: all 0.2s ease;
}

.nav-dropdown.is-open .nav-submenu {
  display: block;
  transform: translateY(0);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-subitem:hover,
.nav-subitem:focus {
  background-color: var(--secondary);
  outline: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-submenu {
    padding-left: 24px;
  }
}

/* --- DataTable Pagination & Filter Styling --- */
.dataTables_wrapper {
  font-family: inherit;
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
  position: relative;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  margin-bottom: 12px;
  display: none;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text-primary);
  font-size: var(--theme-font-sm);
  height: 32px;
  transition: all 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--color-primary-rgba-30);
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  /* margin-top: -25px !important; */
}

.dataTables_wrapper .dataTables_paginate .paginate_button a {
  padding: 2px 10px;
  margin: 0 2px 4px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text-primary);
  font-size: var(--theme-font-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover a {
  background-color: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active a {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover a {
  background-color: var(--secondary);
  color: var(--text-secondary);
  border-color: var(--border);
  cursor: not-allowed;
}

.dataTables_wrapper .dataTables_info {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  margin-top: 2px !important;
}

th,
td {
  font-size: var(--theme-font-sm);
  vertical-align: middle;
}

th {
  text-transform: capitalize !important;
}

td:nth-last-child() button {
  float: right;
}

/* --- Calendar Widget Styles --- */
.calendar-card {
  min-height: 420px;
}

.calendar-card .card-body {
  padding: 12px;
}

#calendar {
  width: 100%;
}

@media (max-width: 768px) {
  .calendar-card {
    min-height: 360px;
  }
}

/* --- Dashboard Metrics Grid & Cards --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.metrics-grid.grid-temp-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (min-width: 1820px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1240px) {
  .metrics-grid.grid-temp-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .metrics-grid.grid-temp-4 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

.metric-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 136px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.table-container,
#calendar {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover,
.metric-card:focus,
.overview-card:hover,
.overview-card:focus,
.table-container:hover,
.table-container:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: none;
  /* border-color: var(--primary); */
}

.metric-card:focus-visible {
  box-shadow: 0 0 0 3px var(--color-primary-rgba-20), var(--shadow-lg);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.metric-title {
  font-size: 14px;
  ;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.metric-icon {
  font-size: 18px;
  color: var(--primary);
}

.metric-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.metric-value .currency {
  font-weight: 600;
  opacity: 0.85;
  margin-right: 2px;
}

.metric-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--secondary);
  color: var(--text-primary);
  white-space: nowrap;
}

.metric-change .indicator-icon {
  font-size: 16px;
}

.metric-footer {
  margin-top: 4px;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.change-positive {
  color: var(--green);
  background-color: rgba(16, 185, 129, 0.12);
}

.change-negative {
  color: var(--red);
  background-color: rgba(239, 68, 68, 0.12);
}

/* Animation for metric updates */
@keyframes metricValuePulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.metric-value.animate-update {
  animation: metricValuePulse 600ms ease-in-out;
}

@keyframes metricFlash {
  0% {
    color: var(--text-primary);
  }

  50% {
    color: var(--primary);
  }

  100% {
    color: var(--text-primary);
  }
}

.metric-card.updated .metric-value {
  animation: metricFlash 900ms ease-in-out;
}

/* Responsive tweaks for metrics */
@media (max-width: 768px) {
  .metrics-grid {
    gap: 16px;
  }

  .metric-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .metric-value {
    font-size: 20px;
  }

  .metric-card {
    padding: 14px;
  }
}

/* Notifications */
.notifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .notifications-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 576px) {
  .notifications-grid {
    grid-template-columns: 1fr;
  }
}

/* Notification Card - Using global card styles */
.notification-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow);
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.notification-card.unread {
  background-color: var(--secondary);
  border-color: var(--primary);
}

.notification-card.unread::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
}

/* Card Header */
.notification-card-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.notification-card-header.unread {
  border-bottom: 1px solid var(--border);
}

/* Icon Styles - Aligned with global color variables */
.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.notification-icon.success {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--green);
}

.notification-icon.warning {
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}

.notification-icon.danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--red);
}

.notification-icon.info {
  background-color: rgba(59, 130, 246, 0.12);
  color: var(--blue);
}

.notification-header-content {
  flex: 1;
  min-width: 0;
}

/* Title Styles */
.notification-title {
  font-weight: 600;
  font-size: var(--theme-font-sm-heading);
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.4;
  word-break: break-word;
}

/* Card Body */
.notification-card-body {
  padding: 12px 20px 16px 20px;
  flex: 1;
}

.notification-desc {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Card Footer */
.notification-card-footer {
  padding: 12px 20px;
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notification-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Action Buttons - Using global button styles */
.notification-actions {
  display: flex;
  gap: 8px;
}

.notification-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.notification-actions .btn-mark-read {
  background-color: var(--primary);
  color: var(--white);
}

.notification-actions .btn-mark-read:hover {
  background-color: var(--primary-dark);
}

.notification-actions .btn-delete {
  background-color: var(--red);
  color: var(--white);
}

.notification-actions .btn-delete:hover {
  background-color: #dc2626;
}

/* Filter Tabs - Using global tab styles */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-filter {
  padding: 8px 16px;
  border: none;
  background-color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--theme-font-sm);
  font-weight: 500;
  transition: all 0.2s;
  text-wrap: nowrap;
  color: var(--text-secondary);
}

.tab-filter:hover {
  background-color: var(--secondary);
}

.tab-filter.active {
  background-color: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.notifications-header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Search Input - Using global search-input styles */
.notification-search {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.notification-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--secondary);
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
  height: 36px;
  transition: all 0.2s;
}

.notification-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--color-primary-rgba-20);
}

.notification-search input::placeholder {
  color: var(--text-secondary);
}

.notification-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Empty State */
.no-notifications {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-notifications i {
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-notifications p {
  color: var(--text-secondary);
  margin: 0;
  font-size: var(--theme-font-sm);
}

/* Mark All Read Link */
.mark-all-read {
  font-size: var(--theme-font-sm);
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.mark-all-read:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Bulk Actions Bar */
.bulk-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}

.bulk-actions.hidden {
  display: none;
}

.bulk-actions input[type="checkbox"] {
  cursor: pointer;
}

.bulk-actions-label {
  font-size: var(--theme-font-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.bulk-actions-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.bulk-actions-buttons button {
  padding: 6px 12px;
  font-size: var(--theme-font-sm);
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.bulk-actions-buttons button:hover {
  background-color: var(--secondary);
}

.bulk-actions-buttons .btn-mark-read {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.bulk-actions-buttons .btn-mark-read:hover {
  background-color: var(--primary-dark);
}

.bulk-actions-buttons .btn-delete {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.bulk-actions-buttons .btn-delete:hover {
  background-color: #dc2626;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-search {
    max-width: 100%;
  }

  .notification-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .notification-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .notifications-header h1 {
    font-size: var(--theme-font-sm-heading);
  }

  .notification-card-header {
    padding: 16px;
  }

  .notification-card-body {
    padding: 12px 16px;
  }

  .notification-card-footer {
    padding: 12px 16px;
  }
}

.empty-state-icon svg {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
}


.progress-bar-container {
  width: 100px;
  height: 20px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #198754;
  transition: width 0.3s ease;
}


.content-full-width {
  width: 100%;
}

.hero-section-limited {
  max-height: 350px;
}


.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-image {
  width: 100%;
  height: 200px;
  background: var(--secondary);
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}

.post-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: var(--theme-font-sm);
  font-weight: 600;
}

.post-badge-announcement {
  background: var(--color-primary-rgba-60);
  color: var(--white);
}

.post-badge-news {
  background: rgba(234, 179, 8, 0.48);
  color: var(--text-primary);
}

.post-content {
  position: relative;
  padding: 20px;
}

.post-actions {
  position: absolute;
  bottom: 48%;
  left: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-title {
  font-size: var(--theme-font-sm-heading);
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

.post-excerpt {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;

}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--theme-font-sm);
  font-weight: 600;
}

.author-name {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.post-time {
  font-size: var(--theme-font-sm);
  color: var(--text-secondary);
}

.direct-link {
  cursor: pointer;
}
.direct-link.icon-hover svg {
  stroke: var(--text-primary);
  transition: stroke 0.2s;
}
.direct-link.icon-hover:hover svg {
  stroke: var(--primary);
}

.post-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.post-detail-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.post-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.post-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.post-detail-author-info {
  display: flex;
  flex-direction: column;
}

.post-detail-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.post-detail-author-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-detail-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.post-detail-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.post-badge-announcement {
  background: var(--color-primary-rgba-60);
  color: var(--white);
}

.post-badge-news {
  background: rgba(234, 179, 8, 0.48);
  color: var(--text-primary);
}

.post-detail-image {
  width: 100%;
  height: 500px;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-detail-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 16px;
}

.post-detail-body h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 24px 0 16px 0;
  color: var(--text-primary);
}

.post-detail-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 12px 0;
  color: var(--text-primary);
}

.post-detail-body p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.post-detail-body ul,
.post-detail-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-detail-body li {
  margin-bottom: 8px;
}

.comments-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.comments-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.comments-count {
  background: var(--secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.comment-form-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--secondary);
  border-radius: var(--radius);
}

.comment-form-header {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 14px;
}

.quill-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ql-toolbar {
  background: var(--secondary) !important;
  border: 1px solid var(--border) !important;
}

.ql-toolbar.ql-snow {
  padding: 6px !important;
}

.ql-toolbar.ql-snow .ql-formats {
  margin-right: 12px !important;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke-width: 2 !important;
}

.ql-toolbar.ql-snow button {
  padding: 4px 6px !important;
}

.ql-toolbar.ql-snow .ql-picker-label {
  color: var(--text-primary) !important;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: var(--text-secondary) !important;
}

.ql-toolbar.ql-snow .ql-fill,
.ql-toolbar.ql-snow .ql-stroke.ql-fill {
  fill: var(--text-secondary) !important;
}

.ql-toolbar.ql-snow .ql-picker {
  color: var(--text-secondary) !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button:focus .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-options .ql-selected .ql-stroke {
  stroke: var(--primary) !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button:focus .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill,
.ql-toolbar.ql-snow .ql-picker-options .ql-selected .ql-fill {
  fill: var(--primary) !important;
}

.ql-container.ql-snow {
  border: none !important;
  min-height: 120px;
}

.ql-editor {
  color: var(--text-primary) !important;
  font-family: inherit !important;
  padding: 12px 15px !important;
}

.ql-editor.ql-blank::before {
  color: var(--text-secondary) !important;
}

.comment-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.comment-form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-submit-comment {
  background: var(--primary);
  color: var(--white);
}

.btn-submit-comment:hover {
  background: var(--primary-dark);
}

.btn-cancel-comment {
  background: var(--secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-cancel-comment:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 500px);
  overflow-y: auto;
  padding-right: 8px;
}

.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: var(--color-primary-rgba-20);
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-rgba-30);
}

.comment {
  padding: 16px;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-size: 13px;
}

.comment:hover {
  box-shadow: var(--shadow);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.comment-info {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 2px;
}

.comment-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.comment-actions {
  display: none;
  gap: 8px;
  align-items: center;
}

.comment:hover .comment-actions {
  display: flex;
}

.comment-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.comment-action-btn:hover {
  background: var(--white);
  color: var(--primary);
}

.comment-body {
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 12px;
  word-wrap: break-word;
}

.comment-body p {
  margin: 0 0 6px 0;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

.empty-comments {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-secondary);
}

.empty-comments-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-comments p {
  margin: 0;
  font-size: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  grid-column: 1 / -1;
  width: fit-content;
}

.back-button:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

@media (max-width: 1200px) {
  .post-detail-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-comments-column {
    position: static;
    max-width: 100%;
  }

  .comments-section {
    max-height: none;
  }

  .comments-list {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .post-detail-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-detail-header {
    padding: 20px;
  }

  .post-detail-body {
    padding: 20px;
  }

  .comments-section {
    padding: 16px;
    max-height: none;
  }

  .post-detail-title {
    font-size: 24px;
  }

  .post-detail-meta {
    gap: 16px;
  }

  .post-detail-image {
    height: 250px;
  }

  .comment-form-section {
    padding: 14px;
  }

  .comments-list {
    max-height: none;
  }
}

.modal-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
}

.chat-container {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 0;
      width: calc(100vw - 320px);
      height: calc(100vh - 80px);
      background: var(--white);
    }

    .chat-sidebar {
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      height: 100%;
    }

    .chat-sidebar-header {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .chat-sidebar-header h3 {
      font-size: 16px;
      font-weight: 600;
      margin: 0;
      color: var(--text-primary);
    }

    .chat-search-box {
      padding: 12px;
      border-bottom: 1px solid var(--border);
    }
    .chat-search-container {
      position: relative;
    }

    .chat-search-container i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-secondary);
      font-size: 14px;
    }

    .chat-rooms-list {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      background: var(--white);
    }

    .chat-room-item {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 12px;
      border-left: 3px solid transparent;
    }

    .chat-room-item:hover {
      background-color: var(--secondary);
    }

    .chat-room-item.active {
      background-color: rgba(12, 35, 86, 0.08);
      border-left-color: var(--primary);
      color: var(--primary);
    }

    .chat-room-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 13px;
      flex-shrink: 0;
    }

    .chat-room-info {
      flex: 1;
      min-width: 0;
    }

    .chat-room-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 14px;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-room-preview {
      font-size: 12px;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-room-unread {
      background: var(--primary);
      color: var(--white);
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
      flex-shrink: 0;
    }

    .chat-main {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      height: 100%;
      background: var(--white);
    }

    .chat-header {
      padding: 12.5px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .chat-header-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .chat-header-title {
      display: flex;
      flex-direction: column;
    }

    .chat-header-title h4 {
      font-size: 16px;
      font-weight: 600;
      margin: 0;
      color: var(--text-primary);
    }

    .chat-header-subtitle {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .chat-header-actions {
      display: flex;
      gap: 8px;
      margin-left: auto;
    }

    .chat-sidebar-toggle {
      display: none;
    }

    .chat-sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      z-index: 99;
    }

    .chat-sidebar-overlay.show {
      background: rgba(0, 0, 0, 0.4);
      opacity: 1;
      visibility: visible;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .message-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 16px;
    }

    .message-timestamp {
      text-align: center;
      font-size: 11px;
      color: var(--text-secondary);
      margin: 12px 0;
    }

    .message {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      margin-bottom: 8px;
    }

    .message.sent {
      justify-content: flex-end;
    }

    .message-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 12px;
      flex-shrink: 0;
    }

    .message.sent .message-avatar {
      display: none;
    }

    .message-bubble {
      max-width: 65%;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 14px;
      line-height: 1.4;
      word-wrap: break-word;
    }

    .message.received .message-bubble {
      background: var(--secondary);
      color: var(--text-primary);
    }

    .message.sent .message-bubble {
      background: var(--primary);
      color: #fff;
      border-bottom-right-radius: 4px;
    }

    .message-sender {
      font-size: 11px;
      color: var(--text-primary);
      margin-bottom: 4px;
      padding-left: 40px;
    }

    .chat-input-area {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .chat-input-wrapper {
      flex: 1;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .chat-input {
      flex: 1;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background-color: var(--white);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      resize: none;
      max-height: 100px;
    }

    .chat-input::placeholder {
      color: var(--text-secondary);
    }

    .chat-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(12, 35, 86, 0.1);
    }

    .chat-actions {
      display: flex;
      gap: 6px;
    }

    .chat-action-btn {
      width: 36px;
      height: 36px;
      border: none;
      background-color: var(--secondary);
      border-radius: var(--radius);
      cursor: pointer;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .chat-action-btn:hover {
      background-color: var(--primary);
      color: var(--white);
    }

    .chat-send-btn {
      background-color: var(--primary);
      color: var(--white);
    }

    .chat-send-btn:hover {
      background-color: var(--primary-dark);
    }

    .chat-send-btn:disabled {
      background-color: var(--text-secondary);
      cursor: not-allowed;
      opacity: 0.6;
    }

    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: var(--text-secondary);
      text-align: center;
    }

    .empty-state-icon {
      font-size: 48px;
      margin-bottom: 16px;
      opacity: 0.5;
    }

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

    @media (max-width: 1024px) {
      .chat-container {
        grid-template-columns: 280px 1fr;
      }
    }

    /* Right Side Info Panel */
    .info-panel-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      z-index: 999;
    }

    .info-panel-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    .info-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 380px;
      height: 100vh;
      background: var(--white);
      border-left: 1px solid var(--border);
      box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .info-panel.show {
      transform: translateX(0);
    }

    .info-panel-header {
      padding: 16px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
    }

    .info-panel-header h3 {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
      color: var(--text-primary);
    }

    .info-panel-close-btn {
      width: 36px;
      height: 36px;
      border: none;
      background: none;
      border-radius: var(--radius);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      transition: all 0.2s ease-in-out;
    }

    .info-panel-close-btn:hover {
      background-color: var(--secondary);
      color: var(--text-primary);
    }

    .info-panel-content {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }

    .info-section {
      margin-bottom: 28px;
    }

    .info-section:last-child {
      margin-bottom: 0;
    }

    .info-section-title {
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }

    .info-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
      color: var(--text-primary);
      font-size: 14px;
    }

    .info-item-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--radius);
      background: var(--secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      flex-shrink: 0;
    }

    .info-member {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }

    .info-member:last-child {
      border-bottom: none;
    }

    .info-member-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 13px;
      flex-shrink: 0;
    }

    .info-member-info {
      flex: 1;
      min-width: 0;
    }

    .info-member-name {
      font-weight: 500;
      color: var(--text-primary);
      font-size: 14px;
      margin-bottom: 2px;
    }

    .info-member-status {
      font-size: 12px;
      color: var(--text-secondary);
    }

    @media (max-width: 1024px) {
      .info-panel {
        width: 320px;
      }
    }

    @media (max-width: 768px) {
      .chat-container {
        grid-template-columns: 1fr;
      }

      .chat-sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 100;
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .chat-sidebar.show {
        transform: translateX(0);
      }

      .message-bubble {
        max-width: 85%;
      }

      .chat-sidebar-toggle {
        display: flex;
      }

      .info-panel {
        width: 100%;
        max-width: 85vw;
      }
    }

    @media (max-width: 480px) {
      .info-panel {
        width: 100%;
        max-width: 100vw;
      }

      .info-panel-content {
        padding: 16px;
      }

      .info-panel-header {
        padding: 12px 16px;
      }
    }

    .form-label{
      font-size: var(--theme-font-sm);
    }

    
/* Loader Styles */
/* Premium Loader Styles */
.loader-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

[data-bs-theme="dark"] .loader-blocker {
    background: rgba(15, 23, 42, 0.85);
}

.loader-blocker.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 32px;
    animation: loaderContentEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loaderContentEntry {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: logoPulse 2.5s infinite ease-in-out;
}

.loader {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader::before, .loader::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-primary);
}

.loader::before {
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader::after {
    width: 70%;
    height: 70%;
    border-top-color: var(--color-primary);
    opacity: 0.5;
    animation: spinReverse 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); }
}

.loader-content span {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    opacity: 0.8;
    animation: textFlash 2s infinite ease-in-out;
}

@keyframes textFlash {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}