@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .glass-card {
    @apply bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl shadow-xl;
  }

  .feature-card {
    @apply bg-white/80 backdrop-blur-sm rounded-2xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 hover:-translate-y-1 border border-cyan-100/50;
  }

  .chart-card {
    @apply bg-white/80 backdrop-blur-sm rounded-2xl p-8 shadow-lg hover:shadow-xl transition-shadow duration-300 border border-cyan-100/50;
  }

  .chart-container {
    @apply relative w-full bg-gradient-to-br from-slate-50 to-cyan-50/30 rounded-xl p-4 border border-cyan-100/30;
    min-height: 300px;
  }

  .btn-primary {
    @apply inline-flex items-center px-6 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 text-white font-semibold rounded-xl shadow-lg hover:shadow-xl hover:from-cyan-700 hover:to-blue-700 transition-all duration-300 hover:scale-105;
  }

  .btn-secondary {
    @apply inline-flex items-center px-6 py-3 bg-white/20 backdrop-blur-sm text-white font-semibold rounded-xl border-2 border-white/30 hover:bg-white/30 hover:border-white/50 transition-all duration-300;
  }

  .search-result {
    @apply border-b border-white/10 last:border-b-0;
  }

  .search-result-current {
    @apply bg-white/20;
  }
}

@layer utilities {
  @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
  }

  @keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
  }

  .animate-blob {
    animation: blob 7s infinite;
  }

  .animation-delay-2000 {
    animation-delay: 2s;
  }

  .animation-delay-4000 {
    animation-delay: 4s;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #0891b2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0891b2, #0e7490);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.search {
    width: 600px;
    margin: 100px auto 0 auto;
}

.search__input {
    border: 1px solid gray;
    border-radius: 2px;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.search__results {
    border: 1px solid gray;
    border-radius: 2px;
    border-top: none;
    margin: 0;
    padding: 0;
    list-style-type: none;
    top: -1px;
    position: relative;
}

.search__result {
    a {
        text-decoration: none;
        color: black;
        padding: 10px;
        display: block;
    }
}

.search__result--current, .search__result:hover {
    background: #e0e0e0;
}

.search__result--empty {
    padding: 10px;
}
