* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  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;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.input-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid #d0d7de;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: #4b6cb7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.counter {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

.controls {
  display: flex;
  gap: 25px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #4b6cb7, #3a56a0);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #f0ad4e, #ec971f);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
}

.encoding-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.encoding-section h2{
  font-size: 1.5rem;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}


th {
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 20px 10px;
  min-width: 100px;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  font-size: 0.95rem;
}

td {
  padding: 12px 10px;
  min-width: 100px;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
  word-break: break-all;
  font-size: 0.8rem;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:hover {
  background-color: #f1f8ff;
}

.char-cell {
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
}

footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  border-radius: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
}

.footer-section {
  flex: 1;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4b6cb7;
}

.features {
  list-style-type: none;
}

.features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.encoding-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.encoding-list dd {
  padding: 6px 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.9rem;
}

.notification {
  position: fixed;
  top: 70px;
  right: 20px;
  padding: 15px 25px;
  background-color: #4CAF50;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(200%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

.table-container {
  max-height: 600px;
  overflow-x: auto;
  overflow-y: auto;
}
