:root {
      --primary: #76ff03;
      --primary-dark: #64dd17;
      --secondary: #ff4081;
      --dark: #121212;
      --darker: #0a0a0a;
      --light: #f5f5f5;
      --gray: #424242;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #0d1b2a);
      background-size: 400% 400%;
      color: var(--light);
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
      animation: gradientShift 15s ease infinite;
      overflow-x: hidden;
      padding: 20px;
    }

    @keyframes gradientShift {
      0% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }

      100% {
        background-position: 0% 50%;
      }
    }

    .container {
      background: rgba(18, 18, 18, 0.85);
      backdrop-filter: blur(10px);
      padding: 40px 30px;
      border-radius: 24px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
      text-align: center;
      width: 100%;
      max-width: 600px;
      animation: fadeIn 1s ease-out;
      position: relative;
      overflow: hidden;
    }

    .container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
      0% {
        transform: translateX(-100%);
      }

      100% {
        transform: translateX(100%);
      }
    }

    .header {
      margin-bottom: 30px;
      position: relative;
    }

    h1 {
      font-size: clamp(2.2rem, 5vw, 3rem);
      margin-bottom: 10px;
      color: var(--primary);
      text-shadow: 0 0 10px rgba(118, 255, 3, 0.5);
      animation: bounce 2s infinite alternate;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .subtitle {
      font-size: clamp(1rem, 3vw, 1.2rem);
      color: #ccc;
      margin-bottom: 10px;
    }

    .description {
      color: #aaa;
      font-size: clamp(0.85rem, 2.5vw, 0.95rem);
      max-width: 90%;
      margin: 0 auto 30px;
      line-height: 1.5;
    }

    .input-container {
      position: relative;
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .input-wrapper {
      position: relative;
      width: 100%;
      max-width: 400px;
    }

    input {
      padding: 15px 50px 15px 20px;
      width: 100%;
      border-radius: 50px;
      border: 2px solid var(--gray);
      outline: none;
      transition: all 0.3s;
      background: rgba(255, 255, 255, 0.05);
      color: var(--light);
      font-size: clamp(1rem, 3vw, 1.1rem);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 15px rgba(118, 255, 3, 0.3);
      background: rgba(255, 255, 255, 0.08);
    }

    input::placeholder {
      color: #aaa;
    }

    .search-icon {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary);
      font-size: 1.2rem;
      pointer-events: none;
    }

    #suggestions {
      width: 100%;
      max-width: 400px;
      margin: 10px auto 0;
      text-align: left;
      border-radius: 12px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(5px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      max-height: 200px;
      overflow-y: auto;
      z-index: 10;
      position: relative;
      display: none;
    }

    #suggestions p {
      padding: 12px 20px;
      margin: 0;
      cursor: pointer;
      transition: all 0.2s;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #suggestions p:hover {
      background: rgba(118, 255, 3, 0.1);
      padding-left: 25px;
    }

    #suggestions p:last-child {
      border-bottom: none;
    }

    .button-container {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin: 25px 0;
      flex-wrap: wrap;
    }

    button {
      padding: 14px 30px;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #000;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 15px rgba(118, 255, 3, 0.3);
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      min-width: 140px;
      justify-content: center;
    }

    button:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(118, 255, 3, 0.4);
    }

    button:active {
      transform: translateY(0);
    }

    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    #clearBtn {
      background: linear-gradient(135deg, var(--secondary), #e91e63);
      box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    }

    #clearBtn:hover {
      box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
    }

    #results {
      margin-top: 30px;
      text-align: left;
      animation: fadeInUp 0.5s ease-out;
    }

    .result-category {
      margin-bottom: 25px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      animation: slideIn 0.5s ease-out;
    }

    .result-category h3 {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      color: var(--primary);
      font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .result-category p {
      margin: 8px 0;
      padding-left: 10px;
      border-left: 3px solid var(--primary);
      animation: fadeIn 0.5s ease-out;
    }

    .fruit-badge {
      display: inline-block;
      background: rgba(118, 255, 3, 0.15);
      padding: 8px 15px;
      border-radius: 20px;
      margin: 5px;
      font-size: clamp(0.8rem, 2.5vw, 0.9rem);
      animation: popIn 0.3s ease-out;
      word-break: break-word;
    }

    .no-results {
      text-align: center;
      color: #aaa;
      font-style: italic;
      margin: 20px 0;
      padding: 20px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
    }

    .floating-fruits {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: -1;
    }

    .fruit {
      position: absolute;
      font-size: clamp(1rem, 3vw, 1.5rem);
      opacity: 0.1;
      animation: float 15s infinite linear;
    }

    @keyframes float {
      0% {
        transform: translateY(0) rotate(0deg);
      }

      50% {
        transform: translateY(-20px) rotate(180deg);
      }

      100% {
        transform: translateY(0) rotate(360deg);
      }
    }

    @keyframes bounce {
      from {
        transform: translateY(0) scale(1);
      }

      to {
        transform: translateY(-10px) scale(1.05);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

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

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }

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

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes popIn {
      0% {
        transform: scale(0);
      }

      70% {
        transform: scale(1.1);
      }

      100% {
        transform: scale(1);
      }
    }

    .footer {
      margin-top: 30px;
      color: #777;
      font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    /* Loading spinner */
    .spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: var(--primary);
      animation: spin 1s ease-in-out infinite;
      margin-right: 10px;
    }

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

    /* Responsive adjustments */
    @media (max-width: 600px) {
      .container {
        padding: 30px 20px;
      }

      .button-container {
        flex-direction: column;
        align-items: center;
      }

      button {
        width: 100%;
        max-width: 250px;
      }

      .input-wrapper {
        max-width: 100%;
      }

      #suggestions {
        max-width: 100%;
      }

      .fruit-badge {
        display: block;
        width: calc(100% - 10px);
        margin: 5px;
        text-align: center;
      }
    }

    @media (max-width: 400px) {
      body {
        padding: 10px;
      }

      .container {
        padding: 25px 15px;
      }

      h1 {
        font-size: 1.8rem;
      }

      button {
        padding: 12px 20px;
      }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
      :root {
        --primary: #00ff00;
        --primary-dark: #00cc00;
        --secondary: #ff0066;
      }

      body {
        background: #000;
      }

      .container {
        background: #111;
        border: 2px solid var(--primary);
      }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }