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

@layer components {
  .button {
    @apply font-bold py-2 px-4 rounded text-white;
  }

  .button-yellow {
    @apply bg-yellow-500 hover:bg-yellow-700;
  }

  .button-gray {
    @apply bg-gray-500 hover:bg-gray-700;
  }

  .button-primary {
    @apply bg-gradient-to-r from-blue-600 to-indigo-600 text-white font-semibold px-6 py-3 rounded-md shadow-md cursor-pointer;
  }

  .button-danger {
    @apply button bg-red-500 hover:bg-red-700;
  }

  .table-primary {
    @apply min-w-full bg-white shadow-lg rounded-lg overflow-hidden border border-gray-200;
  }
  
  .table-primary tr {
    @apply py-4 px-6 bg-white border-b border-gray-200 transition-colors duration-500 ease-out; 
  }
  
  .table-primary tr:hover {
    @apply bg-blue-100 shadow-lg;
  }
  
  .table-primary tr td {
    @apply py-4 px-6;
  }

  .table-primary tr a {
    @apply text-blue-600 font-medium transition-all duration-500 transform hover:underline focus:outline-none focus:ring-2 focus:ring-blue-500; 
  }
    
  .table-primary tr:hover a {
    @apply text-blue-800 transform scale-105;
  }
  
  .card {
    @apply m-4 p-4 bg-white shadow-md rounded-lg;
  }

  .form-input {
    @apply flex flex-col space-y-4;
  }

  .form-submit {
    @apply flex justify-end mt-4;
  }

  .filter-section {
    @apply flex items-center justify-start p-4 bg-gray-50 border-b border-gray-200 rounded-t shadow-sm;
  }

  .filter-pill {
    @apply text-blue-600 bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-full font-semibold ml-4 shadow-sm;
  }
}
.memoryhub-card {
  transition: background-color 0.3s ease;
}

.memoryhub-card.loading .original {
  color: #888;
}

.memoryhub-card.fresh {
  background-color: #fff8e1;
}

.memoryhub-card.due {
  background-color: #fdecea;
}

.memoryhub-card.practicing {
  background-color: #e3f2fd;
}
/*


 */

