* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, 
    #ffe6f0 0%, 
    #fff0f5 20%, 
    #e6f7ff 40%, 
    #f0fff0 60%, 
    #fff5e6 80%, 
    #ffe6ff 100%);
  background-attachment: fixed;
  color: #5a4a6a;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Floating decorations */
body::before {
  content: "🌈";
  position: fixed;
  top: 10%;
  left: 5%;
  font-size: 4rem;
  animation: float 6s ease-in-out infinite;
  z-index: -1;
  opacity: 0.7;
}

body::after {
  content: "🌈";
  position: fixed;
  bottom: 15%;
  right: 8%;
  font-size: 3rem;
  animation: float 8s ease-in-out infinite reverse;
  z-index: -1;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(10deg); }
  75% { transform: translateY(5px) rotate(-10deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sparkles layer */
.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  animation: sparkle 2s ease-in-out infinite;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Decorative elements */
.container::before {
  content: "🦋";
  position: absolute;
  top: -10px;
  right: 50px;
  font-size: 2rem;
  animation: flutter 4s ease-in-out infinite;
  z-index: -1;
}

.container::after {
  content: "🍄";
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-size: 2.5rem;
  animation: bounce 3s ease-in-out infinite;
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
  background: linear-gradient(135deg, #ffb6c1, #ffd1dc, #ffe4e1);
  padding: 20px 25px;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(255, 182, 193, 0.4);
  border: 3px solid #ffb6c1;
  position: relative;
}

header::before {
  content: "🐱";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: -1;
}

header::after {
  content: "✨🐱✨";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: sparkle 1.5s ease-in-out infinite;
  z-index: -1;
}

h1 {
  font-size: 1.8rem;
  padding: 10px 15px;
  border-radius: 15px;
  min-width: 200px;
  color: #d4548a;
  text-shadow: 2px 2px 0 #fff;
  background: rgba(255, 255, 255, 0.7);
}

h1:focus {
  outline: 3px solid #ff69b4;
  background: #fff;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  background: linear-gradient(135deg, #b19cd9, #dda0dd);
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(177, 156, 217, 0.4);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
  font-weight: bold;
}

.btn:hover {
  background: linear-gradient(135deg, #c9b8e8, #e8c8e8);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(177, 156, 217, 0.6);
}

.btn.primary {
  background: linear-gradient(135deg, #ff69b4, #ff85c1, #ffa6d1);
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #ff85c1, #ff9dce, #ffb8db);
}

.btn.primary::before {
  content: "🌸 ";
}

.btn.danger {
  background: linear-gradient(135deg, #ffb347, #ffcc80);
  color: #8b4513;
}

.btn.danger:hover {
  background: linear-gradient(135deg, #ffc966, #ffd699);
}

#notes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  position: relative;
}

.note {
  background: linear-gradient(145deg, #fff, #fff5f8, #f0f8ff);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
  border: 3px solid #ffb6c1;
  position: relative;
  transition: all 0.3s;
}

.note:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.3);
}

.note::before {
  content: "🦋";
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 1.5rem;
  animation: flutter 3s ease-in-out infinite;
  z-index: -1;
}

.note:nth-child(odd)::after {
  content: "🍄";
  position: absolute;
  bottom: -10px;
  left: 15px;
  font-size: 1.3rem;
  z-index: -1;
}

.note:nth-child(even)::after {
  content: "🐱";
  position: absolute;
  bottom: -10px;
  right: 15px;
  font-size: 1.3rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: -1;
}

.note-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 12px;
  border: 2px dashed #ffb6c1;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f5, #fff);
  color: #d4548a;
  font-family: inherit;
}

.note-content {
  flex: 1;
  padding: 12px;
  border: 2px dashed #b0e0e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0ffff, #fff);
  color: #5a4a6a;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
}

.note-title:focus,
.note-content:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.note-actions .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

#home-view {
  padding: 20px 0;
}

#home-view h2 {
  margin-bottom: 20px;
  color: #d4548a;
  text-shadow: 2px 2px 0 #fff;
  font-size: 2rem;
}

#home-view h2::before {
  content: "🌸 ";
}

#home-view h2::after {
  content: " 🌸";
}

#boards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.board-card {
  background: linear-gradient(145deg, #fff, #fff5f8, #f5f0ff);
  border-radius: 20px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid #dda0dd;
  position: relative;
  overflow: hidden;
}

.board-card::before {
  content: "✨";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
  z-index: -1;
}

.board-card:hover {
  background: linear-gradient(145deg, #fff0f5, #ffe4f0, #f8f0ff);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(221, 160, 221, 0.4);
}

.board-card h3 {
  margin-bottom: 10px;
  color: #ff69b4;
  font-size: 1.2rem;
}

.board-card h3::before {
  content: "🐱 ";
}

.board-card p {
  color: #8b7a9e;
  font-size: 0.9rem;
}

.board-card .delete-board {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #ff69b4, #ff85c1);
  color: #fff;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(255, 105, 180, 0.5);
}

.status::before {
  content: "✨ ";
}

.status::after {
  content: " ✨";
}

.status.show {
  opacity: 1;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fff0f5, #fff);
  border-radius: 15px;
  font-size: 0.85rem;
  color: #8b7a9e;
  border: 2px dashed #ffb6c1;
}

.share-link input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ff69b4;
  font-size: 0.85rem;
  font-family: inherit;
}

/* Floating cats and decorations */
.floating-decor {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.cat1 { top: 20%; left: 3%; font-size: 2rem; animation: bounce 4s ease-in-out infinite; }
.cat2 { top: 60%; right: 5%; font-size: 2.5rem; animation: bounce 3s ease-in-out infinite 1s; }
.cat3 { bottom: 10%; left: 10%; font-size: 1.8rem; animation: bounce 5s ease-in-out infinite 0.5s; }
.mushroom1 { top: 40%; right: 3%; font-size: 2rem; animation: bounce 4s ease-in-out infinite; }
.mushroom2 { bottom: 30%; left: 5%; font-size: 1.5rem; animation: bounce 3.5s ease-in-out infinite; }
.butterfly1 { top: 15%; right: 15%; font-size: 2rem; animation: flutter 5s ease-in-out infinite; }
.butterfly2 { bottom: 25%; right: 20%; font-size: 1.8rem; animation: flutter 4s ease-in-out infinite 1s; }
.sparkle1 { top: 30%; left: 15%; font-size: 1.5rem; animation: sparkle 2s ease-in-out infinite; }
.sparkle2 { top: 70%; right: 25%; font-size: 1.3rem; animation: sparkle 2.5s ease-in-out infinite 0.5s; }
.rainbow { top: 5%; left: 50%; transform: translateX(-50%); font-size: 3rem; animation: float 8s ease-in-out infinite; }

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  header::before, header::after {
    display: none;
  }
}
