/* global page styles*/


@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3rem);
    }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes arrow-move {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes pulse-bg {
  0% {
    background-color: rgb(147, 197, 253);  /* Light blue */
  }
  50% {
    background-color: rgb(191, 219, 254);  /* Slightly lighter blue */
  }
  100% {
    background-color: rgb(147, 197, 253);  /* Back to light blue */
  }
}


@font-face {
    font-family: 'berdy';
    src: url('../fonts/berdy-berdy-regular-400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


.font-berdy {
    font-family: 'berdy', sans-serif;
}

/* For Webkit-based browsers (Chrome, Safari and Opera) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* For IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.active-ticket {
  color: white;
  animation: pulse-bg 1s ease-in-out infinite;
}


.active-ticket td:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.active-ticket td:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Accordion Styles */
.accordion-item {
  overflow: hidden;
}

.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
}

.accordion-content-closed {
  max-height: 0;
  opacity: 0;
}

.accordion-content-open {
  max-height: 9999px; /* Increased to handle very large content */
  opacity: 1;
}

.accordion-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Smooth transitions for accordion states */
.accordion-item .accordion-icon {
  transition: transform 0.2s ease-in-out;
}

.accordion-item:not(.accordion-open) .accordion-content {
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-item.accordion-open .accordion-content > div {
  padding-top: 1.5rem;
}

/* Mobile Navigation Styles */
.mobile-nav-open {
  animation: slideDown 0.2s ease-out forwards;
}

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

/* Mobile responsive improvements */
@media (max-width: 1023px) {
  /* Mobile navigation menu styling */
  #mobile-navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    z-index: 50;
  }
  
  /* Mobile navigation links */
  #mobile-navbar ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  
  #mobile-navbar li {
    width: 100%;
  }
  
  #mobile-navbar a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Logout button mobile styling */
  #mobile-navbar li:last-child {
    margin-top: 0.5rem;
    margin-left: 0;
  }
  
  /* Main content mobile adjustments */
  .relative.px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Fixed nav mobile adjustments */
  .fixed.py-3\.5.px-4 {
    left: 1rem;
    right: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Logo and title mobile sizing */
  .size-14 {
    width: 3rem;
    height: 3rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  /* Mobile table optimizations */
  table {
    font-size: 0.75rem; /* Make text smaller on mobile */
  }
  
  th, td {
    padding: 0.5rem 0.25rem !important; /* Reduce cell padding */
    white-space: nowrap; /* Prevent text wrapping initially */
  }
  
  /* Make table container scrollable horizontally */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  /* Ensure table headers stay sticky during horizontal scroll */
  thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(243, 244, 246) !important; /* Ensure background stays */
  }
  
  /* Improve button spacing in table cells */
  td button, td a {
    margin: 0.125rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Status badges mobile optimization */
  .inline-flex.items-center.gap-1\.5 {
    gap: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.625rem !important;
  }
  
  /* Form field mobile optimizations */
  .space-y-4 > * {
    margin-bottom: 0.75rem;
  }
  
  /* Search box mobile optimization */
  .max-w-md {
    max-width: 100%;
  }
  
  /* Filter buttons mobile layout */
  .flex.flex-row.gap-2.flex-wrap {
    gap: 0.5rem;
  }
  
  .flex.flex-row.gap-2.flex-wrap > * {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Small mobile devices */
@media (max-width: 639px) {
  .relative.px-8 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .fixed.py-3\.5.px-4 {
    left: 0.5rem;
    right: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .size-14 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .text-2xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  /* Mobile navigation adjustments for small screens */
  #mobile-navbar a {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Main content mobile spacing */
  .w-full.p-4 {
    padding: 0.75rem;
  }
  
  .mt-24 {
    margin-top: 5.5rem;
  }
  
  /* Very small screen table optimizations */
  table {
    font-size: 0.625rem; /* Even smaller text on very small screens */
  }
  
  th, td {
    padding: 0.25rem 0.125rem !important; /* Further reduce padding */
  }
  
  /* Hide less important columns on very small screens */
  .mobile-hide-sm {
    display: none !important;
  }
  
  /* Stack action buttons vertically on very small screens */
  td .flex.gap-1, td .flex.gap-2 {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  /* Section headers mobile optimization */
  .text-xl, .text-2xl {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }
  
  /* Button groups mobile optimization */
  .flex.gap-2 {
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .flex.gap-2 button, .flex.gap-2 a {
    font-size: 0.625rem;
    padding: 0.375rem 0.5rem;
  }
  
  /* Modal mobile optimization */
  .fixed.inset-0 .bg-white {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
}
