* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  width: 100%;
  max-width: 1600px;
  min-width: 1100px;
  box-sizing: border-box;
  margin: 0 auto;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #1a2a6c, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.text-areas {
  display: flex;
  gap: 20px;
  height: 420px;
}

.panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.panel-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-left: 12px;
}

.text-area {
  flex: 1;
  width: 100%;
  padding: 20px;
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  resize: none;
  transition: border-color 0.3s;
  outline: none;
  background: #fafafa;
}

.text-area:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background: white;
}

.button-area {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 10px 0;
}

.btn {
  padding: 16px 40px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-encrypt {
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
}

.btn-decrypt {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: white;
}

.btn-clear {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
}

.btn-copy {
  background: linear-gradient(to right, #9b59b6, #8e44ad);
  color: white;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.info-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.info-card {
  background: linear-gradient(135deg, #f8f9fa, #f0f3f5);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
}

.info-card-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 8px;
}

.info-card-label {
  color: #7f8c8d;
  font-size: 1.05rem;
}

.alphabet-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.alphabet-table th {
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
}

.alphabet-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  background: white;
}

.alphabet-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.alphabet-table tr:last-child td {
  border-bottom: none;
}

.table-section {
  margin: 35px 0;
}

.table-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.advantages {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.advantage,
.disadvantage {
  flex: 1;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.advantage {
  background: linear-gradient(to bottom right, rgba(46, 204, 113, 0.08), white);
  border-left: 4px solid #2ecc71;
}

.disadvantage {
  background: linear-gradient(to bottom right, rgba(231, 76, 60, 0.08), white);
  border-left: 4px solid #e74c3c;
}

.section-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3e50;
}

.info-content ul {
  padding-left: 25px;
  margin: 15px 0;
}

.info-content li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 20px 0;
  color: #7f8c8d;
  font-size: 1rem;
  margin-top: 20px;
}

.alert {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 15px 30px;
  background: #2ecc71;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(200%);
  transition: transform 0.4s;
  z-index: 1000;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert.show {
  transform: translateX(0);
}

.alert.error {
  background: #e74c3c;
}

@media (max-width: 1400px) {
  .container {
    padding: 0 20px;
  }
}
