/* Error Log Pool Dashboard Custom Styles */

.page.dashboard-page {
  max-width: 1400px;
  padding: 32px 36px 90px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  width: 100%;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.1;
}

.stat-card.stat-open .stat-value {
  color: var(--danger);
}

.stat-card.stat-progress .stat-value {
  color: var(--warning-dark);
}

.stat-card.stat-closed .stat-value {
  color: var(--success);
}

/* Filter Bar */
.filter-bar {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar .search-input {
  flex: 1;
  min-width: 240px;
}

.filter-bar .input-field {
  height: 36px;
  padding: 8px 14px;
  border-radius: 6px;
  box-sizing: border-box;
}

.filter-select {
  box-sizing: border-box;
  display: block;
  height: 36px;
  padding: 6px 42px 6px 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235C636A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--text-heading);
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-bar .btn {
  box-sizing: border-box;
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  white-space: nowrap;
}

/* Table Enhancements */
.table-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-basic {
  margin-bottom: 0;
}

.table-basic th,
.table-basic td {
  vertical-align: middle;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #ECECF2;
  color: var(--secondary-dark);
}

.error-title-cell {
  max-width: 380px;
}

.error-title-text {
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.error-title-text:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.user-cell-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-heading);
  line-height: 1.2;
}

.user-cell-role {
  font-size: 11px;
  color: var(--text-muted);
}

.occurrence-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  background: #F4F4F6;
  color: var(--text-heading);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Stack trace pre block */
.stack-trace-box {
  background: #18181B;
  color: #E4E4E7;
  padding: 16px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Status selection pills inside modal */
.status-pill-btn {
  border: 1px solid transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-pill-btn.active {
  box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--primary);
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

/* Clickable Status Badge Button in Table */
.status-badge-btn {
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  font-family: var(--font-base);
  font-size: 11.5px;
  padding: 4px 10px;
}

.status-badge-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
}

.status-badge-btn::after {
  margin-left: 6px;
  font-size: 9px;
  vertical-align: middle;
}

