/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Remove focus outlines globally */
*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove focus rings from buttons, inputs, and interactive elements */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Tab styling */
.tab-button.active .tab-bg {
  background-color: #2A2A2A;
}

.tab-button.active .tab-text {
  font-weight: 500;
  color: var(--text-primary);
}

.tab-button.active .tab-count {
  color: var(--text-secondary);
}

.display-chip {
  border: 1px solid var(--border-primary);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background-color: #1f1f1f;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.display-chip:hover {
  background-color: #262626;
  color: var(--text-primary);
}

.display-chip.active {
  background-color: #2a2a2a;
  border-color: #3a3a3a;
  color: var(--text-primary);
}

.issue-title.lines-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-title.lines-2,
.issue-title.lines-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.issue-title.lines-2 {
  -webkit-line-clamp: 2;
}

.issue-title.lines-3 {
  -webkit-line-clamp: 3;
}

.mobile-bottom-nav {
  padding-bottom: max(env(safe-area-inset-bottom), 8px);
}

.mobile-nav-item {
  color: var(--text-tertiary);
  border-radius: 9999px;
  padding: 10px;
  transition: color 150ms ease, background-color 150ms ease;
}

.mobile-nav-item:hover {
  color: var(--text-primary);
}

.mobile-nav-item.active {
  color: var(--text-primary);
  background-color: #262626;
}

.mobile-nav-item.disabled {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
}

.modal-card {
  max-height: calc(100vh - 48px);
  padding-bottom: max(env(safe-area-inset-bottom), 12px);
}

.modal-scroll {
  max-height: calc(100vh - 240px);
}

@media (min-width: 768px) {
  .modal-card {
    max-height: calc(100vh - 96px);
    padding-bottom: 0;
  }

  .modal-scroll {
    max-height: calc(100vh - 200px);
  }
}
