@import "../style.css";

/* JWT Decoder Specific Layout Styles */
.jwt-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media(max-width: 900px) {
  .jwt-panels-grid {
    grid-template-columns: 1fr;
  }
}

.jwt-col {
  display: flex;
  flex-direction: column;
}

.jwt-input-wrapper {
  flex: 1;
  display: flex;
  min-height: 280px;
}

.jwt-editor-box {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: var(--transition);
  word-break: break-all;
}

.jwt-editor-box:focus {
  border-color: var(--tool-color);
}

/* Metadata Panel cards */
.token-meta-card {
  margin-top: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.token-meta-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.5rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.meta-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-val {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Badge colors overrides */
.badge.expired {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.active-token {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Override Prism Tomorrow colors slightly for custom JWT visualization coloring inside outputs */
#jwt-header-out {
  color: #fca5a5 !important;
}

#jwt-payload-out {
  color: #e9d5ff !important;
}
