/* Admin Dashboard Styles - Following Neumorphism Design System */

/* Reset and Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f9fafb !important;
  font-family: var(--font-secondary, 'Nunito', sans-serif);
  color: #1e293b;
  overflow-x: hidden;
}

/* Admin Dashboard Layout */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9fafb;
}

/* Sidebar Navigation */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 16rem;
  height: 100vh;
  background: #f9fafb;
  border-right: 0.0625rem solid rgba(163, 177, 198, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-blue);
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.35),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.75);
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  line-height: 1.2;
}

.sidebar-logo-subtitle {
  font-size: 0.6875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sidebar-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 0.25rem solid transparent;
  text-align: left;
}

.nav-item:hover {
  color: var(--color-primary-blue);
  background: rgba(89, 151, 199, 0.05);
}

.nav-item.active {
  color: var(--color-primary-blue);
  background: rgba(89, 151, 199, 0.08);
  border-left-color: var(--color-primary-blue);
}

.nav-item svg {
  flex-shrink: 0;
}

/* Quick Action nav items */
.nav-action {
  font-size: 0.8125rem;
  padding: 0.625rem 1.5rem;
  color: var(--color-primary-blue);
  opacity: 0.85;
}

.nav-action:hover {
  opacity: 1;
  background: rgba(236, 128, 47, 0.08);
  color: var(--color-primary-orange);
}

.nav-divider {
  height: 0.0625rem;
  background: rgba(163, 177, 198, 0.15);
  margin: 1rem 1.5rem;
}

.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  padding: 0 1.5rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.admin-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.admin-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-role {
  font-size: 0.6875rem;
  color: #64748b;
}

.logout-btn {
  width: 1.75rem;
  height: 1.75rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 
    0.15rem 0.15rem 0.3rem rgba(163, 177, 198, 0.3),
    -0.15rem -0.15rem 0.3rem rgba(255, 255, 255, 0.7);
}

.logout-btn:hover {
  color: var(--color-primary-orange);
  transform: scale(1.05);
}

/* Main Content Area */
.admin-main {
  margin-left: 16rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: #f9fafb;
  padding: 1.5rem 2rem;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 800;
}

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

.page-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  padding: 0.625rem 1rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-primary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.35),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.header-btn:hover {
  color: var(--color-secondary-blue);
  transform: translateY(-0.0625rem);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.4),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.8);
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.125rem solid #f9fafb;
}

.btn-primary {
  background: var(--color-primary-blue);
  color: white;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

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

/* Content Container */
.content-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.view-content {
  display: none;
}

.view-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

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

.stat-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
}

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

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.375rem 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.stat-value {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
  line-height: 1.2;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.25),
    inset -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.6);
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.stat-change {
  font-weight: 700;
}

.stat-change.positive {
  color: #059669;
}

.stat-change.negative {
  color: #dc2626;
}

.stat-period {
  color: #94a3b8;
}

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
}

.card-large {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .overview-grid {
    grid-template-columns: 2fr 1fr;
  }
  
  .card-large {
    grid-column: 1 / 2;
  }
}

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

.card-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title svg {
  color: var(--color-secondary-blue);
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--color-secondary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.card-action-btn:hover {
  color: var(--color-primary-blue);
}

.card-content {
  color: #475569;
}

.card-note {
  margin: 1.5rem 0 0 0;
  padding: 1rem;
  background: rgba(89, 151, 199, 0.05);
  border-left: 0.25rem solid var(--color-secondary-blue);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #475569;
}

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

.heatmap-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.heatmap-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heatmap-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-blue);
}

.heatmap-count {
  font-size: 0.8125rem;
  color: #64748b;
}

.heatmap-bar {
  height: 0.75rem;
  background: rgba(163, 177, 198, 0.15);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.heatmap-fill {
  height: 100%;
  border-radius: 2rem;
  transition: width 0.5s ease;
}

/* Usage Stats */
.usage-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usage-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.usage-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.25),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.65);
}

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

.usage-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0 0 0.125rem 0;
}

.usage-stat {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.usage-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-good {
  background: #dbeafe;
  color: #1e40af;
}

.badge-review {
  background: #fef3c7;
  color: #92400e;
}

/* View Header */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-switcher {
  display: flex;
  background: #f9fafb;
  padding: 0.25rem;
  border-radius: 0.75rem;
  box-shadow: 
    inset 0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    inset -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0.625rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--color-primary-blue);
  color: white;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn.btn-primary {
  background: var(--color-primary-blue);
  color: white;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

.btn.btn-primary:hover {
  background: var(--color-secondary-blue);
  transform: translateY(-0.0625rem);
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.5),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.9);
}

/* Search and Filters */
.search-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.search-box {
  flex: 1;
  min-width: 15rem;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: #f9fafb;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-primary-blue);
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.6),
    0 0 0 0.1875rem rgba(89, 151, 199, 0.1);
}

.filter-select {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-primary-blue);
  cursor: pointer;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.25),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: var(--color-secondary-blue);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7),
    0 0 0 0.1875rem rgba(89, 151, 199, 0.1);
}

/* Tab Content */
.tab-content {
  display: none;
}

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

/* Data Table */
.data-table-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 0.125rem solid rgba(163, 177, 198, 0.2);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(89, 151, 199, 0.05);
}

.data-table tbody td {
  padding: 1rem;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.1);
  vertical-align: middle;
  font-size: 0.875rem;
  color: #475569;
}

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

/* Table Cell Components */
.name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-secondary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.3),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.name {
  font-weight: 600;
  color: var(--color-primary-blue);
  font-size: 0.9375rem;
}

.sub-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(89, 151, 199, 0.1);
  color: var(--color-secondary-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.15),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.4);
}

.pill-domain {
  background: rgba(236, 128, 47, 0.1);
  color: var(--color-primary-orange);
}

.stats-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item {
  font-size: 0.75rem;
  color: #64748b;
}

.performance-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.performance-bar {
  flex: 1;
  height: 0.5rem;
  background: rgba(163, 177, 198, 0.15);
  border-radius: 2rem;
  overflow: hidden;
  min-width: 5rem;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.performance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary-blue), var(--color-primary-blue));
  border-radius: 2rem;
  transition: width 0.5s ease;
}

.performance-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  white-space: nowrap;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.email-cell {
  color: #64748b;
  font-size: 0.8125rem;
}

.provider-cell {
  color: #475569;
  font-size: 0.8125rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-invited {
  background: #dbeafe;
  color: #1e40af;
}

.badge-needs-support {
  background: #fef3c7;
  color: #92400e;
}

.badge-high {
  background: #fecaca;
  color: #991b1b;
}

.badge-medium {
  background: #fed7aa;
  color: #9a3412;
}

.badge-low {
  background: #d1fae5;
  color: #065f46;
}

.badge-therapy {
  background: #e9d5ff;
  color: #6b21a8;
}

.badge-assessment {
  background: #fbcfe8;
  color: #9f1239;
}

.badge-observation {
  background: #cffafe;
  color: #155e75;
}

.badge-standard {
  background: #e2e8f0;
  color: #475569;
}

/* Buttons */
.icon-btn {
  width: 2rem;
  height: 2rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 
    0.15rem 0.15rem 0.3rem rgba(163, 177, 198, 0.25),
    -0.15rem -0.15rem 0.3rem rgba(255, 255, 255, 0.65);
}

.icon-btn:hover {
  color: var(--color-primary-blue);
  transform: scale(1.05);
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--color-secondary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-btn:hover {
  color: var(--color-primary-blue);
}

/* Empty State (for filtered results) */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
}

.empty-state svg {
  margin: 0 auto 1rem;
  opacity: 0.4;
  color: #94a3b8;
}

.empty-state p {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

/* Empty View */
.empty-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #64748b;
}

.empty-view svg {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-view h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-primary-blue);
  margin: 0 0 0.5rem 0;
}

.empty-view p {
  font-size: 0.9375rem;
  color: #64748b;
  max-width: 32rem;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 14rem;
  }
  
  .admin-main {
    margin-left: 14rem;
  }
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    width: 16rem;
    box-shadow: none;
  }
  
  .admin-sidebar:not(.collapsed) {
    transform: translateX(0);
    box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-header {
    top: 0;
    flex-wrap: wrap;
  }
  
  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
  
  .header-btn span:not(.notification-badge) {
    display: none;
  }
  
  .btn-primary span {
    display: inline;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .content-container {
    padding: 1rem;
  }
  
  .view-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-switcher {
    width: 100%;
  }
  
  .search-filter-bar {
    flex-direction: column;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .data-table-card {
    padding: 1rem;
    overflow-x: scroll;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* ========================================
   ADDITIONAL COMPONENTS
   ======================================== */

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #64748b;
}

/* Card Action Button */
.card-action-btn {
  background: transparent;
  border: none;
  color: var(--color-secondary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.card-action-btn:hover {
  color: var(--color-primary-blue);
}

/* Heatmap Insight */
.heatmap-insight {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 1.5rem 0 0 0;
  padding-top: 1rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
  line-height: 1.5;
}

.heatmap-insight strong {
  color: #64748b;
}

/* System Usage List */
.usage-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.usage-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.usage-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usage-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.usage-icon-purple {
  background: #e9d5ff;
  color: #9333ea;
}

.usage-icon-orange {
  background: #fed7aa;
  color: #ea580c;
}

.usage-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.usage-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-blue);
}

.usage-detail {
  font-size: 0.75rem;
  color: #64748b;
}

.usage-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
}

.usage-excellent {
  background: #d1fae5;
  color: #059669;
}

.usage-good {
  background: #d1fae5;
  color: #059669;
}

.usage-review {
  background: #fef3c7;
  color: #d97706;
}

/* Notification Dot */
.header-btn-notification {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 0.5rem;
  height: 0.5rem;
  background: #ef4444;
  border-radius: 50%;
  border: 0.125rem solid white;
}

/* View Header */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Tab Switcher */
.tab-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.75rem;
  box-shadow: 
    inset 0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.2),
    inset -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.5);
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: white;
  color: var(--color-primary-blue);
  box-shadow: 
    0.2rem 0.2rem 0.4rem rgba(163, 177, 198, 0.25),
    -0.2rem -0.2rem 0.4rem rgba(255, 255, 255, 0.7);
}

.tab-btn:hover:not(.active) {
  color: var(--color-primary-blue);
}

/* Data Table Card */
.data-table-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.3),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.7);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 50rem;
}

.data-table thead tr {
  background: #f1f5f9;
}

.data-table th {
  padding: 0.875rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: left;
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.2);
}

.data-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-primary-blue);
  border-bottom: 0.0625rem solid rgba(163, 177, 198, 0.1);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.3s ease;
}

.data-table tbody tr:hover {
  background: rgba(89, 151, 199, 0.04);
}

/* Person Cell */
.person-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.person-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

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

.person-name {
  font-weight: 600;
  color: var(--color-primary-blue);
}

.person-role {
  font-size: 0.75rem;
  color: #64748b;
}

/* Usage Stats in Table */
.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.usage-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
}

.usage-stat svg {
  color: #94a3b8;
}

/* Performance Bar */
.performance-bar {
  width: 5rem;
  height: 0.375rem;
  background: #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.performance-fill {
  height: 100%;
  border-radius: 1rem;
  transition: width 0.5s ease;
}

.performance-fill.excellent {
  background: #10b981;
}

.performance-fill.good {
  background: #3b82f6;
}

.performance-fill.needs-work {
  background: #f59e0b;
}

.performance-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

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

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

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

/* Risk Badges */
.risk-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.risk-high {
  background: #fecaca;
  color: #dc2626;
}

.risk-medium {
  background: #fed7aa;
  color: #ea580c;
}

.risk-low {
  background: #d1fae5;
  color: #059669;
}

/* Support Badges */
.support-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.support-therapy {
  background: #e9d5ff;
  color: #9333ea;
}

.support-assessment {
  background: #fbcfe8;
  color: #db2777;
}

.support-observation {
  background: #cffafe;
  color: #0891b2;
}

.support-standard {
  background: #f1f5f9;
  color: #64748b;
}

/* Last Active / Last Update */
.last-active,
.last-update {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Action Menu Button */
.action-menu-btn {
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.action-menu-btn:hover {
  background: #f1f5f9;
  color: #64748b;
}

/* Text Link */
.text-link {
  background: transparent;
  border: none;
  color: var(--color-secondary-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

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

/* View Profile Button */
.view-profile-btn {
  white-space: nowrap;
}

/* Table Footer */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.15);
}

.table-count {
  font-size: 0.8125rem;
  color: #64748b;
}

.load-more-btn {
  background: #f1f5f9;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #e2e8f0;
}

/* Search & Filter Bar */
.search-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 
    0.3rem 0.3rem 0.6rem rgba(163, 177, 198, 0.3),
    -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.7);
}

.search-box {
  position: relative;
  min-width: 16rem;
  flex: 1;
  max-width: 20rem;
}

.search-box svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-box input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.75rem;
  background: #f1f5f9;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary-blue);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  box-shadow: 0 0 0 0.1875rem rgba(89, 151, 199, 0.15);
}

.search-box input::placeholder {
  color: #94a3b8;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 0.0625rem solid rgba(163, 177, 198, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 0.0625rem solid rgba(163, 177, 198, 0.2);
  padding: 0.5rem 0.75rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  z-index: 200;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: #94a3b8;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-item.active {
  color: var(--color-secondary-blue);
  background: rgba(89, 151, 199, 0.1);
}

.mobile-nav-item:hover:not(.active) {
  color: #64748b;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  .admin-main {
    padding-bottom: 5rem;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
  }
  
  .view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .view-header .header-btn {
    width: 100%;
    justify-content: center;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select {
    flex: 1;
    min-width: 0;
  }
  
  .search-box {
    min-width: 100%;
    max-width: 100%;
  }
  
  .data-table {
    min-width: 60rem;
  }
}

