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

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

a {
  @apply text-rose-600 hover:text-rose-800 underline underline-offset-4;
}

.sriracha-regular {
  font-family: "Sriracha", cursive;
  font-weight: 400;
  font-style: normal;
}
/* Custom pagination styles for Kaminari */

/* Make current page bold and slightly larger */
.pagination .current {
  font-weight: bold !important;
}

/* Ensure all pagination links have consistent smaller font size */
.pagination a,
.pagination span {
  font-size: 0.875rem !important; /* text-sm equivalent */
}

/* Style pagination container */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

/* Style individual pagination elements */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #374151;
  background-color: #ffffff;
  transition: all 0.15s ease-in-out;
}

/* Hover state for links */
.pagination a:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Current page styling */
.pagination .current {
  background-color: rgb(244, 63, 94);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #ffffff;
  font-weight: bold;
}

/* Disabled state (first/last when not applicable) */
.pagination .disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

/* Gap styling */
.pagination .gap {
  color: #9ca3af;
  cursor: default;
}

/* Loading animation styles for Turbo Frames */
turbo-frame[data-tab-loader-target="frame"] {
  transition: opacity 0.2s ease-in-out;
}

turbo-frame[data-tab-loader-target="frame"].loading {
  opacity: 0.7;
}

/* Smooth fade-in for loaded content */
turbo-frame[data-tab-loader-target="frame"] > div {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Loading spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/*
 * 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.
 *


 */
