/* Custom CSS for Fyatix */

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000000;
  color: #FFFFFF;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #FF7A00;
  outline-offset: 2px;
}

/* Custom button styles */
.btn-primary {
  background-color: #FF7A00;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #E66A00;
}

.btn-success {
  background-color: #28A745;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-warning {
  background-color: #FFC107;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-danger {
  background-color: #DC3545;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-ghost {
  background-color: transparent;
  color: white;
  border: 1px solid #333333;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-ghost:hover {
  background-color: #111111;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 12px;
  color: white;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #FF7A00;
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

.form-input::placeholder {
  color: #666666;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
}

.form-error {
  font-size: 0.875rem;
  color: #DC3545;
  margin-top: 0.25rem;
}

.form-description {
  font-size: 0.875rem;
  color: #666666;
  margin-top: 0.25rem;
}

/* Card styles */
.card {
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 12px;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #333333;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid #333333;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: #28A745;
  color: white;
}

.badge-warning {
  background-color: #FFC107;
  color: black;
}

.badge-danger {
  background-color: #DC3545;
  color: white;
}

.badge-primary {
  background-color: #FF7A00;
  color: white;
}

.badge-ghost {
  background-color: #666666;
  color: white;
}

/* Table styles */
.table {
  width: 100%;
}

.table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: white;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: rgba(51, 51, 51, 0.2);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(51, 51, 51, 0.1);
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Slide animation */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom utilities */
.text-gradient {
  background: linear-gradient(135deg, #FF7A00, #FF8F1A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, #FF7A00, #FF8F1A);
}

/* Modern Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 122, 0, 0.6);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.4);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #FF7A00, #FF8F1A, #FFB84D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF7A00, #FF8F1A);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF8F1A, #FFB84D);
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none;
  }
}

@media (min-width: 641px) {
  .desktop-hidden {
    display: none;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-glow {
    animation: none;
  }
  
  .hover-lift:hover,
  .hover-scale:hover {
    transform: none;
  }
}

/* Dark Theme Form Controls */
.form-control.bg-dark-border,
.form-select.bg-dark-border {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  font-size: 0.95rem !important;
}

.form-control.bg-dark-border:focus,
.form-select.bg-dark-border:focus {
  background-color: #1a1a1a !important;
  border-color: #FF7A00 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.25) !important;
  outline: none !important;
}

.form-control.bg-dark-border::placeholder {
  color: #888888 !important;
  opacity: 1 !important;
}

.form-select.bg-dark-border option {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  padding: 0.5rem !important;
}

.form-select.bg-dark-border option:hover {
  background-color: #FF7A00 !important;
}

/* Dark Theme Pagination - Enhanced */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination .page-link {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-link:hover {
  background-color: #FF7A00;
  border-color: #FF7A00;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 122, 0, 0.3);
}

.pagination .page-item.active .page-link {
  background-color: #FF7A00;
  border-color: #FF7A00;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

.pagination .page-item.disabled .page-link {
  background-color: #1a1a1a;
  border-color: #333333;
  color: #888888;
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: #1a1a1a;
  border-color: #333333;
}

.pagination .page-link i {
  font-size: 0.875rem;
}

/* Filter Form Styling */
#filterForm .form-control,
#filterForm .form-select {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#filterForm .form-control:hover,
#filterForm .form-select:hover {
  border-color: #555555;
}

#filterForm .btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 122, 0, 0.2);
}

#filterForm .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 122, 0, 0.3);
}

/* Hover text color utility */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: #ffffff !important;
}

/* Cookie Banner Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.3s ease-out;
}

/* Form Labels */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ffffff;
}

.form-label.small {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
