* {
  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;
}

.tabs button {
  border-radius: 0;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border: none;
  border-bottom: 3px solid transparent;
  color: #7f8c8d;
}

.tab-btn.active {
  background: white;
  color: #3498db;
  border-bottom: 3px solid #3498db;
}

.tab-btn:hover:not(.active) {
  background: #e9ecef;
}

.tab-content {
  background: white;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  display: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.tab-content.active {
  display: block;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #2c3e50;
}

textarea,
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s;
  background-color: #f9f9f9;
}

textarea:focus,
input:focus {
  border-color: #3498db;
  outline: none;
  background-color: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: monospace;
}

.param-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.param-group label {
  font-weight: 500;
  color: #2c3e50;
  min-width: 90px;
}

select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  min-width: 350px;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-secondary:hover {
  background: #d5dbdb;
  transform: translateY(-2px);
}

.result-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  word-break: break-all;
  font-family: monospace;
  position: relative;
}

.result-label {
  font-weight: 500;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 15px;
  font-size: 14px;
  background: #3498db;
  color: white;
}

.key-pair-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.key-box {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  word-break: break-all;
  line-height: 1.75;
}

footer {
  text-align: center;
  padding: 10px 0;
  color: #7f8c8d;
}

.features {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 16px;
  display: none;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.info-box {
  background: #fff;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  border-radius: 12px;
}

.info-box h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.tab-content .info-box {
  background: #e3f2fd;
  border-left: 4px solid #3498db;
  border-radius: 0;
  margin: 0;
}
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-out;
  display: block;
}

.notification.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
