@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* New Color Palette */
  --primary-color: #6c5ce7;
  --primary-light: #a29bfe;
  --secondary-color: #00cec9;
  --accent-color: #fd79a8;
  --background-color: #f9f9ff;
  --sidebar-color: #ffffff;
  --card-color: #ffffff;
  --text-color: #2d3436;
  --text-light: #636e72;
  --border-color: #dfe6e9;
  --hover-color: #f1f1f1;
  --shadow-color: rgba(99, 99, 99, 0.1);
  --success-color: #00b894;
  --warning-color: #fdcb6e;
  --danger-color: #d63031;
  --info-color: #0984e3;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --secondary-gradient: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);

  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 4px 12px var(--shadow-color);
  --shadow-lg: 0 8px 24px var(--shadow-color);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.45s ease;
}

body {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  will-change: background-color, color;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #f4f4f4;
}

body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 3px solid #f4f4f4;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* !========================================================================================= */
/* ===== INTERSTELLAR THEME ENGINE ===== */
.universe-portal {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 99999;
  filter: drop-shadow(0 0 20px rgba(162, 155, 254, 0.7));
}

.singularity {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.8), 0 0 60px rgba(108, 92, 231, 0.5),
    0 0 90px rgba(108, 92, 231, 0.3);
  animation: cosmic-pulse 4s infinite alternate;
}

@keyframes cosmic-pulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.05) rotate(2deg);
  }
}

.quantum-core {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--primary-color);
  transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color),
    inset 0 0 10px white;
  z-index: 10;
  transform: translateZ(30px);
}

.event-horizon {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.2) 0%,
    rgba(108, 92, 231, 0.1) 50%,
    transparent 70%
  );
  z-index: 5;
  animation: spacetime-warp 15s linear infinite;
}

@keyframes spacetime-warp {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.cosmic-dust {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: 1;
  pointer-events: none;
}

.stellar-flare {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  opacity: 0;
}

.nebula-aura {
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -100%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.1) 0%,
    transparent 60%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

/* Dark Theme Transformations */
body.dark-universe {
  --background-color: #0a0818;
  --sidebar-color: #11102a;
  --card-color: #1a1842;
  --text-color: #e0e0ff;
  --text-light: #a7a9ff;
  --border-color: #2a2875;
}

body.dark-universe .quantum-core {
  background: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
  transform: translateY(4rem) scale(0.6) translateZ(30px);
}

body.dark-universe .event-horizon {
  background: radial-gradient(
    circle,
    rgba(253, 121, 168, 0.2) 0%,
    rgba(253, 121, 168, 0.1) 50%,
    transparent 70%
  );
}

/* Black Hole Click Effect */
.singularity:active {
  transform: scale(0.9);
}

/* Particle Animations */
.universe-particle {
  position: absolute;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 5px white;
  animation: cosmic-drift linear infinite;
  opacity: 0;
}

@keyframes cosmic-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Supernova Explosion */
.stellar-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px white;
  animation: supernova-burst 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes supernova-burst {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.5);
    opacity: 0;
  }
}

/* Universe Transition Effect */
body.universe-transition {
  overflow: hidden;
}

body.universe-transition::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  animation: big-bang 2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes big-bang {
  0% {
    transform: scale(0.3);
    opacity: 0;
    filter: blur(50px);
  }
  50% {
    opacity: 1;
    filter: blur(10px);
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
    filter: blur(0);
  }
}

/* !========================================================================================= */

/* CINEMATIC ANNOUNCEMENT SWIPER */
.announcement-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 30px rgba(255, 75, 75, 0.2);

  @media (max-width: 1100px) {
    display: none;
  }
}

.cinematicSwiper {
  height: 40px;
  background: linear-gradient(135deg, #ff4b4b 0%, #d32f2f 100%);
  background-size: 200% 200%;
  animation: gradientPulse 8s ease infinite;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cinematic-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 100%;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.slide-text {
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-highlight {
  color: #ffeb3b;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(255, 235, 59, 0.4);
}

.pulse-icon {
  font-size: 18px;
  animation: pulse 2s infinite;
  color: white;
}

/* Animations */
@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cinematicSwiper {
    height: 80px;
  }

  .cinematic-slide {
    padding: 0 20px;
  }

  .slide-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .slide-text {
    font-size: 12px;
  }
}

/* Dynamic Work-in-Progress Styling */
.dynamic-icon {
  font-size: 20px;
  color: #ffd700; /* Gold color for emphasis */
  animation: hammerHit 1.5s infinite, iconGlow 2s infinite alternate;
}

@keyframes hammerHit {
  0%,
  100% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(35deg) scale(1.2);
  }
}

@keyframes iconGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
  }
}

.pulse-text {
  animation: textPulse 2s infinite;
  display: inline-block;
}

@keyframes textPulse {
  0%,
  100% {
    transform: scale(1);
    color: #ffd700;
  }
  50% {
    transform: scale(1.02);
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  }
}

/* Enhanced highlight for updates */
.slide-highlight:not(.pulse-text) {
  background: linear-gradient(90deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  padding: 0 2px;
}

/* !========================================================================================= */

/* Developer Credit Styling */
.developer-label {
  padding: 20px 40px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;

  @media (max-width: 768px) {
    padding: 10px 20px;
  }
}

.credits-info-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8be9fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.credits-info-value {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #f8f8f2;
  position: relative;
  display: inline-block;
}

.dev-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6272a4;
  font-style: italic;
  margin-left: 8px;
}

.developer-bio {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(139, 233, 253, 0.3);
}

.developer-bio p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #f8f8f2;
  margin-bottom: 15px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-pill {
  background: rgba(139, 233, 253, 0.1);
  color: #8be9fd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: "Fira Code", monospace;
  border: 1px solid rgba(139, 233, 253, 0.3);
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(139, 233, 253, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 233, 253, 0.1);
}

/* Animations */
.dynamic {
  position: relative;
}

.dynamic::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8be9fd, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.developer-label:hover .dynamic::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive */
@media (max-width: 768px) {
  .credits-info-value {
    font-size: 18px;
  }

  .dev-title {
    font-size: 14px;
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .developer-bio p {
    font-size: 14px;
  }
}

/* !========================================================================================= */

@media (max-width: 768px) {
  .notes-header {
    border: 1px solid #dedbdb;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
  }
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 70px;
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo i {
  font-size: 24px;
}

.app-logo h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;

  @media (max-width: 400px) {
    flex-direction: column;

    @media (max-width: 768px) {
      display: flex;
      gap: 10px;
    }
  }
}

.search-container {
  position: relative;
  width: 250px;
}

#searchNotes {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: none;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  transition: var(--transition-normal);
  backdrop-filter: blur(5px);
}

#searchNotes::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#searchNotes:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 14px;
}

.add-note-btn {
  padding: 10px 20px;
  background-color: white;
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);

  @media (max-width: 768px) {
    max-width: 130px;

    @media (max-width: 400px) {
      max-width: 100%;
    }
  }
}

.add-note-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.add-note-btn i {
  font-size: 14px;
}

.app-body {
  display: flex;
  flex: 1;
  height: calc(100vh - 70px);
}

.sidebar {
  width: 300px;
  background-color: var(--sidebar-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);

  @media (max-width: 768px) {
    height: auto;
  }
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 12px;

  @media (max-width: 768px) {
    border: 2px solid #dedbdb;
    margin: 10px;
    border-radius: 10px;
    height: 100%;
    padding: 10px;
    gap: 0;
    max-height: 43.7vh;
  }
}

.note-item {
  background-color: var(--card-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  position: relative;

  @media (max-width: 768px) {
    overflow: visible;
  }
}

.note-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
}
/* !================================================================ */
.note-item.active {
  border-left: 4px solid rgb(108, 92, 231);
  background: linear-gradient(
    90deg,
    rgba(108, 92, 231, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
  position: relative;
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: activePulse 2s infinite;
}

.note-item.active::after {
  content: "ACTIVE";
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1.5px;
  bottom: 12px;
  right: 8px;
  padding: 3px 12px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgb(108, 92, 231) 0%,
    rgb(85, 123, 214) 100%
  );
  position: absolute;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes activePulse {
  0% {
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
  }
  50% {
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.25);
  }
  100% {
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
  }
}

@keyframes badgeFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.note-item.locked {
  border: 2px solid var(--warning-color);
}

/* !============================= */

.note-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-item p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  visibility: hidden;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-item small {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

.note-item.active small {
  color: var(--primary-color);
}

.note-lock-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--warning-color);
  font-size: 14px;
}

/* .note-item.locked::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: -webkit-fill-available;
  top: 0;
  background: var(--warning-color);
} */

.note-group {
  background-color: var(--card-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
}

.group-header {
  padding: 14px 16px;
  background-color: var(--card-color);
  cursor: pointer;
  display: flex;
  border: 2px solid hsl(111, 55%, 59%);
  border-radius: var(--border-radius-md);
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-normal);
}

.group-header:hover {
  background-color: var(--hover-color);
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.group-title i {
  color: var(--secondary-color);
}

.group-title small {
  font-size: 12px;
  color: var(--text-light);
  font-weight: normal;
}

/* !==================================================== */

.group-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  border-radius: 5px;
}

.group-actions i {
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  background-color: #8175f0;
  transition: all 0.2s ease-in-out;
  text-align: center;
  flex: 1;
}

.group-actions i:hover {
  background-color: #645ea5;
}

.group-content {
  transition: max-height var(--transition-normal);
  background-color: #f5f3f3;
  border: 2px solid hsl(111, 55%, 59%);
  padding: 10px;
}

.group-content::before {
  content: attr(data-group-name) " Content :";
  font-weight: bold;
}

.note-group.collapsed .group-content {
  visibility: hidden;
  max-height: auto;
  display: none;
}

.note-group.expanded .group-content {
  visibility: visible;
  margin-top: 10px;
  display: block;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* !==================================================== */

.group-lock-icon {
  color: var(--warning-color);
  margin-left: 8px;
  font-size: 14px;
}

.toggle-group-lock {
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.toggle-group-lock:hover {
  color: var(--warning-color);
}

.toggle-group-lock.locked {
  color: var(--warning-color);
}

.locked-group-message {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

.locked-group-message i {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--warning-color);
  display: block;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  overflow: hidden;
}

.editor-toolbar {
  padding: 12px 24px;
  background-color: var(--sidebar-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  @media (max-width: 768px) {
    border: 1px solid #dedbdb;
    background-color: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;

    @media (max-width: 500px) {
      padding: 10px;
      margin: 10px;
    }
  }
}

.toolbar-section {
  display: flex;
  gap: 8px;

  @media (max-width: 768px) {
    display: flex;
    max-width: 100%;
    width: 100%;
  }
}

.formatting-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;

  @media (max-width: 768px) {
    display: flex;
    max-width: 100%;
    width: 100%;

    @media (max-width: 500px) {
      border: 1px solid #dedbdb;
      padding: 10px;
      border-radius: 10px;
    }
  }
}

.tool-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);

  @media (max-width: 768px) {
    flex: 0.5;

    @media (max-width: 500px) {
      flex: 1;
      max-width: 100%;
      width: 100%;
      padding: 10px 20px;
    }
  }
}

.tool-btn:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.tool-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.font-size-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  visibility: hidden;
  border-radius: var(--border-radius-sm);
  display: none;
  background-color: white;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);

  @media (max-width: 768px) {
    padding: 8px 50px 8px 10px;

    @media (max-width: 500px) {
      max-width: 100%;
      width: 100%;
    }
  }
}

.font-size-select:hover {
  border-color: var(--primary-light);
}

.color-picker {
  width: 46px;
  height: 33px;
  padding: 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05),
    inset 0 -1px 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;

  @media (max-width: 500px) {
    width: 100%;
  }
}

.color-picker:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.color-picker:active {
  transform: scale(0.98);
}

.color-picker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  border-radius: 7px;
}

.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 6px;
}

.note-actions {
  display: flex;
  gap: 8px;

  @media (max-width: 968px) {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;

    @media (max-width: 500px) {
      border: 1px solid #dedbdb;
      padding: 10px;
      border-radius: 10px;
      max-width: 100%;
      width: 100%;
    }
  }
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);

  @media (max-width: 768px) {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }
}

#saveNote {
  background-color: var(--primary-color);
  color: white;
}

#saveNote:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#deleteNote {
  background-color: var(--danger-color);
  color: white;
}

#deleteNote:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-btn.lock {
  background-color: var(--warning-color);
  color: white;
}

.action-btn.lock:hover {
  background-color: #e67e22;
}

.editor-container {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.note-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.note-title {
  font-size: 28px;
  font-weight: 700;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #d1cfe2;
  background: transparent;
  color: var(--text-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
}

.note-title:focus {
  outline: none;
  background-color: rgba(108, 92, 231, 0.05);
}

.note-title::placeholder {
  color: var(--text-light);
  opacity: 0.5;
}

.note-content {
  flex: 1;
  padding: 16px;
  outline: none;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.8;
  border-radius: var(--border-radius-sm);
  background-color: var(--sidebar-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.note-content:focus {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.note-content[placeholder]:empty:before {
  content: attr(placeholder);
  color: var(--text-light);
  opacity: 0.5;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  font-size: 18px;
}

.password-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.password-dialog-container {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 450px;
  max-width: 95%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.3s ease forwards;
}

.password-dialog-header {
  padding: 24px;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.password-dialog-header i {
  font-size: 36px;
  margin-bottom: 12px;
}

.password-dialog-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.password-dialog-body {
  padding: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  transition: var(--transition-normal);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.password-strength-meter {
  margin: 16px 0;
}

.strength-bar {
  height: 4px;
  background-color: #e74c3c;
  border-radius: 2px;
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.strength-text {
  font-size: 12px;
  color: var(--text-light);
}

.strength-text span {
  font-weight: 600;
}

.password-hint {
  font-size: 12px;
  color: var(--text-light);
  margin: 16px 0;
  line-height: 1.5;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-cancel,
.btn-confirm {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-cancel {
  background-color: var(--border-color);
  color: var(--text-light);
}

.btn-cancel:hover {
  background-color: #dfe6e9;
}

.btn-confirm {
  background-color: var(--primary-color);
  color: white;
}

.btn-confirm:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.error-message {
  color: var(--danger-color);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

.group-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.group-dialog-container {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 600px;
  max-width: 95%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.3s ease forwards;
}

.group-dialog-header {
  padding: 24px;
  background: var(--secondary-gradient);
  color: white;
  text-align: center;
}

.group-dialog-header i {
  font-size: 36px;
  margin-bottom: 12px;
}

.group-dialog-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.group-dialog-body {
  padding: 24px;
}

.group-select-container {
  display: flex;
  gap: 12px;
}

.group-select {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  transition: var(--transition-normal);
}

.group-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.1);
}

.btn-remove {
  padding: 12px 16px;
  background-color: var(--border-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-remove:hover {
  background-color: #dfe6e9;
}

.btn-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.4s ease;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }

  .header-right {
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .add-note-btn {
    width: 100%;
  }

  .app-body {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .editor-toolbar {
    flex-direction: column;
    gap: 12px;
  }

  .toolbar-section {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .formatting-tools {
    justify-content: center;
  }

  .note-actions {
    width: 100%;
    justify-content: center;
  }

  .editor-container {
    padding: 16px;
  }

  .note-title {
    font-size: 24px;
  }
}

.credits-button {
  padding: 8px 20px;
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-left: auto;
  margin-right: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", sans-serif;

  @media (max-width: 900px) {
    margin-left: 0;

    @media (max-width: 768px) {
      display: flex;
      margin-left: 0;
      margin-right: 0;
    }
  }
}

.credits-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.credits-button i {
  font-size: 16px;
}
/* !-------------------------------------------------------------------------------- */
/* Devilishly Sophisticated Modal */
.credits-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px) brightness(0.8);
  perspective: 1000px;
}

.credits-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.credits-modal-container {
  background: linear-gradient(145deg, #0f0f15 0%, #1a1a26 100%);
  border-radius: 24px;
  width: min(1400px, 90vw);
  max-height: 90vh;
  overflow-x: hidden;
  transform: translateY(50px) rotateX(15deg);
  transform-origin: center bottom;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 120px rgba(186, 31, 31, 0.2) inset;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.credits-modal-overlay.active .credits-modal-container {
  transform: translateY(0) rotateX(0);
}

/* Devilish Glow Effect */
.credits-modal-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(186, 31, 31, 0.3),
    rgba(186, 31, 31, 0.1),
    rgba(186, 31, 31, 0.3)
  );
  z-index: -1;
  border-radius: 25px;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 1s ease;
}

.credits-modal-overlay.active .credits-modal-container::before {
  opacity: 1;
  animation: devilPulse 8s infinite alternate;
}

@keyframes devilPulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.3;
  }
}

.credits-modal-header {
  padding: 30px 40px;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.9) 0%,
    rgba(30, 30, 45, 0.9) 100%
  );
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.credits-modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 31, 31, 0.7),
    transparent
  );
}

.credits-modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.credits-modal-header h2::after {
  content: "THE REAL DEV";
  position: absolute;
  right: -120px;
  font-size: 12px;
  background: rgba(186, 31, 31, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.5s ease 0.5s;
}

.credits-modal-overlay.active .credits-modal-header h2::after {
  opacity: 1;
  right: 0;
  top: 10px;
}

.credits-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.credits-close-btn:hover {
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(186, 31, 31, 0.5);
  background: rgba(186, 31, 31, 0.2);
}

.credits-modal-body {
  padding: 40px;
  overflow-y: auto;
  background: linear-gradient(
    145deg,
    rgba(15, 15, 20, 0.9) 0%,
    rgba(25, 25, 35, 0.9) 100%
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(186, 31, 31, 0.5) transparent;
}

.credits-modal-body::-webkit-scrollbar {
  width: 8px;
}

.credits-modal-body::-webkit-scrollbar-thumb {
  background: rgba(186, 31, 31, 0.5);
  border-radius: 4px;
}

.credits-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.credits-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.credits-info-item {
  background: linear-gradient(
    145deg,
    rgba(25, 25, 35, 0.8) 0%,
    rgba(30, 30, 45, 0.8) 100%
  );
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.credits-info-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(186, 31, 31, 0.03),
    transparent
  );
  z-index: 0;
}

.credits-info-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(186, 31, 31, 0.1);
  border-color: rgba(186, 31, 31, 0.2);
}

.credits-info-item:hover::before {
  animation: devilScan 2s linear infinite;
}

@keyframes devilScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.credits-info-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  position: relative;
  display: inline-block;
}

.credits-info-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 1px;
  background: rgba(186, 31, 31, 0.5);
  transition: width 0.4s ease;
}

.credits-info-item:hover .credits-info-label::after {
  width: 100%;
}

.credits-info-value {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  min-height: 50px;
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  word-break: break-word;
  border-left: 2px solid rgba(186, 31, 31, 0.3);
  transition: all 0.4s ease;
}

.credits-info-item:hover .credits-info-value {
  background: rgba(186, 31, 31, 0.05);
  border-left-color: rgba(186, 31, 31, 0.7);
}

.credits-info-value.dynamic {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  background: rgba(186, 31, 31, 0.1);
  border-left: 3px solid rgba(186, 31, 31, 0.7);
}

.credits-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-family: "Inter", sans-serif;
  position: relative;
}

.credits-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 31, 31, 0.7),
    transparent
  );
}

/* Devilish Responsive Adjustments */
@media (max-width: 768px) {
  .credits-info-grid {
    grid-template-columns: 1fr;
  }

  .credits-modal-header h2 {
    font-size: 22px;
  }

  .credits-info-item {
    padding: 20px;
  }

  .credits-modal-body {
    padding: 30px 20px;
  }
}

/* Animation for Devilish Value Updates */
@keyframes highlightUpdate {
  0% {
    background-color: rgba(186, 31, 31, 0.1);
    box-shadow: 0 0 0 rgba(186, 31, 31, 0);
  }
  50% {
    background-color: rgba(186, 31, 31, 0.2);
    box-shadow: 0 0 10px rgba(186, 31, 31, 0.3);
  }
  100% {
    background-color: rgba(186, 31, 31, 0.1);
    box-shadow: 0 0 0 rgba(186, 31, 31, 0);
  }
}

.value-updated {
  animation: highlightUpdate 1.5s ease;
}

/* Devilish Signature Effect */
.credits-signature {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-style: italic;
  transition: all 0.5s ease;
}

.credits-modal-container:hover .credits-signature {
  color: rgba(186, 31, 31, 0.5);
  text-shadow: 0 0 5px rgba(186, 31, 31, 0.3);
}

.credits-built-by {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  color: #555;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  line-height: 1.6;
}

.highlight-developer {
  color: #0084ff;
  display: flex;
  gap: 10px;
  align-items: center;
}

.verified-dev {
  max-width: 30px;
  user-select: none;
  height: 100%;
}

/* !============================ Startup Important Notice ========================================= */

.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.popup-container.active {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(50px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.popup-container.active .popup {
  transform: translateY(0) scale(1);
}

.popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6c5ce7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-title svg {
  width: 24px;
  height: 24px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2d3436;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
  color: #e17055;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  background-color: rgba(108, 92, 231, 0.05);
  border-left: 4px solid #6c5ce7;
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.notification-item:nth-child(1) {
  animation-delay: 0.2s;
}
.notification-item:nth-child(2) {
  animation-delay: 0.4s;
}
.notification-item:nth-child(3) {
  animation-delay: 0.6s;
}

.notification-icon {
  color: #6c5ce7;
  font-size: 1.2rem;
  margin-top: 2px;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-weight: 500;
  margin-bottom: 5px;
  color: #2d3436;
}

.notification-message {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.popup-footer {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
}

.understand-btn {
  background-color: #6c5ce7;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.understand-btn:hover {
  background-color: #5a4bd6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.understand-btn:active {
  transform: translateY(0);
}
