body {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #00ffc3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  background: #0d0d0d;
  padding: 35px 28px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 255, 195, 0.4);
  text-align: center;
  width: 100%;
  max-width: 450px;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 30px;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

input {
  width: 90%;
  padding: 14px;
  margin: 12px 0;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1a1a1a;
  color: #00ffc3;
  font-size: 1rem;
  box-shadow: inset 0 0 8px rgba(0, 255, 195, 0.2);
}

input::placeholder {
  color: #aaa;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
  gap: 12px;
}

button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.25s;
  background: rgba(17, 17, 17, 0.7);
  color: #fff;
}

button.encrypt {
  background: #00ffc3;
  color: #000;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px #00ffc3;
}

.output {
  margin-top: 18px;
  padding: 14px;
  background: #000;
  border: 1px solid #00ffc3;
  border-radius: 10px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ff9933;
  transition: 0.2s;
}

.copied {
  margin-top: 10px;
  color: #00ff73;
  font-weight: bold;
  animation: fade 1.2s ease-in-out;
}

@keyframes fade {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(0.9); }
}

footer {
  margin-top: 40px;
  font-size: 1.02rem;
  color: #888;
  text-align: center;
}

footer a {
  color: #00ffc3;
  text-decoration: none;
  margin: 5px 10px;
}

.small-x {
  font-size: 0.6em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  margin: 0 4px;
  transform: translateY(-2px);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.input-container input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
  color: #fff;
  font-size: 16px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #00ffc3;
  transition: 0.3s;
}

.toggle-password:hover {
  color: #ff6600;
}

/* Popups */
.error-popup, .success-popup {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
}

.error-popup { background: #1e1e2f; color: #ff4c4c; }
.success-popup { background: #1e1e2f; color: #4cff6f; }

.error-popup.show, .success-popup.show {
  top: 20px;
  opacity: 1;
}

/* Readme Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #1e1e1e;
  color: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  width: 60%;
  max-width: 700px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
}

.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #ff4d4d;
  transition: transform 0.2s ease;
}
.close-btn:hover { transform: scale(1.2); }

#fileText {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 14px;
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideUp { from {transform: translateY(40px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.readme-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.readme-content {
  text-align: left;
  font-family: monospace;
  line-height: 1.6;
}
