/* ==========================================================================
   PROMPTRY - RESPONSIVE STYLES
   ========================================================================== */

/* Large Desktop / High-res screens */

/* Medium Desktop & Laptops */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pad-content {
    padding: 24px 24px;
  }

  .page-title {
    font-size: 18px;
  }
}



/* Responsive Off-Canvas Sidebar Breakpoint (< 1199px) */
@media (max-width: 1199px) {
  body {
    padding: 6px;
    /* Tighter outer desk margin on mobile */
  }

  /* Responsive Spiral Binding - Keep visible on left notebook spine with exact 30px gap */
  .spiral-binding {
    display: flex !important;
    width: 26px;
    gap: 30px;
    padding: 20px 0;
  }

  .spiral-svg {
    width: 32px;
    height: 14px;
    margin-left: -8px;
  }

  /* Pad Content space for spiral binding on mobile */
  .pad-content {
    padding-left: 36px !important;
    padding-right: 16px !important;
  }

  /* Responsive Mobile Sidebar Off-Canvas Drawer */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 20px !important;
    align-items: stretch !important;
    background-color: var(--bg-sidebar);
  }

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

  .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-main);
    transition: background-color 0.2s, transform 0.2s;
  }

  .sidebar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
  }

  /* Ensure text & full logos are shown inside mobile drawer view */
  .app-sidebar .nav-text,
  .app-sidebar .btn-text,
  .app-sidebar .nav-section-title {
    display: inline-block !important;
  }

  .app-sidebar .nav-section-title {
    display: block !important;
  }

  /* Overlay backdrop when mobile sidebar opens */

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }



  .content-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .search-box {
    width: 100%;
  }

  .btn-add {
    justify-content: center;
    width: 100%;
  }

  .welcome-title {
    font-size: 22px;
    text-align: left;
  }

  .top-banner {
    padding: 0 16px;
  }
}

/* Tablet (Portrait & Landscape) */


@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .note-split-grid {
    grid-template-columns: 1fr;
  }

  .empty-state-svg-wrapper svg {
    max-height: 110px;
    max-width: 180px;
  }

  .empty-state-svg-wrapper {
    margin-bottom: 2px;
  }

  .empty-state-title {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .empty-state-desc {
    font-size: 14px;
  }

  .empty-state-container {
    padding: 24px 12px;
  }

  .btn-primary {
    padding: 14px 14px;
    font-size: 15px;
  }


  .option-card {
    padding: 15px 6px;
    border-radius: 10px;
  }

  .option-label {
    font-size: 14px;
  }

  .option-icon-circle {
    width: 50px;
    height: 50px;
  }


  .delete-modal-title {
    font-size: 16px;
  }

  .modal-body {
    padding: 20px 14px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc {
    font-size: 12px;
  }

  .sub-benefit-title {
    font-size: 16px;
  }

  .emoji-icon {
    font-size: 26px;
  }

  .emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .sub-status-card,
  .sub-benefits-card {
    padding: 20px 14px;
    margin-bottom: 20px;
  }

  .sub-plan-title,
  .sub-price-amount {
    font-size: 18px;
  }

  .sub-plan-renews,
  .sub-price-period {
    font-size: 11px;
  }

  .sub-valid-value {
    font-size: 13px;
  }

  .sub-label {
    font-size: 12px;
  }

  .sub-status-value {
    gap: 4px;
    font-size: 14px;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .sub-benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

@media (max-width: 576px) {
  .spiral-binding {
    width: 22px;
    gap: 16px;
  }

  .spiral-svg {
    width: 24px;
    height: 10px;
  }

  .filter-pills {
    width: 100%;
    justify-content: space-between;
  }

  .filter-pill {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

  .pad-content {
    padding: 16px 12px 90px 32px !important;
  }

  .CodeMirror {
    height: 280px !important;
    padding: 0 !important;
    font-size: 13.5px !important;
  }

  .CodeMirror-scroll {
    padding: 14px 12px !important;
  }
}