/* Plugin: InstructorPro Suite | File Version: 2016v4 */
/* ==========================================================================
   EZ2D Global Responsive
   - All plugin modules
   - Collapse grids, tables, forms on smaller screens
   ========================================================================== */

/* Base desktop: 1025px+ is handled by default layout */

/* -----------------------------
    1024px (small laptops / tablets)
----------------------------- */
@media (max-width: 1024px) {
  .ez2d-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ez2d-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -----------------------------
    768px (tablets / large phones)
----------------------------- */
@media (max-width: 768px) {

  .ez2d-asp-page {
    padding: 10px;
  }

  .ez2d-card,
  .ez2d-card-lg,
  .ez2d-card-sm,
  .ez2d-table-card {
    border-radius: 14px;
    padding: 12px;
  }

  .ez2d-grid-4,
  .ez2d-grid-3,
  .ez2d-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ez2d-section-title {
    font-size: 18px;
  }

  .ez2d-table th,
  .ez2d-table td {
    padding: 6px 6px;
  }

  .ez2d-btn,
  .ez2d-btn-primary,
  .ez2d-btn-secondary,
  .ez2d-btn-ghost,
  .ez2d-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* -----------------------------
    640px (phones)
----------------------------- */
@media (max-width: 640px) {

  .ez2d-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ez2d-table-wrap {
    overflow-x: auto;
  }

  .ez2d-table {
    min-width: 720px; /* keep columns readable, allow horizontal scroll */
  }

  .ez2d-upload-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .ez2d-btn,
  .ez2d-btn-primary,
  .ez2d-btn-secondary,
  .ez2d-btn-ghost,
  .ez2d-btn-sm {
    width: auto;
  }
}
/* ==========================================================================
   EZ2D Dashboard  Responsive (Google-style)
   ========================================================================== */

/* -----------------------------
    1024px
----------------------------- */
@media (max-width: 1024px) {
    .ez2d-dashboard-main {
        padding: 20px;
    }
}

/* -----------------------------
    900px  Mobile Sidebar
----------------------------- */
@media (max-width: 900px) {

    /* Sidebar hidden by default on mobile */
    .ez2d-dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 240px;
    }

    /* When menu opened via JS */
    body.ez2d-mobile-open .ez2d-dashboard-sidebar {
        transform: translateX(0);
    }

    /* Main content takes full width */
    .ez2d-dashboard-main {
        margin-left: 0 !important;
        padding: 20px 15px;
    }

    /* Hamburger visible */
    .ez2d-mobile-hamburger {
        display: flex;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 2001;
        width: 28px;
        height: 22px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .ez2d-mobile-hamburger span {
        display: block;
        height: 3px;
        background: var(--ez2d-text);
        border-radius: 3px;
    }

    /* Reserve safe space for fixed hamburger across all modules */
    body:has(.ez2d-mobile-hamburger) .ez2d-dashboard-main {
        padding-left: 16px !important;
    }

    body:has(.ez2d-mobile-hamburger) .ez2d-module-content {
        padding-left: 0 !important;
    }

    /* Keep dashboard header clear of the fixed hamburger */
    .ez2d-dashboard-header {
        padding-left: 44px !important;
    }

    body:has(.ez2d-admin-dashboard-shell) .site-header .site-branding,
    body:has(.ez2d-admin-dashboard-shell) .site-header .ast-site-identity,
    body.ez2d-dashboard-active .site-header .site-branding,
    body.ez2d-dashboard-active .site-header .ast-site-identity,
    body.ez2d-dashboard-active .site-header .custom-logo-link,
    body.ez2d-dashboard-active .site-header .site-title,
    body:has(.ez2d-fe-home) .site-header .site-branding,
    body:has(.ez2d-fe-home) .site-header .ast-site-identity,
    body:has(.ez2d-mobile-hamburger) .site-header .site-branding,
    body:has(.ez2d-mobile-hamburger) .site-header .ast-site-identity,
    body:has(.ez2d-mobile-hamburger) .ast-mobile-header-wrap .site-branding,
    body:has(.ez2d-mobile-hamburger) .ast-mobile-header-wrap .ast-site-identity {
        display: none !important;
    }

    body:has(.ez2d-admin-dashboard-shell) .ez2d-header-brand,
    body:has(.ez2d-admin-dashboard-shell) .ez2d-logo-area.upgraded {
        display: none !important;
    }
}

/* -----------------------------
    640px  Small phones
----------------------------- */
@media (max-width: 640px) {
    .ez2d-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ez2d-dashboard-greeting h2 {
        font-size: 18px;
    }
}

