/* Dashboard Styles */

/* Spinner animation for loading states */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.dash-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--nav-background-solid);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.dash-nav__container {
  max-width: 100%;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.2s;
  position: relative;
}


.dash-nav__logo::after {
  display: none !important;
}

.dash-nav__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.dash-nav__logo-icon svg,
.dash-nav__logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dash-nav__logo-text {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.25rem;
}

.dash-nav__logo-intelligence {
  display: inline-block;
  padding-top: 4px;
  font-size: 1.5rem;
  font-weight: 700;
}

.dash-nav__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile dropdown - uses nav styles from styles.css */
.dash-nav__user--mobile {
  display: none;
}

/* Ensure nav menu appears above other content and is positioned correctly */
.dash-nav__user--mobile .nav__menu {
  z-index: 1000;
  top: calc(100% + 0.5rem);
  right: 0;
}

.dash-nav__notifications {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.dash-nav__notifications .nav__icon {
  width: 26px;
  height: 26px;
  color: var(--gray-600);
}

.dash-nav__badge,
.nav__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
  min-width: 16px;
  text-align: center;
}

.dash-nav__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-nav__user-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.dash-nav__user-button:hover {
  background: var(--gray-100);
}

.dash-nav__user-button .nav__chevron {
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.dash-nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.dash-nav__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dash-nav__user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.dash-nav__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dash-nav__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}

.dash-nav__user-type {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: capitalize;
}

.dash-nav__user--desktop.nav__dropdown .nav__menu {
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 1000;
}

/* Show/hide desktop vs mobile header elements */
@media (max-width: 768px) {
  /* Hide desktop user info and logout button on mobile */
  .dash-nav__user--desktop,
  .dash-nav__logout--desktop {
    display: none !important;
  }
  
  /* Show mobile dropdown */
  .dash-nav__user--mobile {
    display: block !important;
  }
  
  /* Hide name text in mobile dropdown, keep only avatar and chevron */
  .dash-nav__user--mobile .nav__user > span {
    display: none;
  }
  
  /* Reduce gap between notifications and dropdown in mobile */
  .dash-nav__actions {
    gap: 0.5rem;
  }

  /* Hide name and role text next to avatar on mobile */
  .dash-nav__user-info--hide-mobile {
    display: none;
  }

}

@media (min-width: 769px) {
  /* Hide mobile dropdown on desktop */
  .dash-nav__user--mobile {
    display: none !important;
  }
  
  /* Show desktop user info */
  .dash-nav__user--desktop {
    display: flex !important;
  }
}

/* Layout */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 56px;
  background: #FAF9F6;
}

.dash-sidebar {
  width: 260px;
  background: #F8F9FA;
  border-right: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
  z-index: 90;
  transition: transform 0.3s ease;
}

/* Mobile sidebar overlay */
.dash-sidebar-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 85;
}

/* Mobile hamburger menu button */
.dash-mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--gray-700);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.dash-mobile-menu-toggle:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.dash-mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.dash-main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: #FAF9F6;
  min-height: calc(100vh - 64px);
  transition: margin-left 0.3s ease;
}

/* Menu */
.dash-menu-section {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.dash-menu-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0 0.75rem;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-menu-item span:first-child {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.dash-menu-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dash-menu-item__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.dash-menu-item:hover {
  background: var(--gray-200);
}

.dash-menu-item.active {
  background: var(--primary);
  color: white;
}

.dash-menu-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Headers */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Remove padding between project title and proposal cards in job-proposals view */
.dash-content {
  margin-top: 0;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  width: 100%;
}

.dash-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.dash-header__subtitle {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.5rem;
}

.dash-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.dash-tab:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.dash-tab.active {
  background: var(--primary);
  color: white;
}

/* Cards */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dash-list.dash-list--two-columns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .dash-list--grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dash-list.dash-list--two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.dash-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.2s;
  position: relative;
}

.dash-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.dash-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.dash-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.dash-card__status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.status--open { background: #ecfdf5; color: var(--success); }
.status--draft { background: var(--gray-100); color: var(--gray-600); }
.status--in_progress, .status--active { background: #eff6ff; color: var(--primary); }
.status--completed { background: #ecfdf5; color: var(--success); }
.status--pending { background: #fef3c7; color: var(--warning); }
.status--shortlisted { background: #fef3c7; color: #b45309; border: 1px solid #fbbf24; }
.status--accepted { background: #ecfdf5; color: var(--success); }
.status--rejected { background: #fef2f2; color: var(--danger); }
.status--cancelled { background: var(--gray-100); color: var(--gray-600); }

.dash-card__description {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin: 0.5rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  gap: 1rem;
}

.dash-card__meta {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
  flex: 1;
}

.dash-card__meta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--icon-only {
  padding: 0.375rem;
  min-width: auto;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--icon-only svg {
  width: 16px;
  height: 16px;
}

.dash-card__date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.dash-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* Remove border-top for my posts cards */
.my-posts-section .dash-card__actions {
  border-top: none;
  padding-top: 0;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Remove top and bottom padding for my posts cards */
.my-posts-section .dash-card {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.dash-card__timestamp {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-500);
  align-self: center;
}

/* Proposal Cards */
.proposal-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.proposal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.proposal-card__expert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.proposal-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.proposal-card__info {
  flex: 1;
}

.proposal-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.proposal-card__headline {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.proposal-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.proposal-card__meta strong {
  color: var(--gray-700);
}

.proposal-card__body {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.proposal-card__rate {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proposal-card__rate-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
}

.proposal-card__amount {
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
}

.proposal-card__type {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-500);
}

.proposal-card__duration,
.proposal-card__start {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.proposal-card__letter {
  margin-bottom: 1rem;
}

.proposal-card__letter h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.proposal-card__letter p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  white-space: pre-wrap;
}

.proposal-card__actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.proposal-card__result {
  padding-top: 1rem;
  font-size: 0.875rem;
}

.text-success {
  color: #10b981;
}

.text-danger {
  color: #ef4444;
}

/* Contract Detail */
.contract-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.contract-detail__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contract-section {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contract-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.contract-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contract-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contract-info-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contract-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
}

.contract-description,
.contract-terms {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-600);
  white-space: pre-wrap;
}

.contract-nda-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contract-nda-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-nda-label {
  font-weight: 500;
  color: var(--gray-700);
}

.contract-nda-value {
  color: var(--gray-900);
}

.contract-nda-status {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nda-status-badge {
  font-weight: 600;
  color: #10b981;
}

.nda-status-badge--accepted {
  color: #10b981;
}

.nda-status-date {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.contract-nda-pending {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
}

.nda-warning {
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  color: #d97706;
}

.contract-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.contract-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contract-party-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.contract-party-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contract-party-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.contract-party-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.contract-party-name {
  font-weight: 600;
  color: var(--gray-900);
}

.contract-party-headline {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.contract-job-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contract-financials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contract-financial-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.contract-financial-row span:first-child {
  color: var(--gray-600);
}

.dash-header__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-left: 1rem;
}

.status--pending {
  background: #fef3c7;
  color: #d97706;
}

.status--active, .status--in_progress {
  background: #d1fae5;
  color: #059669;
}

.status--completed {
  background: #dbeafe;
  color: #2563eb;
}

.status--cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.contract-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contract-status-message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  flex: 1;
}

.contract-status-message.success {
  background: #ecfdf5;
}

.contract-status-message.cancelled {
  background: #fef2f2;
}

.contract-status-message .status-icon {
  font-size: 1.5rem;
}

.contract-status-message strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contract-status-message p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

/* Rating Input */
.rating-input {
  display: flex;
  gap: 0.25rem;
}

.rating-star {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.rating-star:hover,
.rating-star.active {
  color: #f59e0b;
}

/* Dashboard dialogs — centered, compact (matches index.html modals) */
.dash-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dash-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.dash-modal__panel--md {
  max-width: 460px;
}

.dash-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-modal__header--tight {
  margin-bottom: 10px;
}

.dash-modal__title-wrap {
  flex: 1;
  min-width: 0;
}

.dash-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.dash-modal__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.dash-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #94a3b8;
  padding: 0 2px;
  flex-shrink: 0;
}

.dash-modal__close:hover {
  color: #64748b;
}

.dash-modal__body .form-group {
  margin-bottom: 12px;
}

.dash-modal__body .form-group:last-child {
  margin-bottom: 0;
}

.dash-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dash-modal__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Ensure header and close button are on same line for all modals */
.modal__header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
}

.modal__close:hover {
  color: var(--gray-600);
}

.modal__body {
  padding: 1.5rem;
}

.modal__body--compact {
  padding: 0.75rem 0;
}

.modal__body--no-side-padding {
  padding-left: 0;
  padding-right: 0;
}

.modal--no-side-padding .modal__header {
  padding-left: 0;
  padding-right: 0;
}

.modal--no-side-padding .modal__footer {
  padding-left: 0;
  padding-right: 0;
}

.modal__body--compact .form-group--compact {
  margin-bottom: 0.75rem;
}

.modal__body--compact .form-group--compact:last-of-type {
  margin-bottom: 0.5rem;
}

.modal__footer--compact {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0 !important;
  border-top: 1px solid var(--gray-200);
  background: transparent !important;
}

/* Compact modal header for all compact modals */
.modal--compact .modal__header {
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.modal--compact .modal__header h2 {
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
}

.modal--compact .modal__close {
  font-size: 1.25rem;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: transparent;
}

.text-muted {
  color: var(--gray-400);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
}

.back-link:hover {
  color: var(--primary);
}

/* Empty State */
.dash-empty {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.dash-empty p {
  margin-bottom: 1rem;
}

/* Forms */
.dash-form {
  max-width: 720px;
}

.dash-form h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.dash-form h2:first-child {
  margin-top: 0;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: white;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-inline input {
  flex: 1;
}

.form-inline span {
  color: var(--gray-500);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0rem;
}

.dash-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2rem 0;
}

/* Messages */
.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - 180px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.conversations-list {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}

.conversation-item:hover {
  background: var(--gray-100);
}

.conversation-item.active {
  background: white;
}

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

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

.conversation-name {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.conversation-preview {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.conversation-badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
}

.messages-panel {
  display: flex;
  flex-direction: column;
  background: white;
}

.messages-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.messages-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  max-width: 70%;
}

.message--own {
  align-self: flex-end;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  font-size: 0.875rem;
}

.message--own .message-content {
  background: var(--primary);
  color: white;
}

.message-time {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.message--own .message-time {
  text-align: right;
}

.message-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
}

.message-form .form-input {
  flex: 1;
}

/* Button sizes */
.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .dash-sidebar {
    width: 220px;
  }
  
  .dash-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {
  /* Show hamburger menu button on mobile */
  .dash-mobile-menu-toggle {
    display: flex;
  }
  
  /* Move logo to the left towards hamburger button */
  .dash-nav__logo {
    margin-left: 0;
    margin-right: auto;
    pointer-events: auto;
    cursor: pointer;
  }

  .dash-nav__logo-intelligence {
    padding-top: 0;
  }
  
  /* Adjust container to allow logo to move left - reduce gap between hamburger and logo */
  .dash-nav__container {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0 0.5rem;
  }
  
  /* Ensure actions stay on the right */
  .dash-nav__actions {
    margin-left: auto;
  }
  
  /* Hide sidebar by default on mobile, show when open */
  .dash-sidebar {
    transform: translateX(-100%);
    width: 240px;
    padding: 1rem 0;
  }
  
  /* Make menu sections more compact on mobile */
  .dash-menu-section {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
  }
  
  .dash-menu-item {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  .dash-menu-section h4 {
    font-size: 0.6875rem;
    padding: 0 0.625rem;
    margin-bottom: 0.375rem;
  }
  
  .dash-sidebar--open {
    transform: translateX(0);
  }
  
  /* Show overlay when sidebar is open */
  .dash-sidebar-overlay {
    display: block;
  }
  
  .dash-main {
    margin-left: 0;
    padding: 1rem 0.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .messages-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
    position: relative;
  }
  
  .conversations-list {
    display: block;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .messages-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 20;
  }
  
  .messages-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .messages-header .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }
  
  .messages-header .back-button:hover {
    background: var(--gray-50);
  }
  
  .messages-header h3 {
    flex: 1;
    margin: 0;
  }
  
  .messages-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .message-form {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    border-top: 1px solid var(--gray-200);
  }
  
  .dash-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  .dash-stat-card {
    padding: 1rem;
    min-width: 0;
  }
  
  .dash-stat-card__value {
    font-size: 1.125rem;
  }
  
  .dash-stat-card__icon {
    font-size: 1.5rem;
  }
}

/* Notifications */
.notifications-list {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
}

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

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item--unread {
  background: #f0f7ff;
}

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

.notification-item--success {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

.notification-item--success:hover {
  background: #dcfce7;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-message {
  font-size: 0.9375rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--gray-500);
}

/* Stats Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
}

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

.dash-stat-card__label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.35rem 0 0;
  line-height: 1.3;
}

.dash-stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

/* Transaction Items */
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.transaction-title {
  font-weight: 500;
  color: var(--gray-800);
}

.transaction-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.transaction-amount {
  font-weight: 600;
  color: var(--gray-700);
}

.transaction-amount.positive {
  color: var(--success);
}

/* Badge in cards */
.dash-card__badge {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
}

/* =====================================================
   AI MARKETPLACE - NEW DASHBOARD STYLES
   ===================================================== */

/* Profile Completion Card */
.profile-completion-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-completion-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.profile-completion-percent {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-completion-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-completion-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.profile-completion-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.checklist-item.completed {
  color: var(--success);
}

.checklist-icon {
  font-size: 1rem;
}

/* Stat cards — value + label stacked and vertically centered */
.dash-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 88px;
  gap: 0;
  cursor: pointer;
  transition: all 0.2s;
}

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

.dash-stat-card__icon {
  font-size: 2rem;
}

.dash-stat-card__content {
  flex: 1;
}

.dash-stat-card--warning {
  border-color: var(--warning);
  background: #fffbeb;
}

.dash-stat-card--warning:hover {
  border-color: var(--warning);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.dash-stat-card--danger {
  border-color: var(--danger);
  background: #fef2f2;
}

.dash-stat-card--danger:hover {
  border-color: var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.dash-stat-card--highlight {
  border-color: var(--primary);
  background: #f0f7ff;
}

.dash-stat-card--highlight:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Badge Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.badge-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: all 0.2s;
}

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

.badge-card--expiring {
  border-color: var(--warning);
  background: #fffbeb;
}

.badge-card--add {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  min-height: 100px;
}

.badge-card--add:hover {
  background: var(--gray-50);
}

.badge-card__icon {
  font-size: 1.5rem;
}

.badge-card__content {
  flex: 1;
}

.badge-card__name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.badge-card__issuer {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.badge-card__status {
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-card__status.verified {
  color: var(--success);
}

.badge-card__status.pending {
  color: var(--warning);
}

.badge-card__expiry {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.badge-card__add-icon {
  font-size: 2rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.badge-card__add-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Recommended Jobs */
.recommended-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.job-preview-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.job-preview-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.job-preview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.job-preview-card__match {
  background: #ecfdf5;
  color: var(--success);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.job-preview-card__urgency {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.urgency--urgent {
  color: var(--danger);
}

.job-preview-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.job-preview-card__company {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.job-preview-card__meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.job-preview-card__badges {
  margin-top: 0.5rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quick-action-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quick-action-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Compliance Styles */
.compliance-alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert-icon {
  font-size: 1.25rem;
}

.compliance-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.compliance-item--warning {
  border-color: var(--warning);
  background: #fffbeb;
}

.compliance-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.compliance-item__info {
  flex: 1;
}

.compliance-item__name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.compliance-item__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.compliance-status {
  font-size: 0.8125rem;
  font-weight: 500;
}

.compliance-status--ok {
  color: var(--success);
}

.compliance-status--warning {
  color: var(--warning);
}

/* Compliance Card */
.compliance-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.compliance-card--ok {
  border-left: 4px solid var(--success);
}

.compliance-card--warning {
  border-left: 4px solid var(--warning);
  background: #fffbeb;
}

.compliance-card--danger {
  border-left: 4px solid var(--danger);
  background: #fef2f2;
}

.compliance-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.compliance-card__candidate {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.compliance-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.compliance-card__name {
  font-weight: 600;
  margin: 0;
}

.compliance-card__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}

.compliance-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.compliance-badge--ok {
  background: #d1fae5;
  color: var(--success);
}

.compliance-badge--warning {
  background: #fef3c7;
  color: #d97706;
}

.compliance-badge--danger {
  background: #fee2e2;
  color: var(--danger);
}

.compliance-card__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.compliance-cert {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  gap: 1rem;
}

.compliance-cert--warning {
  background: #fef3c7;
}

.compliance-cert--danger {
  background: #fee2e2;
}

.compliance-cert__name {
  font-weight: 500;
}

.compliance-cert__expiry {
  color: var(--gray-500);
}

.compliance-card__actions {
  display: flex;
  gap: 0.5rem;
}

/* Menu Badge Warning */
.dash-menu-badge--warning {
  background: var(--warning);
}

/* Sections */
.dash-section {
  margin-bottom: 2rem;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section__header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.section__link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.section__link:hover {
  text-decoration: underline;
}

/* Badge Detail Card - Compact */
.badge-detail-card {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.75rem !important;
}

.badge-detail-card--expiring {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.badge-detail-header {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.badge-detail-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.badge-detail-issuer {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

.badge-detail-status {
  margin-left: auto;
  flex-shrink: 0;
}

.badge-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.badge-detail-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
}

.badge-detail-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--gray-900);
  font-weight: 600;
}

.invitation-message {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent);
}

.dash-card--highlight {
  border: 2px solid var(--accent);
  background: var(--accent-light);
}

.badge-detail-card .dash-card__actions {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-200);
}

.badge--verified {
  color: var(--success);
}

.badge--pending {
  color: var(--warning);
}

.badge--rejected,
.badge--revoked {
  color: var(--danger);
}

.badge-card--revoked {
  opacity: 0.6;
  border-color: var(--danger);
}

.badge-card--revoked .badge-card__icon {
  filter: grayscale(100%);
}

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

/* Badge Upload Notice */
.badge-upload-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.notice-icon {
  font-size: 1.25rem;
}

.expiry-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.expiry-alert .btn {
  margin-left: auto;
}

/* Badge Categories */
.badge-categories-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

@media (max-width: 768px) {
  .badge-categories-wrapper {
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
  }
  
  .badge-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
  }
  
  .badge-categories::-webkit-scrollbar {
    display: none;
  }
  
  .badge-category-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .badge-categories-wrapper > .btn {
    flex-shrink: 0;
  }
}

.badge-category-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.badge-category-tab:hover {
  border-color: var(--primary);
}

.badge-category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.certification-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

/* Admin Styles */
.badge-verification-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.badge-verification-card--approved {
  border-left: 4px solid var(--success);
}

.badge-verification-card--rejected {
  border-left: 4px solid var(--danger);
  opacity: 0.8;
}

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

.badge-verification-candidate {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.badge-verification-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.badge-verification-candidate h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.badge-verification-candidate p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.badge-verification-date {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.badge-verification-body {
  padding: 1rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.badge-verification-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-info-row {
  font-size: 0.9375rem;
}

.badge-info-label {
  color: var(--gray-500);
  margin-right: 0.5rem;
}

.badge-verification-document {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-verification-actions {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.badge-verification-notes {
  flex: 1;
}

.badge-verification-notes .form-textarea {
  margin-bottom: 0;
}

.badge-verification-buttons {
  display: flex;
  gap: 0.5rem;
}

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

.btn--danger:hover {
  background: #dc2626;
}

/* Analytics Placeholder */
.analytics-placeholder {
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

.analytics-placeholder p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.analytics-placeholder ul {
  list-style: none;
  padding: 0;
}

.analytics-placeholder li {
  margin-bottom: 0.5rem;
}

/* Proposal Card Candidate */
.proposal-card__candidate {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.proposal-card__badges {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

/* Candidate Cards in Dashboard */
.dash-card__badges {
  display: flex;
  gap: 0.25rem;
}

/* Form File Preview */
.form-file-preview {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--success);
}

.form-file-preview span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Certification Status Colors */
.text-success {
  color: var(--success);
}

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

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

.certification--revoked {
  opacity: 0.6;
  text-decoration: line-through;
}

/* Skills & Specializations - Compact */
.dash-section {
  margin-top: 0;
}

.dash-section .dash-card {
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.75rem !important;
}

.dash-section .dash-card__header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.dash-section .dash-card__title {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.dash-section .dash-card__meta {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.dash-section .dash-card__actions {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: none;
}

.badge--primary {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Availability Page Styles */
.availability-preview {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.availability-preview__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.availability-preview__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.availability-preview__status {
  flex: 1;
}

.availability-preview__status-label {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.availability-preview__status-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.availability-preview__status--available .availability-preview__status-label {
  color: var(--success);
}

.availability-preview__status--limited .availability-preview__status-label {
  color: #b45309;
}

.availability-preview__status--unavailable .availability-preview__status-label {
  color: var(--gray-600);
}

/* Payment Setup Page Styles */
.payment-setup-card {
  margin-top: 1.5rem;
}

.payment-setup-section {
  padding: 0;
}

.payment-setup-section__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.payment-setup-section__desc {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.payment-setup-section__hint {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.payment-success-card {
  margin-top: 1.5rem;
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.payment-success-card__content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.payment-success-card__icon {
  font-size: 1.5rem;
  color: #10b981;
  flex-shrink: 0;
  line-height: 1;
}

.payment-success-card__text {
  flex: 1;
}

.payment-success-card__title {
  color: #065f46;
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.payment-success-card__desc {
  color: #047857;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.payment-success-card__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #065f46;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}

.payment-success-card__close:hover {
  color: #047857;
}

.payment-status-success {
  padding: 1rem;
  background: #d1fae5;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid #10b981;
}

.payment-status-success__title {
  color: #065f46;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.payment-status-success__desc {
  color: #047857;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Button Loading States */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn--primary .btn-spinner {
  border-color: #ffffff;
  border-top-color: transparent;
}

/* Cancel Assignment Button Hover Effect */
.btn--cancel {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn--cancel:hover {
  color: #4b5563;
  border-color: #9ca3af;
  background-color: #f9fafb;
}

/* Read-only form styling */
.form-readonly input,
.form-readonly select,
.form-readonly textarea {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.8;
}

.form-readonly input:disabled,
.form-readonly select:disabled,
.form-readonly textarea:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.8;
}

/* =====================
   Data Tables
   ===================== */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.dash-table thead tr {
  border-bottom: 2px solid #e2e8f0;
}

.dash-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
}

.dash-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover {
  background: #f8fafc;
}

.dash-table th.dash-table__actions,
.dash-table td.dash-table__actions {
  width: 88px;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.dash-table__actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.dash-table__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  line-height: 0;
}

.dash-table__icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dash-table__icon-btn--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Assignments — site coverage summary */
.site-coverage {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.site-coverage__label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.site-coverage__empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.site-coverage__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-coverage__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.site-coverage__site {
  font-weight: 600;
  color: var(--gray-900);
}

.site-coverage__count {
  color: var(--gray-600);
}

.site-coverage__soon {
  font-size: 0.75rem;
  font-weight: 500;
  color: #b45309;
}

/* Workforce roster column widths */
.dash-table.roster-table th:nth-child(1),
.dash-table.roster-table td:nth-child(1) { width: 20%; white-space: normal; }
.dash-table.roster-table th:nth-child(2),
.dash-table.roster-table td:nth-child(2) { width: 22%; }
.dash-table.roster-table th:nth-child(3),
.dash-table.roster-table td:nth-child(3) { width: 14%; }
.dash-table.roster-table th:nth-child(4),
.dash-table.roster-table td:nth-child(4) { width: 16%; }
.dash-table.roster-table th:nth-child(5),
.dash-table.roster-table td:nth-child(5) { width: 10%; }
.dash-table.roster-table th:nth-child(6),
.dash-table.roster-table td:nth-child(6) { width: 10%; text-align: center; }
.dash-table.roster-table th:nth-child(7),
.dash-table.roster-table td:nth-child(7) { width: 12%; }

/* Workforce roster — role icon beside name */
.roster-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.roster-name-cell__text {
  min-width: 0;
  flex: 1;
}

.roster-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  color: #fff;
}

.roster-role-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  flex-shrink: 0;
}

.roster-role-icon__shield,
.roster-role-icon__people {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.roster-role-icon {
  position: relative;
}

.roster-role-icon--admin {
  background: #7c3aed;
  color: #fff;
}

.roster-role-icon--admin svg {
  fill: currentColor;
  stroke: none;
}

.roster-role-icon--member {
  background: #e2e8f0;
  color: #475569;
}

.roster-role-icon--member svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
