/* BizERP Custom Styles */

:root {
  --color-primary: #2563eb;
}

/* Form input base style */
.form-input {
  @apply w-full px-4 py-3 border border-gray-200 dark:border-gray-600 rounded-xl bg-gray-50 dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all text-sm;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

.dash-card { animation: fadeInUp 0.4s ease both; }

/* Mobile sidebar */
@media (max-width: 1023px) {
  #shopSidebar {
    position: fixed;
    height: 100%;
    z-index: 30;
  }
}

/* Print styles */
@media print {
  .no-print, nav, aside, header, .action-btn { display: none !important; }
  body { background: white !important; }
  * { color: black !important; }
}

/* PWA install banner */
#pwaInstallBanner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: slideInRight 0.4s ease;
}

/* Dark mode transitions */
* { transition: background-color 0.2s ease, border-color 0.2s ease; }

/* Table hover */
tbody tr { transition: background-color 0.15s ease; }

/* Sidebar active */
.shopNavBtn.active, .superNavBtn.active {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast container */
#toastContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
