/* src/tools/jwt-decoder/tool.css */
.jwt-tool-root {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: inherit;
}

.jwt-input-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jwt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jwt-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f2f8;
}

.jwt-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jwt-action-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 0.375rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jwt-action-btn:hover {
  color: #f0f2f8;
  border-color: #4f8ef7;
}

.jwt-textarea {
  width: 100%;
  min-height: 110px;
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #f0f2f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  resize: vertical;
  word-break: break-all;
}

.jwt-textarea:focus {
  outline: none;
  border-color: #4f8ef7;
}

.jwt-color-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.625rem 0.75rem;
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.jwt-part-header {
  color: #f43f5e;
}

.jwt-part-payload {
  color: #a855f7;
}

.jwt-part-sig {
  color: #06b6d4;
}

.jwt-part-dot {
  color: #6b7280;
  font-weight: bold;
}

.jwt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .jwt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.jwt-card {
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jwt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: #1a1d27;
  border-bottom: 1px solid #2a2d3a;
}

.jwt-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.jwt-card-content {
  padding: 0.75rem;
  flex: 1;
}

.jwt-code-pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.775rem;
  color: #e2e8f0;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

.jwt-claims-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jwt-claim-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem;
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

.jwt-claim-key {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #a855f7;
}

.jwt-claim-val {
  color: #f0f2f8;
  word-break: break-all;
}

.jwt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.jwt-status-badge.valid {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.jwt-status-badge.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.jwt-verify-section {
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jwt-input-secret {
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #f0f2f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  width: 100%;
}

.jwt-input-secret:focus {
  outline: none;
  border-color: #4f8ef7;
}
