/* Simplipa Custom CSS */

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

/* Custom animations */
.hover-translate {
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
}
.hover-translate:hover {
  transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #98c93c;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7ba62e;
}

/* Transition effects */
.nav-link {
  transition: all 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #98c93c;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  width: 100%;
}

/* Card accent line */
.card-accent-top {
  position: relative;
}
.card-accent-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #98c93c, #7ba62e);
  border-radius: 4px 4px 0 0;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #1a1a1a, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Button animations */
.btn-effect {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-effect:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.btn-effect:hover:after {
  animation: ripple 1s ease-out;
}
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Zebra striping for tables */
.table-zebra tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

/* Form styling */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(152, 201, 60, 0.25);
  border-color: #98c93c;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu handling */
@media (max-width: 768px) {
  #navbar-menu.active {
    display: block;
  }
}

/* Dark mode styles - can be toggled with JavaScript */
.dark-mode {
  background-color: #121212;
  color: #f3f4f6;
}

.dark-mode .bg-white {
  background-color: #1f2937;
}

.dark-mode .text-simplipa-black,
.dark-mode .text-gray-700,
.dark-mode .text-gray-800,
.dark-mode .text-gray-900 {
  color: #f3f4f6;
}

.dark-mode .text-simplipa-gray,
.dark-mode .text-gray-500,
.dark-mode .text-gray-600 {
  color: #9ca3af;
}

.dark-mode .bg-simplipa-light-gray,
.dark-mode .bg-gray-50 {
  background-color: #374151;
}

.dark-mode .border-gray-100,
.dark-mode .border-gray-200 {
  border-color: #374151;
}

.dark-mode .gradient-text {
  background: linear-gradient(to right, #f3f4f6, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Focus visible styles for better accessibility */
.focus-visible:focus {
  outline: 2px solid #98c93c;
  outline-offset: 2px;
}

/* Page transitions */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

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