/* PSYCHIZEN DASHBOARDS & WORKSPACES - ULTRA MODERN SAAS STYLING */

.dashboard-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
  background-color: #F8FAFC;
}

@media (max-width: 1024px) {
  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background-color: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  padding: 20px 14px 32px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}
.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* User Profile Header Card in Sidebar */
.dashboard-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.dashboard-user-card:hover {
  border-color: #86EFAC;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.dashboard-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.dashboard-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.status-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.avatar-edit-overlay-btn {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #174C46;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 3;
}
.avatar-edit-overlay-btn:hover {
  transform: scale(1.18);
  background: #059669;
}

.dashboard-user-info {
  overflow: hidden;
}

.dashboard-user-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.dashboard-user-info span {
  font-size: 0.76rem;
  color: #065F46;
  font-weight: 700;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Category Navigation Section */
.dashboard-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.dashboard-menu-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #94A3B8;
  padding: 14px 12px 4px 12px;
  user-select: none;
}

.dashboard-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.dashboard-menu-link .link-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-menu-link:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  transform: translateX(3px);
}

.dashboard-menu-link.active {
  background: linear-gradient(90deg, #F0FDF4 0%, #FFFFFF 100%);
  color: #065F46;
  font-weight: 700;
  border-left-color: #059669;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.menu-badge-counter {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
}

.menu-badge-verified {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.dashboard-main {
  padding: 24px 32px 48px 32px;
  overflow-y: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 16px;
  }
}

.dashboard-header {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.dashboard-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

/* KPI / Metric Cards (Admin & Provider) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.metric-card-label {
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #0F172A;
  line-height: 1.2;
}

.metric-card-sub {
  font-size: 0.8rem;
  color: #10B981;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: #F8FAFC;
  padding: 12px 16px;
  font-weight: 700;
  color: #64748B;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid #E2E8F0;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background-color: #F8FAFC;
}
