/**
 * OST Support Desk - Modern SaaS Portal Stylesheet
 */

.ost-portal-body {
  font-family: var(--ost-font-body, -apple-system, sans-serif);
  background-color: var(--ost-light-bg, #F4F7FB);
  color: var(--ost-text-main, #142238);
}

.ost-ticket-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ost-ticket-pill-open {
  background: #EFF8FF;
  color: #1570EF;
}

.ost-ticket-pill-progress {
  background: #FEF3C7;
  color: #D97706;
}

.ost-ticket-pill-resolved {
  background: #ECFDF5;
  color: #059669;
}

.ost-dialog-backdrop::backdrop {
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Responsive SaaS Portal Layout
   ========================================================================== */

.ost-portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 85vh;
}

.ost-portal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .ost-portal-layout {
    grid-template-columns: 1fr;
  }

  .ost-portal-sidebar {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem !important;
  }

  .ost-portal-workspace {
    padding: 1.5rem 1rem !important;
  }

  .ost-portal-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 600px) {
  #ost-new-ticket-dialog {
    padding: 1.5rem 1rem !important;
    width: 95% !important;
  }

  #ost-new-ticket-dialog div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
