/* ==== Login Modal Overlay ==== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal.is-open {
  display: flex;
}

/* ==== Login Box ==== */
.modal-content {
  position: relative;
  background-color: #fff;
  width: 320px;
  margin: 0;
  padding: 18px;
  border: 1px solid #888;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* ==== Close X ==== */
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #b00020;
}

/* ==== Inputs ==== */
.modal-input-container {
  padding: 0;
}

.modal-content label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ==== Password Show/Hide ==== */
.password-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.password-field input {
  width: 100%;
  padding-right: 36px !important;
  margin-bottom: 0 !important;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #555;
  cursor: pointer;
  font-size: 15px;
}

.toggle-password:hover {
  color: #111;
}

/* ==== Login / Cancel Buttons ==== */
.login-button-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.login-button-row button {
  flex: 1;
  border: none;
  border-radius: 3px;
  padding: 11px 0;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.login-submit-btn {
  background-color: #31ACFF;
  color: #fff;
}

.login-submit-btn:hover {
  background-color: #3145FF;
}

.cancelbtn {
  background-color: #f44336;
  color: #fff;
  font-weight: bold;
}

.cancelbtn:hover {
  background-color: #d9362b;
}

/* ==== Forgot Password / Create Account ==== */
.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  font-size: 12px;
}

.auth-actions span {
  font-size: 12px;
}

.auth-actions a {
  color: #6c2eb1;
  text-decoration: underline;
  font-size: 12px;
}

/************* My Notes modal *************/
.my-notes-content {
  position: relative;
  background: #fff;
  width: min(900px, 92vw);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.my-notes-content h2 {
  margin: 0 0 14px 0;
  font-size: 24px;
}

.my-notes-search {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
}

.my-notes-status {
  margin-bottom: 10px;
  font-style: italic;
  color: #666;
}

.my-notes-table-wrapper {
  overflow-x: auto;
}

.my-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.my-notes-table th,
.my-notes-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.my-notes-table th {
  background: #f5f5f5;
}

.my-notes-table a {
  color: #0066cc;
  text-decoration: underline;
}

.overlay-content a.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
