body {
  margin: 0;
  padding: 0;
  background: #0d001a;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

.lockscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  background: #120022;
  text-align: center;
}

.lockscreen input {
  padding: 12px;
  margin-top: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #2a003f;
  color: white;
  width: 80%;
}

.lockscreen button {
  margin-top: 14px;
  padding: 10px 20px;
  font-size: 16px;
  background: #8000ff;
  color: white;
  border: none;
  border-radius: 8px;
}

#error {
  margin-top: 8px;
  color: #ff5c5c;
}

.container {
  max-width: 100%;
  padding: 16px;
}

h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 12px;
  color: #d9a3ff;
}

/* 👇 Notebook style input & textarea */
input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: repeating-linear-gradient(
    to bottom,
    #1a0033,
    #1a0033 25px,
    #2a004b 26px,
    #2a004b 27px
  );
  color: #fff;
  border: 1px solid #520078;
  border-radius: 8px;
  margin-bottom: 10px;
  resize: none;
  line-height: 27px;
  font-family: 'Segoe UI', sans-serif;
}

textarea {
  height: 120px;
}

button {
  display: block;
  margin: 12px auto;
  padding: 10px 20px;
  font-size: 16px;
  background: #9900ff;
  color: white;
  border: none;
  border-radius: 8px;
}

.options {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}

.options input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  background: #1d0030;
  color: #fff;
}

.options button {
  background: #9900ff;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  border: none;
  font-size: 15px;
}

.entry {
  margin-top: 16px;
  padding: 10px;
  background: #1a002a;
  border-radius: 6px;
}

.entry-title {
  font-size: 17px;
  color: #ffccff;
  font-weight: bold;
  margin-bottom: 4px;
}

.date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

.text {
  white-space: pre-wrap;
  font-size: 15px;
  color: #eee;
}

.entry-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.entry-actions button {
  background: #550099;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* ✏️ Edit Modal */
.edit-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.edit-box {
  background: #1b0030;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-box h3 {
  margin: 0;
  color: #fff;
  text-align: center;
}

.edit-box input,
.edit-box textarea {
  width: 100%;
  padding: 10px;
  background: repeating-linear-gradient(
    to bottom,
    #300050,
    #300050 25px,
    #400060 26px,
    #400060 27px
  );
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  line-height: 27px;
}

.edit-box textarea {
  height: 100px;
}

.edit-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.edit-buttons button {
  flex: 1;
  padding: 10px;
  background: #8000ff;
  color: white;
  border: none;
  border-radius: 8px;
}