* {
  margin: 0;
  padding: 0;

}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}


header h1 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}


header p {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

.tabs {
  display: flex;
  background: white;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}

.tab {
  padding: 18px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab.active {
  color: #1a6dfc;
  border-bottom: 3px solid #1a6dfc;
  background: white;
}

.tab-content {
  background: #fff;
  padding: 20px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius:12px;
  margin-bottom: 25px;
}

.input-area,
.output-area {
  margin-bottom: 25px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
}

textarea:focus {
  outline: none;
  border-color: #1a6dfc;
  box-shadow: 0 0 0 2px rgba(26, 109, 252, 0.2);
}

.key-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.key-input-container {
  flex: 1;
  min-width: 300px;
}

.key-input-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.key-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 15px;
}

.key-input:focus {
  outline: none;
  border-color: #1a6dfc;
  box-shadow: 0 0 0 2px rgba(26, 109, 252, 0.2);
}

.options-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  margin-bottom: 20px;
  background: #f1f2f3;
  border-radius: 8px;
}

.option-group {
  flex: 1;
  min-width: 280px;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 15px;
  background: white;
}

select:focus {
  outline: none;
  border-color: #1a6dfc;
  box-shadow: 0 0 0 2px rgba(26, 109, 252, 0.2);
}

.key-format {
  font-size: 14px;
  color: #5a6268;
  margin-top: 8px;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #1a6dfc;
  color: white;
}

.btn-primary:hover {
  background: #0d5be0;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-outline {
  background: transparent;
  border: 1px solid #dcdfe6;
  color: #495057;
}

.btn-outline:hover {
  background: #f8f9fa;
}

.output-area {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: -2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 13px;
  cursor: pointer;
}

.info-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #1a6dfc;
}

.info-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-points {
  padding-left: 20px;
}

.info-points li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.security-note {
  background: #e8f4ff;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
}

.footer {
  text-align: center;
  color: #6c757d;
  font-size: 14px;

}


.format-info {
  display: inline-block;
  margin-left: 8px;
  color: #6c757d;
  font-size: 13px;
}

.notice {
  position: fixed;
  top: 60px;
  right: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  border-radius: 6px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.notice.show {
  opacity: 1;
  transform: translateY(0);
}

.notice.success {
  background: #28a745;
}

.notice.error {
  background: #dc3545;
}
