body {
  font-family: 'Open Sans', sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
  background: white;
  padding: 30px 35px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 30px;
  color: #2c3e50;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #34495e;
}

.split-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #5a6c7d;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.encrypt-section {
  flex: 2;
  text-align: left;
}

.decrypt-section {
  flex: 1;
  text-align: left;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #d0dce8;
}

input, textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  border-radius: 6px;
  border: 1px solid #cfd8dc;
  margin-bottom: 10px;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #5dade2;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #34495e;
}

button {
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif !important;
  background: #5dade2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 15px;
  font-weight: 500;
}

button:hover {
  background: #3498db;
}

.output-section {
  text-align: left;
  margin-top: 20px;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #5dade2;
  font-size: 14px;
}

.output-section p {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #2c3e50;
}

.code {
  font-family: 'Courier New', monospace;
  background: white;
  padding: 8px 10px;
  border-radius: 4px;
  display: block;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  border: 1px solid #e0e6ed;
  color: #2c3e50;
  max-width: 100%;
  box-sizing: border-box;
}

.code-container {
  position: relative;
  margin-top: 6px;
}

.code-scrollable {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  background: white;
  padding: 8px 10px;
}

.subtitle-text {
  font-size: 12px;
  color: #95a5a6;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.small-text {
  font-size: 12px !important;
  color: #7f8c8d;
}

.key-cipher-section {
  background: #e8f4f8 !important;
  border-left: 4px solid #3498db !important;
  margin-bottom: 20px;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  margin-top: 8px;
  margin-right: 10px;
  background: #3498db;
  display: inline-block;
}

.show-all-btn {
  font-size: 12px;
  font-family: 'Open Sans', sans-serif !important;
  padding: 4px 12px;
  background: #ecf0f1;
  color: #5dade2;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
  display: inline-block;
  margin-left: 10px;
}

.show-all-btn:hover {
  background: #5dade2;
  color: white;
  border-color: #5dade2;
}

/* Responsive for smaller screens */
@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }
  .decrypt-section {
    width: 100%;
  }
}
