/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom component styles to work with Tailwind CDN */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover:before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #c026d3 100%);
  box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 231, 235, 0.8);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(209, 213, 219, 0.8);
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(229, 231, 235, 0.3);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 109, 42, 0.3), transparent);
}

.card:hover {
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(209, 213, 219, 0.6);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  font-size: 0.875rem;
  line-height: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 16px 0 rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

/* Dark mode styles */
.dark .card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.85) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(75, 85, 99, 0.2);
}

.dark .card:before {
  background: linear-gradient(90deg, transparent, rgba(236, 109, 42, 0.2), transparent);
}

.dark .card:hover {
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(75, 85, 99, 0.3);
}

.dark .form-input {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(75, 85, 99, 0.6);
  color: white;
  backdrop-filter: blur(4px);
}

.dark .form-input:focus {
  background: rgba(55, 65, 81, 0.95);
  border-color: #6366f1;
}

.dark .form-input::placeholder {
  color: #9ca3af;
}

.dark .btn-secondary {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.95) 0%, rgba(75, 85, 99, 0.85) 100%);
  color: #e5e7eb;
  border-color: rgba(75, 85, 99, 0.8);
}

.dark .btn-secondary:hover {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.95) 0%, rgba(107, 114, 128, 0.85) 100%);
  border-color: rgba(107, 114, 128, 0.8);
}

/* Modern utility classes */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-morphism {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-action {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.floating-action:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
  animation: slideUp 0.4s ease-out;
}

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

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.pagination a {
  color: #6b7280;
  background-color: #ffffff;
  border-color: #e5e7eb;
}

.pagination a:hover {
  color: #374151;
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  border-color: #6366f1;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pagination .disabled {
  color: #9ca3af;
  background-color: #f9fafb;
  border-color: #f3f4f6;
  cursor: not-allowed;
}

.pagination .prev_page,
.pagination .next_page {
  font-weight: 600;
}

.pagination .gap {
  color: #9ca3af;
  cursor: default;
}

/* Dark mode pagination */
.dark .pagination a {
  color: #9ca3af;
  background-color: #374151;
  border-color: #4b5563;
}

.dark .pagination a:hover {
  color: #e5e7eb;
  background-color: #4b5563;
  border-color: #6b7280;
}

.dark .pagination .current {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  border-color: #6366f1;
}

.dark .pagination .disabled {
  color: #6b7280;
  background-color: #374151;
  border-color: #374151;
}

.dark .pagination .gap {
  color: #6b7280;
}

/* Responsive pagination */
@media (max-width: 640px) {
  .pagination {
    gap: 0.125rem;
  }
  
  .pagination a,
  .pagination span {
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}
