/**
 * Theme Name: Foxly
 * Template:   generatepress
 * ...other header fields
 */

 /* === Scoped to #my-dashboard === */
  #my-dashboard {
    position: relative;
    display: flex;
    min-height: 100vh;
    font-family: sans-serif;
    background: #f9fafb;
  }

  /* Sidebar */
  #my-dashboard-sidebar {
    background: #1f2937;
    color: #e5e7eb;
    width: 200px;
    position: fixed;
    top: 60px; /* adjust to match your WP header height */
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 1rem;
  }

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

  #my-dashboard-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #my-dashboard-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
  }

  #my-dashboard-sidebar a:hover {
    background: #374151;
  }

  /* Overlay */
  #my-dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  #my-dashboard-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Toggle button */
  #my-dashboard-mobileToggle {
    position: fixed;
    top: 70px; /* sits under WP header */
    left: 1rem;
    z-index: 1100;
    background: #1f2937;
    color: #e5e7eb;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
  }

  /* Content */
  #my-dashboard-main {
    flex: 1;
    padding: 80px 1rem 1rem; /* push under header */
    margin-left: 0;
    transition: margin-left 0.3s ease;
    width: 100%;
  }

  #my-dashboard-main .card {
    background: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
  }

  /* Desktop sidebar visible */
  @media (min-width: 769px) {
    #my-dashboard-sidebar {
      transform: translateX(0);
    }
    #my-dashboard-overlay { display: none; }
    #my-dashboard-mobileToggle { display: none; }
    #my-dashboard-main {
      margin-left: 200px;
    }
  }
