* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1540px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
   box-sizing: border-box;
}

header {
  text-align: center;
  padding-bottom: 20px;
  padding-top: 10px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

.subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

.tool-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

.input-section label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c3e50;
}

.jwt-input {
  width: 100%;
  height: 180px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}

.jwt-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.options {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.format-date {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.format-date input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.format-date label{
  margin-bottom: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: #2ecc71;
  color: white;
}

.btn-secondary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-tertiary {
  background: #f39c12;
  color: white;
}

.btn-tertiary:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.result-section {
  display: none;
  margin-top: 30px;
}

.result-section.active {
  display: block;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.result-title {
  font-size: 1.3rem;
  color: #2c3e50;
}

.result-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.result-box {
  flex: 1;
}

.result-header-box {
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.result-content {
  max-height: 350px;
  overflow: auto;
}

.json-container {
  background: #2c3e50;
  color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.5;
}

.json-key {
  color: #3498db;
}

.json-string {
  color: #2ecc71;
}

.json-number {
  color: #f39c12;
}

.json-boolean {
  color: #9b59b6;
}

.json-null {
  color: #e74c3c;
}

.about-section {
  margin-top: 20px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.jwt-info {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.jwt-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.jwt-fields {
  margin: 20px 0;
}

.jwt-field {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.jwt-field:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 30px 0 20px;
  color: #7f8c8d;
  font-size: 0.95rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.alert {
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
  display: none;
}

.alert-error {
  background: #fadbd8;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

.alert-success {
  background: #d4efdf;
  color: #27ae60;
  border: 1px solid #a9dfbf;
}

.copied-message {
  display: none;
  color: #27ae60;
  font-weight: 600;
  margin-left: 10px;
}
