/* ==========================================================================
   GOALS > CREATE TEMPLATE (assets/css/goals-create-template.css)
   Pixel-perfect styling matching HubSpot Goals template library.
   ========================================================================== */

.gt-page {
  padding: 24px 32px 64px;
  max-width: 1320px;
  margin: 0 auto;
  color: var(--text, #33475b);
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Top Navigation & Header
   ------------------------------------------------------------------------- */
.gt-header {
  margin-bottom: 24px;
}

.gt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #516f90);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color var(--fast, 0.15s) ease;
}

.gt-back-link:hover {
  color: var(--brand-ink, var(--brand, #006567));
  text-decoration: underline;
}

.gt-icon-back {
  width: 14px;
  height: 14px;
}

.gt-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gt-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #33475b);
  margin: 0;
}

.gt-btn-create {
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Blue Info Notice Banner
   ------------------------------------------------------------------------- */
.gt-notice {
  background: #f0faff;
  border: 1px solid #7fd5f6;
  border-radius: 6px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  transition: opacity var(--fast, 0.15s) ease;
}

.gt-notice.is-dismissed {
  display: none !important;
}

.gt-notice__content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #004d66;
}

.gt-notice__title {
  font-weight: 700;
  color: var(--text);
}

.gt-notice__text {
  color: var(--text-muted);
}

.gt-notice__link {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gt-notice__link:hover {
  text-decoration: underline;
}

.gt-notice__close {
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity var(--fast, 0.15s) ease;
}

.gt-notice__close:hover {
  opacity: 1;
}
.gt-empty-state__art img{width: 150px; height: auto;}
/* -------------------------------------------------------------------------
   Main 2-Column Layout
   ------------------------------------------------------------------------- */
.gt-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* -------------------------------------------------------------------------
   Left Sidebar Filter Navigation
   ------------------------------------------------------------------------- */
.gt-sidebar-wrapper {
  position: relative;
}

.gt-filter-trigger {
  display: none;
}

.gt-sidebar {
  position: sticky;
  top: 80px;
}

.gt-nav-list {
  display: flex;
  flex-direction: column;
}

.gt-nav-item {
  position: relative;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text, #33475b);
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--fast, 0.15s) ease, background var(--fast, 0.15s) ease;
}

.gt-nav-item:hover {
  background: var(--surface-2, #f5f8fa);
  color: var(--brand-ink, var(--brand, #006567));
}

.gt-nav-item.is-active {
  font-weight: 700;
  color: var(--text, #1e293b);
  background: transparent;
}

.gt-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--text, #1e293b);
  border-radius: 2px;
}

.gt-nav-divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 12px 0;
}

/* Accordions */
.gt-accordion {
  margin-bottom: 4px;
}

.gt-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #33475b);
  border-radius: 4px;
}

.gt-accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--fast, 0.2s) ease;
  color: var(--text-muted, #66788a);
}

.gt-accordion.is-open .gt-accordion-chevron {
  transform: rotate(0deg);
}

.gt-accordion:not(.is-open) .gt-accordion-chevron {
  transform: rotate(180deg);
}

.gt-accordion-body {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

.gt-accordion:not(.is-open) .gt-accordion-body {
  display: none;
}

.gt-nav-subitem {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted, #516f90);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--fast, 0.15s) ease;
}

.gt-nav-subitem:hover {
  color: var(--brand-ink, var(--brand, #006567));
  background: var(--surface-2, #f5f8fa);
}

.gt-nav-subitem.is-active {
  font-weight: 700;
  color: var(--brand-ink, var(--brand, #006567));
  background: var(--surface-2, #eaf0f6);
}

/* -------------------------------------------------------------------------
   Right Content Area & Grids
   ------------------------------------------------------------------------- */
.gt-content {
  min-width: 0;
}

.gt-section {
  margin-bottom: 40px;
}

.gt-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin: 0 0 16px;
}

.gt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* -------------------------------------------------------------------------
   Template Cards
   ------------------------------------------------------------------------- */
.gt-card {
  position: relative;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd6e2);
  border-radius: 12px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  box-sizing: border-box;
  transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.gt-card:hover {
  border-color: var(--border-strong, #99acc2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Card Icons */
.gt-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex: none;
}

.gt-card__icon svg {
  width: 18px;
  height: 18px;
}

.gt-card__icon--purple {
  background: #f1edfe;
  color: #7c3aed;
}

.gt-card__icon--green {
  background: #e6f9f0;
  color: #00a389;
}

.gt-card__icon--orange {
  background: #ffede6;
  color: #ff7a59;
}

.gt-card__icon--gray {
  background: #f0f3f6;
  color: #66788a;
}

.gt-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #33475b);
  margin: 0 0 20px;
  flex: 1;
}

.gt-card.has-desc .gt-card__title {
  margin: 0 0 6px;
  flex: 0 0 auto;
}

.gt-card__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #66788a);
  margin: 0 0 16px;
  word-break: break-word;
  white-space: pre-line;
  flex: 1;
}

.gt-card__desc[hidden] {
  display: none !important;
}

/* Card Actions */
.gt-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.gt-card__actions--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.gt-btn-set,
.gt-btn-upgrade {
  --btn-h: 30px !important;
  height: 30px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border-color: var(--border-strong, #cbd6e2) !important;
  background: var(--surface, #ffffff) !important;
  color: var(--text, #33475b) !important;
  border-radius: 20px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--fast, 0.15s) ease !important;
}

.gt-btn-set:hover,
.gt-btn-upgrade:hover {
  border-color: var(--brand-ink, var(--brand, #006567)) !important;
  color: var(--brand-ink, var(--brand, #006567)) !important;
  background: var(--surface, #ffffff) !important;
}

.gt-icon-lock,
.gt-icon-arrow-up {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.gt-link-details {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink, var(--brand, #006567));
  cursor: pointer;
  text-decoration: none;
}

.gt-link-details:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Edit Button, Tooltip, and Side Popover (Screenshot 3)
   ------------------------------------------------------------------------- */
.gt-card__edit-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.gt-card__edit-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #66788a;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--fast, 0.15s) ease, color var(--fast, 0.15s) ease;
}

.gt-card__edit-btn:hover,
.gt-card__edit-btn.is-active {
  background: var(--surface-2, #eaf0f6);
  color: var(--text, #33475b);
}

.gt-card__edit-btn svg {
  width: 15px;
  height: 15px;
}

/* Black Tooltip on hover (Screenshot 3) */
.gt-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  width: 170px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast, 0.15s) ease, visibility var(--fast, 0.15s) ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 120;
}

.gt-card__edit-wrap:hover .gt-tooltip:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
}

.gt-tooltip__arrow {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #111827;
}

/* Side Popover on click (Screenshot 3) */
.gt-popover {
  position: absolute;
  right: calc(100% + 16px);
  top: -16px;
  width: 320px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd6e2);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  z-index: 130;
  box-sizing: border-box;
}

.gt-popover__arrow {
  position: absolute;
  top: 26px;
  right: -7px;
  width: 12px;
  height: 12px;
  background: var(--surface, #ffffff);
  border-right: 1px solid var(--border, #cbd6e2);
  border-top: 1px solid var(--border, #cbd6e2);
  transform: rotate(45deg);
}

.gt-form-group {
  margin-bottom: 14px;
}

.gt-form-row {
  display: flex;
  gap: 12px;
}

.gt-form-col {
  flex: 1;
}

.gt-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin-bottom: 6px;
}

.gt-input,
.gt-textarea,
.gt-select {
  width: 100%;
  border: 1.5px solid var(--border-strong, #cbd6e2);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  background: var(--surface, #ffffff);
  color: var(--text, #33475b);
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease;
}

.gt-input {
  height: 38px;
}

.gt-textarea {
  resize: vertical;
  min-height: 80px;
}

.gt-input:focus,
.gt-textarea:focus,
.gt-select:focus {
  outline: 0;
  border-color: var(--brand-ink, var(--brand, #006567));
  box-shadow: 0 0 0 3px rgba(0, 101, 103, 0.15);
}

.gt-popover__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.gt-btn-save {
  --btn-h: 32px !important;
  height: 32px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
}

.gt-btn-cancel {
  --btn-h: 32px !important;
  height: 32px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

/* -------------------------------------------------------------------------
   Actions Dropdown (Screenshot 4)
   ------------------------------------------------------------------------- */
.gt-actions-dropdown {
  position: relative;
  display: inline-block;
}

.gt-btn-actions {
  background: none;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text, #33475b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--fast, 0.15s) ease, background var(--fast, 0.15s) ease;
}

.gt-btn-actions:hover,
.gt-btn-actions[aria-expanded="true"] {
  color: var(--brand-ink, var(--brand, #006567));
  background: var(--surface-2, #f5f8fa);
}

.gt-chevron-actions {
  width: 9px;
  height: 9px;
  transition: transform var(--fast, 0.15s) ease;
}

.gt-btn-actions[aria-expanded="true"] .gt-chevron-actions {
  transform: rotate(180deg);
}

.gt-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 290px;
  max-width: calc(100vw - 32px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd6e2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 8px;
  z-index: 100;
  box-sizing: border-box;
}

.gt-dropdown-menu.gt-dropdown-menu--up {
  top: auto;
  bottom: calc(100% + 10px);
}

.gt-dropdown-arrow {
  position: absolute;
  top: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: var(--surface, #ffffff);
  border-left: 1px solid var(--border, #cbd6e2);
  border-top: 1px solid var(--border, #cbd6e2);
  transform: rotate(45deg);
}

.gt-dropdown-menu.gt-dropdown-menu--up .gt-dropdown-arrow {
  top: auto;
  bottom: -6px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid var(--border, #cbd6e2);
  border-bottom: 1px solid var(--border, #cbd6e2);
  transform: rotate(45deg);
}

.gt-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background var(--fast, 0.15s) ease;
}

.gt-dropdown-item:hover {
  background: var(--surface-2, #f5f8fa);
}

.gt-dropdown-icon {
  color: var(--text, #33475b);
  flex-shrink: 0;
  margin-top: 2px;
}

.gt-dropdown-icon svg {
  width: 16px;
  height: 16px;
}

.gt-dropdown-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin-bottom: 2px;
}

.gt-dropdown-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted, #516f90);
  line-height: 1.4;
}

/* Danger Item in dropdown */
.gt-dropdown-item--danger .gt-dropdown-icon {
  color: #c93b2b;
}

.gt-dropdown-item--danger strong {
  color: #c93b2b;
}

.gt-dropdown-item--danger:hover {
  background: #fff3f2;
}

/* -------------------------------------------------------------------------
   Empty State (Screenshot 2)
   ------------------------------------------------------------------------- */
.gt-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 72px 32px;
  min-height: 400px;
  background: var(--surface-2, #f5f8fa);
  border-radius: 16px;
  box-sizing: border-box;
}

.gt-empty-state__content {
  max-width: 320px;
}

.gt-empty-state__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.gt-empty-state__text {
  font-size: 15px;
  color: var(--text, #33475b);
  margin: 0;
  line-height: 1.5;
}

.gt-empty-illustration {
  width: 320px;
  height: 220px;
  max-width: 100%;
}

/* -------------------------------------------------------------------------
   View Details Modal (Screenshot 5)
   ------------------------------------------------------------------------- */
.gt-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.gt-modal {
  position: relative;
  width: 620px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box;
  animation: gtModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gt-modal--create {
  width: 520px;
}

.gt-modal--delete {
  width: 460px;
}

.gt-delete-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text, #33475b);
  margin: 0;
}

.gt-delete-text strong {
  font-weight: 700;
  color: var(--text, #1e293b);
}

@keyframes gtModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.gt-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin: 0;
}

.gt-modal__close-btn {
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted, #66788a);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--fast, 0.15s) ease;
}

.gt-modal__close-btn:hover {
  color: var(--text, #33475b);
}

.gt-modal__close-btn svg {
  width: 18px;
  height: 18px;
}

.gt-modal__body {
  padding: 24px;
  overflow-y: auto;
  min-height: 0;
}

.gt-modal__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: start;
}

.gt-modal__section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin: 0 0 16px;
}

.gt-detail-row {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.gt-detail-label {
  font-weight: 600;
  color: var(--text, #33475b);
}

.gt-detail-value {
  color: var(--text, #33475b);
}

.gt-detail-block {
  margin-top: 14px;
  margin-bottom: 10px;
}

.gt-detail-block__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #33475b);
  margin-bottom: 3px;
}

.gt-detail-block__value {
  display: block;
  font-size: 13.5px;
  color: var(--text, #33475b);
}

/* Applied filters accordion */
.gt-filters-accordion {
  margin-top: 18px;
}

.gt-filters-accordion__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #33475b);
  cursor: pointer;
}
.gt-filters-accordion__toggle span{text-align: left;}
.gt-filters-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--fast, 0.15s) ease;
}

.gt-filters-accordion.is-open .gt-filters-chevron {
  transform: rotate(0deg);
}

.gt-filters-accordion:not(.is-open) .gt-filters-chevron {
  transform: rotate(-90deg);
}

.gt-filters-accordion:not(.is-open) .gt-filters-accordion__panel {
  display: none;
}

.gt-filter-group-card {
  margin-top: 12px;
  border: 1px solid var(--border, #cbd6e2);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface, #ffffff);
}

.gt-filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #33475b);
  margin: 0 0 10px;
}

.gt-filter-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--surface-2, #f5f8fa);
  border: 1px solid var(--border, #cbd6e2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text, #33475b);
}

.gt-filter-pill strong {
  font-weight: 700;
}

.gt-funnel-illustration {
  width: 140px;
  height: 160px;
}

.gt-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.gt-modal__footer--flush {
  justify-content: flex-end;
  border-top: 0;
  margin-top: 16px;
}

.gt-btn-got-it {
  min-width: 90px;
}

/* -------------------------------------------------------------------------
   Dark Mode Support
   ------------------------------------------------------------------------- */
[data-theme="dark"] .gt-notice {
  background: var(--info-bg);
    border-color: var(--info);
    color: var(--text);
}

/* [data-theme="dark"] .gt-notice__title,
[data-theme="dark"] .gt-notice__text {
  color: #b8f0fc;
}

[data-theme="dark"] .gt-notice__link {
  color: #38bdf8;
}

[data-theme="dark"] .gt-notice__close {
  color: #90e0ef;
} */

[data-theme="dark"] .gt-empty-state {
  background: var(--surface-2);
}

[data-theme="dark"] .gt-card__icon--purple {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

[data-theme="dark"] .gt-card__icon--green {
  background: rgba(0, 163, 137, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .gt-card__icon--orange {
  background: rgba(255, 122, 89, 0.2);
  color: #fdba74;
}

[data-theme="dark"] .gt-card__icon--gray {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .gt-card__desc {
  color: #94a3b8;
}

[data-theme="dark"] .gt-popover__arrow {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .gt-dropdown-arrow {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .gt-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .gt-delete-text {
  color: var(--text);
}

[data-theme="dark"] .gt-delete-text strong {
  color: #f1f5f9;
}

[data-theme="dark"] .gt-filter-trigger {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .gt-filter-trigger:hover {
  background: var(--surface-2);
  border-color: var(--border-hover, #475569);
}

[data-theme="dark"] .gt-filter-trigger__label {
  color: var(--text);
}

/* -------------------------------------------------------------------------
   Responsive Tablet & Mobile
   ------------------------------------------------------------------------- */
@keyframes gtDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .gt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gt-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gt-sidebar-wrapper {
    position: relative;
    width: 100%;
    z-index: 40;
  }
  .gt-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 9px 14px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #cbd6e2);
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text, #33475b);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color var(--fast, 0.15s) ease, box-shadow var(--fast, 0.15s) ease, background var(--fast, 0.15s) ease;
    user-select: none;
  }
  .gt-filter-trigger:hover {
    border-color: var(--border-hover, #99acc2);
    background: var(--surface-2, #f5f8fa);
  }
  .gt-filter-trigger:focus-visible {
    outline: 2px solid var(--brand, #006567);
    outline-offset: 1px;
  }
  .gt-sidebar-wrapper.is-open .gt-filter-trigger,
  .gt-filter-trigger[aria-expanded="true"] {
    border-color: var(--brand, #006567);
    box-shadow: 0 0 0 2px rgba(0, 101, 103, 0.15);
  }
  .gt-filter-trigger__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .gt-filter-trigger__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted, #66788a);
  }
  .gt-filter-trigger__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text, #33475b);
  }
  .gt-filter-trigger__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted, #66788a);
    transition: transform var(--fast, 0.2s) ease;
  }
  .gt-sidebar-wrapper.is-open .gt-filter-trigger__chevron,
  .gt-filter-trigger[aria-expanded="true"] .gt-filter-trigger__chevron {
    transform: rotate(180deg);
  }
  .gt-sidebar {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #cbd6e2);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 100;
  }
  .gt-sidebar-wrapper.is-open .gt-sidebar,
  .gt-sidebar.is-open {
    display: block;
    animation: gtDropdownFade 0.15s ease;
  }
}

@media (max-width: 767.98px) {
  .gt-page {
    padding: 16px 16px 48px;
    overflow-x: clip;
  }
  .gt-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .gt-btn-create {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .gt-filter-trigger {
    max-width: 100%;
    width: 100%;
  }
  .gt-sidebar {
    max-width: 100%;
    width: 100%;
  }
  .gt-card__actions {
    position: relative;
  }
  .gt-actions-dropdown {
    position: static;
  }
  .gt-dropdown-menu {
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px);
    width: 100% !important;
    max-width: 100% !important;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .gt-dropdown-menu.gt-dropdown-menu--up {
    top: auto;
    bottom: calc(100% + 8px);
  }
  .gt-dropdown-arrow {
    left: 110px;
  }
  .gt-dropdown-item {
    padding: 11px 12px;
  }
  .gt-empty-state {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
    padding: 36px 16px;
  }
  .gt-modal__content-grid {
    grid-template-columns: 1fr;
  }
  .gt-modal__art-col {
    display: none;
  }
  /* On small screens, side popover fits viewport */
  .gt-popover {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(340px, 92vw);
    max-height: 90vh;
  }
  .gt-popover__arrow {
    display: none;
  }
}
@media (max-width: 559.98px) {
  .gt-grid {
    grid-template-columns: 1fr;
  }
}

