/* my-profile-dashboard.css — page-specific layout extracted from
   FRONTEND/02_profiles/my-profile-dashboard.html during CC-02b-wave2.
   Migrated by CC-02b-wave2 (precondition for legacy components.css archival).
   Discussion: DOCS/INDIANMARRIAGE/discussions/CC-02b-wave2.md */

/* Dashboard Layout Styles */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  position: fixed;
  top: 6.25rem;
  left: 0;
  width: 16rem;
  height: 100vh;
  background: var(--bg-surface, #1f2937);
  border-right: 0.0625rem solid var(--border-color, #374151);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow: hidden;
}

.dashboard-sidebar.collapsed {
  width: 4.5rem;
}

.sidebar-header {
  padding: 1rem 1.5rem;
  border-bottom: 0.0625rem solid var(--border-color, #374151);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary, #fff);
}

.sidebar-logo {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-weight: 600;
  font-size: 1.125rem;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: var(--bg-surface-hover, #374151);
}

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

.nav-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--text-muted, #6b7280);
  padding: 0.5rem 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-item {
  list-style: none;
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--bg-surface-hover, #374151);
  color: var(--text-primary, #fff);
}

.nav-link.active {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  color: white;
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 624.9375rem;
  min-width: 1.25rem;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 0.0625rem solid var(--border-color, #374151);
}

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

.user-avatar img,
.avatar-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 624.9375rem;
  object-fit: cover;
}

.avatar-placeholder {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

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

.user-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
}

.logout-link {
  color: var(--text-secondary, #9ca3af);
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.logout-link:hover {
  background: #dc2626;
  color: white;
}

.dashboard-main {
  flex: 1;
  margin-left: 16rem;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  background: var(--bg-primary, #111827);
}

.dashboard-sidebar.collapsed + .dashboard-main,
.dashboard-main.sidebar-collapsed {
  margin-left: 4.5rem;
}

/* Mobile sidebar */
@media (max-width: 1023px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

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

  .mobile-menu-btn {
    display: flex !important;
  }
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  border: none;
  border-radius: 624.9375rem;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 0.25rem 0.75rem rgba(249, 115, 22, 0.4);
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
}

@media (max-width: 1023px) {
  .sidebar-overlay.active {
    display: block;
  }
}

/* Main content area styling */
.main-content-area {
  padding: 2rem;
  max-width: 87.5rem;
  margin: 0 auto;
}
