  :root {
      --primary: #6366f1;
      --secondary: #8b5cf6;
      --accent: #ec4899;
    }

    /* Added dark/white mode variables */
    body {
      font-family: 'Poppins', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background-color 0.5s ease;
    }

    body.dark-mode {
      background-color: #000000;
    }

    body.white-mode {
      background-color: #ffffff;
    }

    /* Updated card styles for both modes */
    .card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s ease;
      cursor: pointer;
    }

    body.white-mode .card {
      background: rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
      border-color: var(--primary);
    }

    /* Space background elements */
    .space-bg {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    /* Moving stars with different sizes */
    .star {
      position: absolute;
      background: white;
      border-radius: 50%;
      animation: moveStar linear infinite;
    }

    body.white-mode .star {
      background: black;
    }

    .star.small {
      width: 2px;
      height: 2px;
    }

    .star.medium {
      width: 3px;
      height: 3px;
    }

    .star.large {
      width: 4px;
      height: 4px;
      box-shadow: 0 0 10px currentColor;
    }

    body.white-mode .star.large {
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    @keyframes moveStar {
      from {
        transform: translateX(0) translateY(0);
      }
      to {
        transform: translateX(-100vw) translateY(50vh);
      }
    }

    /* Planets and space objects */
    .planet {
      position: absolute;
      border-radius: 50%;
      animation: floatPlanet 30s ease-in-out infinite;
    }

    body.dark-mode .planet {
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(200, 200, 200, 0.4));
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }

    body.white-mode .planet {
      background: radial-gradient(circle at 30% 30%, rgba(50, 50, 50, 0.8), rgba(0, 0, 0, 0.4));
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    }

    @keyframes floatPlanet {
      0%, 100% {
        transform: translate(0, 0) rotate(0deg);
      }
      50% {
        transform: translate(30px, -30px) rotate(180deg);
      }
    }

    /* Shooting stars */
    .shooting-star {
      position: absolute;
      width: 2px;
      height: 2px;
      background: white;
      border-radius: 50%;
      box-shadow: 0 0 10px 2px white;
      animation: shoot 3s ease-out infinite;
    }

    body.white-mode .shooting-star {
      background: black;
      box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5);
    }

    @keyframes shoot {
      0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
      }
      100% {
        transform: translateX(-300px) translateY(300px);
        opacity: 0;
      }
    }

    /* Asteroids */
    .asteroid {
      position: absolute;
      background: white;
      clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
      animation: rotateAsteroid 20s linear infinite;
      opacity: 0.6;
    }

    body.white-mode .asteroid {
      background: black;
    }

    @keyframes rotateAsteroid {
      from {
        transform: rotate(0deg) translateX(0);
      }
      to {
        transform: rotate(360deg) translateX(50px);
      }
    }

    /* Nebula clouds */
    .nebula {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.3;
      animation: nebulaPulse 15s ease-in-out infinite;
    }

    body.dark-mode .nebula {
      background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    }

    body.white-mode .nebula {
      background: radial-gradient(circle, rgba(0, 0, 0, 0.2), transparent);
    }

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

    /* Mode toggle button */
    .mode-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      transition: all 0.3s ease;
    }

    body.white-mode .mode-toggle {
      border: 2px solid rgba(0, 0, 0, 0.3);
      background: rgba(0, 0, 0, 0.05);
    }

    .mode-toggle:hover {
      transform: scale(1.1) rotate(180deg);
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }

    /* Updated text colors for both modes */
    body.dark-mode .text-content {
      color: white;
    }

    body.white-mode .text-content {
      color: black;
    }

    body.white-mode .text-white {
      color: black !important;
    }

    body.white-mode .text-white\/80 {
      color: rgba(0, 0, 0, 0.8) !important;
    }

    body.white-mode .text-white\/70 {
      color: rgba(0, 0, 0, 0.7) !important;
    }

    body.white-mode .text-white\/60 {
      color: rgba(0, 0, 0, 0.6) !important;
    }

    body.white-mode .text-white\/50 {
      color: rgba(0, 0, 0, 0.5) !important;
    }

    .gradient-text {
      background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .add-card {
      border: 2px dashed rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.05);
    }

    body.white-mode .add-card {
      border: 2px dashed rgba(0, 0, 0, 0.3);
      background: rgba(0, 0, 0, 0.02);
    }

    .add-card:hover {
      border-color: var(--primary);
      background: rgba(99, 102, 241, 0.1);
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      backdrop-filter: blur(5px);
    }

    .modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 1rem;
      padding: 2rem;
      max-width: 500px;
      width: 90%;
      animation: slideIn 0.3s ease;
    }

    body.white-mode .modal-content {
      background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
      border: 1px solid rgba(0, 0, 0, 0.2);
    }

    @keyframes slideIn {
      from {
        transform: translateY(-50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    input, textarea {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      padding: 0.75rem;
      border-radius: 0.5rem;
      width: 100%;
      transition: all 0.3s ease;
    }

    body.white-mode input,
    body.white-mode textarea {
      background: rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.2);
      color: black;
    }

    input:focus, textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

    input::placeholder, textarea::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }

    body.white-mode input::placeholder,
    body.white-mode textarea::placeholder {
      color: rgba(0, 0, 0, 0.5);
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      color: white;
    }

    .btn-primary:hover {
      transform: scale(1.05);
      box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.1);
      color: white;
    }

    body.white-mode .btn-secondary {
      background: rgba(0, 0, 0, 0.1);
      color: black;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    body.white-mode .btn-secondary:hover {
      background: rgba(0, 0, 0, 0.2);
    }

    .delete-btn {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      background: rgba(239, 68, 68, 0.8);
      color: white;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: all 0.3s ease;
      cursor: pointer;
      z-index: 10;
    }

    .card:hover .delete-btn {
      opacity: 1;
    }

    .delete-btn:hover {
      background: rgba(239, 68, 68, 1);
      transform: scale(1.1);
    }

    /* Added edit button styles */
    .edit-btn {
      position: absolute;
      top: 0.5rem;
      right: 3rem;
      background: rgba(59, 130, 246, 0.8);
      color: white;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: all 0.3s ease;
      cursor: pointer;
      z-index: 10;
    }

    .card:hover .edit-btn {
      opacity: 1;
    }

    .edit-btn:hover {
      background: rgba(59, 130, 246, 1);
      transform: scale(1.1);
    }

    /* Added floating add button styles */
    .floating-add-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      color: white;
      font-size: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 100;
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
      transition: all 0.3s ease;
      border: 3px solid rgba(255, 255, 255, 0.3);
    }

    body.white-mode .floating-add-btn {
      border: 3px solid rgba(0, 0, 0, 0.2);
    }

    .floating-add-btn:hover {
      transform: scale(1.15) rotate(90deg);
      box-shadow: 0 15px 40px rgba(99, 102, 241, 0.7);
    }

    .floating-add-btn:active {
      transform: scale(1.05) rotate(90deg);
    }