/* GLOBAL RESET */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #0a1a3f, #020b22);
  overflow-x: hidden;
}

/* PARTICLES */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* NAVBAR */
.navbar {
  position: relative;
  z-index: 4;
}

/* NOTES WRAPPER */
.notes-wrapper {
  position: relative;
  z-index: 2;
  padding: 90px 16px 60px;
  max-width: 750px;
  margin: 0 auto;
}

/* TITLE */
.notes-title {
  text-align: center;
  font-size: 2rem;
  color: #2ea8ff;
  text-shadow: 0 0 15px rgba(46,168,255,0.7);
}

.notes-sub {
  text-align: center;
  margin-bottom: 28px;
  color: #ccc;
}

/* NOTES SIDEBAR */
.notes-sidebar {
  width: 100%;
  background: rgba(20, 30, 70, 0.25);
  border: 1px solid rgba(46, 168, 255, 0.2);
  padding: 18px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
  box-shadow: 0 0 18px rgba(46,168,255,0.2);
}

.notes-sidebar h3 {
  margin-bottom: 14px;
  color: #2ea8ff;
}

/* NOTE ROW */
.note-row {
  padding: 10px 12px;
  background: rgba(46,168,255,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.note-row:hover {
  background: rgba(46,168,255,0.15);
}

.note-name {
  font-weight: 500;
  color: #2ea8ff;
  cursor: pointer;
}

/* NOTE ACTIONS (HIDDEN TILL TOGGLE) */
.note-actions {
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

/* MINIPASS & BUTTONS */
.mini-pass {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #2ea8ff;
  background: rgba(15,25,60,0.5);
  color: white;
}

.mini-btn {
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: #2ea8ff;
  color: black;
  cursor: pointer;
  font-weight: 500;
}

.delete-btn {
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: #ff4444;
  color: white;
  cursor: pointer;
}

/* NOTES EDITOR */
.notes-editor {
  width: 100%;
  background: rgba(20, 30, 70, 0.25);
  border: 1px solid rgba(46,168,255,0.2);
  padding: 22px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 18px rgba(46,168,255,0.2);
}

/* INPUT + TEXTAREA */
.notes-editor input,
.notes-editor textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2ea8ff;
  background: rgba(15,25,60,0.55);
  color: white;
  margin-bottom: 18px;
  font-size: 14px;
}

.notes-editor textarea {
  min-height: 170px;
  resize: none;
}

.notes-editor input::placeholder,
.notes-editor textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

/* SAVE/DELETE/CLEAR BUTTONS */
.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.controls .btn {
  transition: 0.3s ease;
  box-shadow: 0 0 22px rgba(46,168,255,0.5);
}

.controls .btn:hover {
  transform: translateY(-2px);
}

/* STATUS MESSAGE */
#statusMsg {
  margin-top: 12px;
  color: #00ff88;
  font-size: 14px;
  text-align: center;
}

/* MOBILE FIXES */
@media (max-width:768px) {

  .notes-wrapper {
    padding: 80px 14px 50px;
  }

  .notes-editor textarea {
    min-height: 160px;
  }

}
/* ===== LAYOUT FIX v2 ===== */

.action-area {
    margin-top: 20px;
}

/* Reset global button force */

/* Primary Generate Button */
.primary-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 20px;
}

/* Result Section */
.result-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.result-box input {
    flex: 1;
}

/* Small Copy Button */
.small-btn {
    padding: 8px 16px;
    border-radius: 16px;
}

/* Metrics row */
.metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
}

/* Download button full width */
.checker-box > .btn {
    width: 100%;
    margin-top: 15px;
}

/* MOBILE FIX */
@media (max-width: 480px) {

    .options {
        grid-template-columns: 1fr;
    }

    .result-box {
        flex-direction: column;
    }

    .small-btn {
        width: 100%;
    }

    .metrics {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
