@import "tailwindcss";

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* Basic body styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Tailwind gray-100 */
}
/* Add some subtle animation */
tbody tr {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Custom scrollbar for table container if needed */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Style for loading indicator */
#loadingIndicator {
    display: flex; /* Hidden by default, shown via JS */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-size: 1.125rem; /* text-lg */
    color: #6b7280; /* gray-500 */
}

/* Animation for new orders being added to the top */
.new-order-animation {
    animation: newOrderHighlight 1s ease-out forwards;
}

@keyframes newOrderHighlight {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: transparent; /* No highlight at end */
    }
}

/* Ensure the animation delay works for new orders */
.new-order-animation:nth-child(1) {
    animation-delay: 0s;
}
.new-order-animation:nth-child(2) {
    animation-delay: 0.05s;
}
.new-order-animation:nth-child(3) {
    animation-delay: 0.1s;
}
/* Add more if you expect more than 3 new orders at once */
