*{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}


.tool-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section, .info-section {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

textarea,
input[type="text"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

textarea {
  min-height: 200px;
  line-height: 1.5;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button {
  padding: 14px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.encrypt-btn {
  background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
  color: white;
  flex: 1;
}

.decrypt-btn {
  background: linear-gradient(to right, #ff9a9e 0%, #fad0c4 100%);
  color: white;
  flex: 1;
}

.copy-btn {
  background: linear-gradient(to right, #0ba360 0%, #3cba92 100%);
  color: white;
}

.clear-btn {
  background: linear-gradient(to right, #ff5858 0%, #f09819 100%);
  color: white;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(1px);
}

.info-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #2575fc;
}

.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box p {
  margin-top: 10px;
}

.example {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
  transition: transform 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #2575fc;
}

.feature-card p{
  margin-top: 10px;
  opacity: 0.9;
}

footer {
  text-align: center;
  color: #6c757d;
}

/* Notice Styles */
.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice.show {
  opacity: 1;
}
