.tool-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-icon-large {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 20px;
}

.tool-description {
  color: #666;
  font-size: 18px;
  margin-top: 10px;
}

.tool-body {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.input-group textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  resize: vertical;
}

.action-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin: 10px 10px 10px 0;
  transition: background-color 0.3s;
}

.action-button:hover {
  background: #2980b9;
}

.action-button i {
  margin-right: 8px;
}

.action-button.secondary {
  background: #6c757d;
}

.action-button.secondary:hover {
  background: #545b62;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.result-container {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
}

.result-header {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.jwt-parts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.jwt-part {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.jwt-part-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.jwt-part-content {
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.5;
}

.error-message {
  padding: 15px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  display: none;
  margin-bottom: 20px;
}

.copy-button {
  margin-left: auto;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}

.copy-button:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  .tool-content {
    padding: 20px 15px;
  }

  .button-group {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
    margin: 10px 0;
    justify-content: center;
  }

  .jwt-part {
    padding: 12px;
  }
}
