::selection {
  background: var(--bg-0);
  color: var(--bg-1);
}

body {
  font-family: var(--ff);
  background: var(--bg-1);
}

/* section */
.section-0 .container {
  padding: 5rem 1rem 1rem 1rem;
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}
.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem; /* space for .greeting-text below */
}

/* Emoji: overlaid on the "oo" letters */
.greeting-icon {
  display: none;
  position: absolute;
  top: 25%;
  left: 52.5%;
  transform: translate(-50%, -50%) rotate(5deg);
  font-size: 2rem;
  line-height: 1;
  z-index: 2;
  scale: 1.5;
  pointer-events: none;
}
.greeting-icon.active {
  display: block;
  animation: greeting-icon-in 0.5s ease-out both, emoji-bounce 2.5s ease-in-out 0.5s infinite;
}

/* Text: centered below the SVG */
.greeting-text {
  display: none;
  position: absolute;
  bottom: -1.3rem; 
  left: 28%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0.15rem;
  white-space: nowrap;
  z-index: 2;
}
.greeting-text.active {
  display: flex;
  animation: greeting-text-in 0.55s ease-out 0.1s both;
}

.section-0 .container h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.section-0 .container h1 svg {
  max-width: 100%;
  height: auto;
  width: clamp(280px, 60vw, 420px);
}
.section-0 .container h1 svg path,
.section-0 .container h1 svg rect {
  fill: var(--bg-0);
  transition: fill 0.3s ease;
}
.section-0 .container form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 700px;
  margin: 2rem 0 1rem 0;
  border: 1px solid var(--bg-3);
  background: var(--bg-3);
  border-radius: 50px;
}
.section-0 .container form a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-1);
  margin-left: 0.75rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.section-0 .container form a svg {
  display: block;
}
.share-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.section-0 .container form input[type="text"] {
  width: 100%;
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  background: var(--bg-1);
  opacity: 0.9;
  font-size: 16px;
  outline: none;
  border: 1px solid transparent;
  color: var(--text-1);
}
.section-0 .container form input[type="text"]:focus {
  outline: none;
  background: var(--bg-1);
  opacity: 1;
}

/* Remove default browser autofill & recent suggestion light blue background */
.section-0 .container form input[type="text"]:-webkit-autofill,
.section-0 .container form input[type="text"]:-webkit-autofill:hover,
.section-0 .container form input[type="text"]:-webkit-autofill:focus,
.section-0 .container form input[type="text"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-1) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-1) inset !important;
  -webkit-text-fill-color: var(--text-1) !important;
  transition: background-color 50000s ease-in-out 0s;
  background-color: var(--bg-1) !important;
}

/* Animated Vertical Moving Up Placeholder Styles */
.animated-placeholder {
  position: absolute;
  left: 1rem;
  top: 55%;
  transform: translateY(-50%);
  height: 24px;
  width: calc(100% - 2.4rem);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.placeholder-text {
  display: block;
  font-size: 18px;
  color: var(--text-1);
  opacity: 0.5;
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100%);
  position: absolute;
  top: 0;
  left: 0;
}

.placeholder-text.active {
  transform: translateY(0);
  opacity: 0.45;
}

.placeholder-text.exit-up {
  transform: translateY(-100%);
  opacity: 0;
}

.share-input-wrapper.has-value .animated-placeholder {
  display: none !important;
}

/* Action Suggestions Dropdown below Gdoop bar */
.section-0 .container form {
  position: relative;
}

.action-suggestions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--bg-1);
  border-radius: 16px;
  padding: 0.4rem 0;
  z-index: 9999;
  overflow: hidden;
}

.action-suggestions-dropdown.active {
  display: block;
  animation: dropdown-fade-in 0.2s ease-out;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.action-suggestion-item:hover,
.action-suggestion-item.highlighted {
  background: rgba(140, 140, 140, 0.15);
}

.action-suggestion-item .action-prefix {
  font-weight: 700;
  color: var(--bg-0);
}

/* Mobile View Responsiveness for Gdoop Share Bar */
@media (max-width: 768px) {
  .section-0 .container {
    padding: 3rem 0.8rem 1rem 0.8rem;
  }

  .section-0 .container form {
    gap: 0.35rem;
  }

  .section-0 .container form a {
    margin-left: 0.5rem;
  }

  .section-0 .container form a svg {
    width: 20px;
    height: 20px;
  }

  .section-0 .container form input[type="text"] {
    padding: 0.8rem 1rem;
    font-size: 14px;
  }

  .animated-placeholder {
    left: 0.8rem;
    height: 20px;
    width: calc(100% - 1.6rem);
  }

  .placeholder-text {
    font-size: 15px;
  }

}

.section-0 .container form .btn-0 {
  background: var(--bg-3);
  color: var(--bg-1);
  width: 38px;
  height: 48px;
  border: 1px solid var(--bg-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.2s,
    transform 0.1s;
  flex-shrink: 0;
}

/* section-1 */
.section-1 h3 {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  margin-top: 1rem;
}
.section-1 .container {
  padding: 1rem;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.section-1 .container a {
  border: 1px solid var(--bg-3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 14px;
  color: var(--bg-0);
  text-decoration: none;
  font-weight: 500;
  transition: 200ms;
}
.section-1 .container a:hover {
  background: var(--bg-0);
  color: var(--text-0);
}

@media (max-width: 400px) {
  .greeting-text {
    padding-left: 2rem;
  }
  .greeting-icon {
    scale: 1.2;
  }
  .section-0 .container form input[type="text"] {
    width: 100%;
  }
  /* .section-0 .container form {
    flex-direction: column;
    align-items: center;
  } */
}

/* ============================================
   Greeting Banner
   ============================================ */

.greeting {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  /* background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); */
  margin-bottom: 0;
  max-width: 480px;
  width: max-content;
  white-space: nowrap;
  z-index: 2;
}

.greeting.active {
  display: flex;
  animation: greeting-fade-in 0.6s ease-out both;
}

.greeting-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  animation: emoji-bounce 2s ease-in-out infinite;
}

/* Legacy: emoji + text inside .greeting on other pages */
.greeting .greeting-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
   padding-left: 2rem;
}

.greeting-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.greeting-msg {
  font-size: 0.75rem;
  color: var(--text-1);
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Greeting — Small screens */
@media (max-width: 480px) {
  .greeting {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border-radius: 40px;
  }
  .greeting-emoji {
    font-size: 1.3rem;
  }
  .greeting-title {
    font-size: 0.78rem;
  }
  .greeting-msg {
    font-size: 0.68rem;
  }
}

@keyframes greeting-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes emoji-bounce {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(20deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 3px)) rotate(20deg);
  }
}

/* Dedicated fade-in for elements with fixed transforms */
@keyframes greeting-icon-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes greeting-text-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   Background Animation — Glowing Gradient Blobs
   Full-screen, multi-color, responsive
   ============================================ */

.background-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;

  /* 6 layered radial-gradient blobs covering the full viewport */
  background:
    /* 1 — Hot Pink / Magenta — top left */
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 50, 180, 0.7) 0%,
      rgba(255, 0, 150, 0.35) 15%,
      transparent 60%
    ),
    /* 2 — Cyan / Aqua — top right */
    radial-gradient(
        circle at 85% 20%,
        rgba(0, 220, 255, 0.65) 0%,
        rgba(0, 180, 240, 0.3) 15%,
        transparent 60%
      ),
    /* 3 — Violet / Purple — center left */
    radial-gradient(
        circle at 10% 60%,
        rgba(160, 60, 255, 0.6) 0%,
        rgba(130, 40, 220, 0.25) 15%,
        transparent 55%
      ),
    /* 4 — Coral / Peach — center right */
    radial-gradient(
        circle at 80% 55%,
        rgba(255, 110, 90, 0.6) 0%,
        rgba(255, 80, 60, 0.25) 15%,
        transparent 55%
      ),
    /* 5 — Mint / Teal — bottom left */
    radial-gradient(
        circle at 25% 85%,
        rgba(0, 230, 180, 0.55) 0%,
        rgba(0, 200, 160, 0.2) 15%,
        transparent 55%
      ),
    /* 6 — Golden / Amber — bottom right */
    radial-gradient(
        circle at 75% 90%,
        rgba(255, 200, 50, 0.5) 0%,
        rgba(255, 170, 0, 0.2) 15%,
        transparent 55%
      ),
    /* Base background */ var(--bg-1);

  background-size: 100% 100%;
  animation:
    bg-shift 6s ease-in-out infinite alternate,
    hue-cycle 8s linear infinite;
}

/* Animated smoke layers — heavy blur for soft diffused look */
.background-animation::before,
.background-animation::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(120px, 22vw, 220px));
  will-change: transform, filter;
  opacity: 0.75;
  mix-blend-mode: screen;
}

/* Smoke A — Magenta/Pink — drifts from top-left */
.background-animation::before {
  width: clamp(400px, 70vw, 900px);
  height: clamp(400px, 70vw, 900px);
  background: radial-gradient(
    circle,
    rgba(255, 80, 200, 0.7) 0%,
    rgba(255, 0, 180, 0.3) 10%,
    rgba(200, 50, 255, 0.1) 20%,
    transparent 75%
  );
  top: -15%;
  left: -15%;
  animation:
    blob-drift-1 4s ease-in-out infinite alternate,
    hue-cycle 10s linear infinite reverse;
}

/* Smoke B — Cyan/Blue — drifts from top-right */
.background-animation::after {
  width: clamp(420px, 65vw, 850px);
  height: clamp(420px, 65vw, 850px);
  background: radial-gradient(
    circle,
    rgba(0, 200, 255, 0.65) 0%,
    rgba(30, 160, 255, 0.25) 25%,
    rgba(0, 255, 200, 0.08) 50%,
    transparent 75%
  );
  top: -12%;
  right: -18%;
  animation:
    blob-drift-2 5s ease-in-out infinite alternate,
    hue-cycle 12s linear infinite;
}

/* ---- Dark Theme Overrides ---- */
@media (prefers-color-scheme: dark) {
  .background-animation {
    background:
      /* 1 — Hot Pink — deeper, lower opacity */
      radial-gradient(
        circle at 15% 15%,
        rgba(255, 40, 160, 0.4) 0%,
        rgba(220, 0, 130, 0.18) 30%,
        transparent 60%
      ),
      /* 2 — Cyan — moody glow */
        radial-gradient(
          circle at 85% 20%,
          rgba(0, 190, 240, 0.35) 0%,
          rgba(0, 150, 210, 0.15) 30%,
          transparent 60%
        ),
      /* 3 — Violet — deep purple glow */
        radial-gradient(
          circle at 10% 60%,
          rgba(140, 40, 240, 0.35) 0%,
          rgba(110, 20, 200, 0.12) 30%,
          transparent 55%
        ),
      /* 4 — Coral — warm accent */
        radial-gradient(
          circle at 80% 55%,
          rgba(255, 90, 70, 0.3) 0%,
          rgba(230, 60, 40, 0.1) 30%,
          transparent 55%
        ),
      /* 5 — Mint / Teal */
        radial-gradient(
          circle at 25% 85%,
          rgba(0, 210, 170, 0.28) 0%,
          rgba(0, 180, 140, 0.1) 30%,
          transparent 55%
        ),
      /* 6 — Golden glow */
        radial-gradient(
          circle at 75% 90%,
          rgba(255, 185, 30, 0.22) 0%,
          rgba(230, 150, 0, 0.08) 30%,
          transparent 55%
        ),
      var(--bg-1);
  }

  .background-animation::before {
    background: radial-gradient(
      circle,
      rgba(255, 50, 170, 0.4) 0%,
      rgba(220, 0, 150, 0.15) 25%,
      rgba(180, 30, 220, 0.05) 50%,
      transparent 75%
    );
    filter: blur(clamp(130px, 24vw, 240px));
    opacity: 0.6;
  }

  .background-animation::after {
    background: radial-gradient(
      circle,
      rgba(0, 170, 240, 0.35) 0%,
      rgba(20, 130, 210, 0.12) 25%,
      rgba(0, 220, 180, 0.04) 50%,
      transparent 75%
    );
    filter: blur(clamp(130px, 24vw, 240px));
    opacity: 0.6;
  }
}

/* ---- Keyframe Animations ---- */

/* Color cycling via hue-rotate — preserves heavy blur */
@keyframes hue-cycle {
  0% {
    filter: blur(clamp(120px, 22vw, 220px)) hue-rotate(0deg);
  }
  50% {
    filter: blur(clamp(140px, 25vw, 250px)) hue-rotate(180deg);
  }
  100% {
    filter: blur(clamp(120px, 22vw, 220px)) hue-rotate(360deg);
  }
}

/* Background gradient position shift */
@keyframes bg-shift {
  0% {
    background-size: 100% 100%;
  }
  50% {
    background-size: 120% 120%;
  }
  100% {
    background-size: 110% 110%;
  }
}

/* Blob A — sweeps across top-left to center */
@keyframes blob-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(18vw, 10vh) scale(1.2);
  }
  50% {
    transform: translate(8vw, 30vh) scale(0.95);
  }
  75% {
    transform: translate(25vw, 15vh) scale(1.1);
  }
  100% {
    transform: translate(12vw, 5vh) scale(1.15);
  }
}

/* Blob B — sweeps across top-right to center */
@keyframes blob-drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-20vw, 12vh) scale(1.15);
  }
  50% {
    transform: translate(-10vw, 35vh) scale(0.9);
  }
  75% {
    transform: translate(-25vw, 18vh) scale(1.1);
  }
  100% {
    transform: translate(-8vw, 8vh) scale(1.05);
  }
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 768px) {
  .background-animation::before {
    width: clamp(250px, 70vw, 500px);
    height: clamp(250px, 70vw, 500px);
  }
  .background-animation::after {
    width: clamp(260px, 65vw, 480px);
    height: clamp(260px, 65vw, 480px);
  }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 480px) {
  .background-animation::before {
    width: clamp(280px, 90vw, 500px);
    height: clamp(280px, 90vw, 500px);
    filter: blur(80px);
  }
  .background-animation::after {
    width: clamp(300px, 85vw, 480px);
    height: clamp(300px, 85vw, 480px);
    filter: blur(80px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .background-animation,
  .background-animation::before,
  .background-animation::after {
    animation: none !important;
    filter: none !important;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-6px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(6px);
  }
}

.section-0 .container form input[type="text"].error {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
  animation: shake 0.4s ease-in-out;
}

/* New Note Form Page Styling */
.new-note-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.new-note-card {
  background: var(--bg-1);
  color: var(--text-1);
}

.new-note-title {
  font-size: 22px !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-1);
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  opacity: 0.85;
}

.form-group input[type="text"],
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bg-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--bg-0);
  box-shadow: 0 0 0 1px var(--bg-0);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-create-submit {
  width: 100%;
  background: var(--bg-0);
  color: var(--bg-1);
  border: none;
  padding: 0.85rem;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.btn-create-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

/* Toggle Switch & Password Container */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 24px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-2);
  border: 1px solid var(--bg-2);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-1);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--bg-0);
  border-color: var(--bg-0);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--bg-1);
}

.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bg-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input[type="password"]:focus {
  border-color: var(--bg-0);
  box-shadow: 0 0 0 2px var(--bg-0);
}

/* Sticky Bottom Action Bar & Attachments */
.new-note-wrapper {
  padding-bottom: 90px;
}

.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-1);
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.attachment-menu-wrapper {
  position: relative;
}

.btn-bottom-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-0);
  color: var(--bg-1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.15s ease;
  flex-shrink: 0;
}

.btn-bottom-add:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.btn-bottom-add.active {
  transform: rotate(45deg);
}

/* Attachment Menu Popup Dropdown */
.attachment-options-menu {
  position: absolute;
  bottom: 56px;
  left: 0;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 14px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 165px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1000;
}

.attachment-options-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.attachment-option-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-1);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s;
  width: 100%;
}

.attachment-option-item:hover {
  background: var(--bg-2);
}

.attachment-option-item svg {
  color: var(--text-1);
}

/* Publish Button (Right Side) */
.btn-publish-submit {
  background: var(--bg-0);
  color: var(--bg-1);
  border: none;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.btn-publish-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Attachments Preview Area */
.attachments-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.attachment-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
  color: var(--text-1);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--bg-2);
}

.btn-remove-attachment {
  background: transparent;
  border: none;
  color: var(--text-1);
  opacity: 0.6;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-attachment:hover {
  opacity: 1;
}

/* Header Line & Settings Button */
.new-note-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.new-note-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.btn-note-settings {
  background: var(--bg-2);
  color: var(--text-1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  flex-shrink: 0;
}

.btn-note-settings.active {
  transform: rotate(90deg);
  background: var(--bg-0);
  color: var(--bg-1);
}

.more-settings-content {
  display: none;
  background: var(--bg-1);
  border-radius: 14px;
  margin-bottom: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.more-settings-content.active {
  display: flex;
}

/* Full-Page Code/Description Editor with Line Numbers */
.new-note-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem 95px 0.5rem;
}

.new-note-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.editor-form-group {
  margin-bottom: 1rem;
}

.unsigned-warning-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-2);
  border: 1px solid var(--bg-2);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.4;
}

.unsigned-warning-banner svg {
  flex-shrink: 0;
  color: var(--text-1);
  opacity: 0.8;
}

.unsigned-warning-banner span {
  flex: 1;
}

.unsigned-warning-banner a {
  color: var(--bg-0);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.unsigned-warning-banner a:hover {
  opacity: 0.85;
}

.code-editor-wrapper {
  display: flex;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  min-height: calc(70vh - 190px);
  overflow: hidden;
  font-family: Consolas, Monaco, "Courier New", Courier, monospace;
}

.line-numbers {
  padding: 1rem 0rem;
  background: var(--bg-2);
  color: var(--text-1);
  opacity: 0.5;
  font-size: 14px;
  text-align: right;
  user-select: none;
  overflow: hidden;
  min-width: 28px;
  font-family: inherit;
  border-right: 1px solid var(--bg-2);
  box-sizing: border-box;
}

.line-number-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 0.4rem;
  box-sizing: border-box;
}

.editor-textarea {
  flex: 1;
  padding: 1rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  font-family: "roboto", sans-serif;
  resize: none;
  min-height: calc(70vh - 190px);
  width: 100%;
  tab-size: 4;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.code-editor-wrapper:focus-within {
  border-color: var(--bg-0);
}

.code-editor-wrapper.editor-error {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.4) !important;
}

.form-group input.input-error,
.form-group input[type="url"].input-error {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.4) !important;
}

.editor-textarea:focus {
  outline: none;
  box-shadow: none;
}

/* Disappearing Mode Cards (Horizontal Scrollable) */
.disappearing-cards-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.disappearing-cards-container::-webkit-scrollbar {
  height: 4px;
}

.disappearing-cards-container::-webkit-scrollbar-track {
  background: transparent;
}

.disappearing-cards-container::-webkit-scrollbar-thumb {
  background: var(--bg-2);
  border-radius: 10px;
}

.disappearing-card {
  flex: 1;
  min-width: 80px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--bg-2);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.1s;
}

.disappearing-card:hover {
  border-color: var(--bg-0);
  transform: translateY(-1px);
}

.disappearing-card.active {
  background: var(--bg-0);
  color: var(--bg-1);
  border-color: var(--bg-0);
  font-weight: 600;
}

/* Input with Right Action Button */
.input-with-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-action-btn input {
  width: 100%;
  padding-right: 42px !important;
}

.btn-input-generate {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-1);
  opacity: 0.65;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s,
    background-color 0.2s;
}

.btn-input-generate:hover {
  opacity: 1;
  background: var(--bg-2);
  transform: rotate(45deg);
}

/* Note Mode Tabs (Note vs Redirect) */
.note-mode-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  padding: 0;
  border-bottom: 1px solid var(--bg-2);
  margin-bottom: 1rem;
  width: 100%;
}

.note-mode-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.25rem;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  opacity: 0.6;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    opacity 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.note-mode-tab:hover {
  opacity: 1;
}

.note-mode-tab.active {
  background: transparent;
  color: var(--text-1);
  opacity: 1;
  font-weight: 600;
  border-bottom-color: var(--bg-0);
  box-shadow: none;
}

.form-group input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bg-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input[type="url"]:focus {
  border-color: var(--bg-0);
  box-shadow: 0 0 0 1px var(--bg-0);
}

/* Cropper Modal Overlay & Preloader */
.gdoop-crop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gdoop-crop-modal {
  background: var(--bg-1);
  color: var(--text-1);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gdoop-crop-header {
  padding: 2rem;
  text-align: center;
}

.gdoop-crop-header > svg path,
.gdoop-crop-header > svg rect {
  fill: var(--text-1);
  transition: fill 0.3s ease;
}

.gdoop-crop-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.btn-crop-close {
  background: transparent;
  border: none;
  color: var(--text-1);
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
}

.btn-crop-close:hover {
  opacity: 1;
}

.gdoop-crop-body {
  padding: 0 1rem;
  overflow-y: auto;
  position: relative;
  max-height: 60vh;
}

.crop-image-container {
  width: 100%;
  max-height: 400px;
}

.crop-image-container img {
  max-width: 100%;
  display: block;
}

/* Preloader Spinner */
.crop-preloader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #ffffff;
  z-index: 10;
  font-size: 14px;
  font-weight: 500;
}

.crop-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.gdoop-crop-footer {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.btn-crop-cancel {
  background: transparent;
  border: 1px solid var(--bg-2);
  color: var(--text-1);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-crop-apply {
  background: var(--bg-0);
  color: var(--bg-1);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-crop-apply:hover {
  opacity: 0.9;
}

/* Bottom Toast Message Popup */
.gdoop-toast-container {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-0);
  color: var(--bg-1);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 90vw;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.gdoop-toast-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.gdoop-toast-container.error-toast {
  background: #ff3b30;
  color: #ffffff;
}

.gdoop-toast-container.success-toast {
  background: var(--bg-0);
  color: var(--bg-1);
}

/* Published Success Modal & QR Code Styling */
.share-code-display-box {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.share-code-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.6;
}

.share-code-value-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.share-code-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-1);
  font-family: Consolas, Monaco, monospace;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: var(--text-1);
  opacity: 0.7;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s,
    background-color 0.2s;
}

.btn-copy-code:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qrcode-target img,
.qrcode-target canvas {
  display: block;
  max-width: 100px;
  height: auto;
}

.modal-qr-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-download-qr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--bg-2);
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.btn-download-qr:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Legal Links Single Line Below Inputs */
.new-note-legal-links {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 12px;
  color: var(--text-1);
  opacity: 0.65;
  text-align: center;
  user-select: none;
}

.new-note-legal-links a {
  color: var(--text-1);
  text-decoration: underline;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.new-note-legal-links a:hover {
  opacity: 1;
}
