/* JWT Tool specific styles */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 16px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.tab-btn:hover:not(.active) {
  border-color: #667eea;
  background: #f8f9fa;
}

.mode-content {
  display: block;
}

.mode-content.hidden {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.payload-section {
  display: grid;
  gap: 20px;
}

.standard-claims,
.custom-claims {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
}

.standard-claims h4,
.custom-claims h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.key-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.key-input-group .input-field {
  flex: 1;
}

.key-input-group .btn {
  white-space: nowrap;
  padding: 10px 16px;
}

.jwt-output,
.jwt-input {
  min-height: 120px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.decode-result {
  min-height: 300px;
}

.jwt-section {
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e1e8ed;
}

.jwt-section-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jwt-section-content {
  padding: 16px;
}

.jwt-json {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #495057;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.jwt-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.info-item {
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e1e8ed;
}

.info-label {
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
}

.info-value {
  font-size: 13px;
  color: #2c3e50;
  font-weight: 500;
  margin-top: 2px;
}

.verify-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.verify-result.valid {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.verify-result.invalid {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

.verify-result.expired {
  background: #fff3cd;
  color: #856404;
  border: 2px solid #ffeaa7;
  display: block;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.template-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.template-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.template-desc {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
}

.placeholder {
  text-align: center;
  color: #6c757d;
  padding: 40px 20px;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.placeholder p {
  font-size: 14px;
  opacity: 0.7;
}

.help-content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
}

.help-content strong {
  color: #2c3e50;
}

.copy-section {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.expired-warning {
  background: #fff3cd;
  color: #856404;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ffeaa7;
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .settings-grid,
  .claims-grid {
    grid-template-columns: 1fr;
  }
  
  .key-input-group {
    flex-direction: column;
  }
  
  .template-grid {
    grid-template-columns: 1fr;
  }
  
  .jwt-info {
    grid-template-columns: 1fr;
  }
}