/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: #0a0a0a;
  color: #f3f4f6;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: #111111;
  border-bottom: 1px solid #2d2d2d;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 32px;
  height: 32px;
}

.title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* Input Section */
.input-section {
  margin-bottom: 2rem;
}

.textarea {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #3d3d3d;
  border-radius: 0.5rem;
  color: #f3f4f6;
  padding: 0.75rem;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.textarea:focus {
  border-color: #3b82f6;
}

.textarea::placeholder {
  color: #6b7280;
}

.jwt-input {
  min-height: 160px;
  margin-bottom: 1rem;
}

.button-group {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-blue {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-blue:hover {
  background-color: #2563eb;
}

.btn-green {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-green:hover {
  background-color: #15803d;
}

.btn-header {
  padding: 0.5rem 1.5rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Messages */
.status-message {
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.status-success {
    background-color: rgba(21, 128, 61, 0.2);
    color: #86efac;
    opacity: 1;
}

.status-error {
    background-color: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
    opacity: 1;
}

/* Secret Section */
.secret-section {
  margin-bottom: 2rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.secret-input {
  min-height: 100px;
  margin-bottom: 1rem;
}

.secret-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.encoding-select {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.encoding-label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.select {
  background-color: #1a1a1a;
  border: 1px solid #3d3d3d;
  border-radius: 0.375rem;
  color: #f3f4f6;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.select:focus {
  border-color: #3b82f6;
}

/* Decoded Output */
.decoded-section {
  margin-bottom: 2rem;
}

.output-block {
  margin-bottom: 1.5rem;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.copy-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: #ffffff;
}

.copy-icon {
  width: 1rem;
  height: 1rem;
}

.code-block {
  background-color: #1a1a1a;
  border: 1px solid #3d3d3d;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  color: #d1d5db;
  white-space: pre;
}

/* Promo Section */
.promo-section {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 3rem;
}

.promo-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.promo-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.promo-text {
  flex: 1;
}

.promo-text ul{
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.promo-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.promo-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #111111;
  border-top: 1px solid #2d2d2d;
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.footer-text {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-header {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .secret-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-content {
    flex-direction: column;
  }

  .promo-logo {
    width: 48px;
    height: 48px;
  }
}

/* FAG */
.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.faq-question {
  font-weight: 600;
  color: #ffffff;

  background-color: #111111;
  border-left: 4px solid #3b82f6;

  padding: 0.75rem 1rem;
  border-radius: 0.375rem;

  margin: 2rem 0 1rem 0;
}

.faq-answer p {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.faq-divider {
  height: 1px;
  background-color: #2d2d2d;
  margin: 2rem 0;
}

/* Try example */
.try-example {
    margin-top: 18px;
    padding: 14px 16px;
    background: #0f1115;
    border: 1px solid #1f232b;
    border-radius: 8px;
}

.try-example h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e6e8eb;
}

.try-example p {
    font-size: 13px;
    color: #9aa4af;
    margin-bottom: 10px;
}

.try-example code {
    display: block;
    background: #0b0d11;
    border: 1px solid #1f232b;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    color: #8bd5ff;
    margin-bottom: 10px;
    overflow-x: auto;
}

#tryBtn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 10px;
}

#tryBtn svg {
    width: 14px;
    height: 14px;
}



/* Guide */
.guide {
    margin-top: 28px;
    padding: 20px;
    background: #0f1115;
    border: 1px solid #1f232b;
    border-radius: 10px;
}

.guide h2 {
    margin-bottom: 10px;
}

.guide > p {
    margin-bottom: 16px;
    color: #9aa4af;
}

.guide ul {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.6;
  padding-left: 1.5rem;
}

.claims-list {
    display: grid;
    gap: 12px;
}

.claim-item {
    padding: 12px;
    background: #0b0d11;
    border: 1px solid #1f232b;
    border-radius: 8px;
}

.claim-item h3 {
    margin-bottom: 6px;
    font-size: 14px;
}

.claim-item p {
    margin: 0;
    font-size: 13px;
    color: #c9d1d9;
}

.claim-item code {
    color: #8bd5ff;
}

