/*
 * Custom Design Accents for Scientific Research Materials Shop
 * Provides visual overlays, chemical formula styles, and laboratory gradients.
 */



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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

/* Molecule grid background */
.bg-molecule-pattern {
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/molecule-pattern.svg');
  background-repeat: repeat;
}

.bg-molecule-dark {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(30, 58, 138, 0.9)), url('../images/molecule-pattern.svg');
  background-repeat: repeat;
}

/* Premium glassware hover card styling */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Scientific Subscripts style */
.chemical-formula sub {
  font-size: 0.7em;
  vertical-align: sub;
  bottom: -0.2em;
}

/* Glowing lab element animation */
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  }
}

.lab-glow {
  animation: pulse-glow 3s infinite;
}

/* Gradient background headers */
.grad-header {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.grad-accent {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Responsive Table Wrapper */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Global Link Overrides to prevent default visited/unvisited purple colors */
a {
  color: inherit;
  text-decoration: none;
}
header nav a {
  color: #475569 !important; /* text-slate-600 */
  transition: color 0.15s ease-in-out;
}
header nav a:hover {
  color: #1e40af !important; /* primary blue */
}
header nav a.font-bold {
  color: #1e40af !important; /* active page color */
}
footer a {
  color: #94a3b8 !important; /* text-slate-400 */
  transition: color 0.15s ease-in-out;
}
footer a:hover {
  color: #ffffff !important; /* hover to white */
}

/* Premium glassware hover card styling */
.hover-scale {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

/* Premium Buttons & Controls */
.btn-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.2s ease-in-out !important;
}
.btn-gradient:hover {
  opacity: 0.95 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* Glassmorphism subtle effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Missing Tailwind Sizing, Positioning, and Flexbox utilities */
.flex-grow {
  flex-grow: 1 !important;
}
.w-32 {
  width: 8rem !important;
}
.h-32 {
  height: 8rem !important;
}
.bottom-0 {
  bottom: 0 !important;
}
.bottom-2 {
  bottom: 0.5rem !important;
}
.left-2 {
  left: 0.5rem !important;
}
.opacity-15 {
  opacity: 0.15 !important;
}
.translate-x-4 {
  transform: translateX(1rem) !important;
}
.translate-y-4 {
  transform: translateY(1rem) !important;
}
.translate-x-4.translate-y-4 {
  transform: translate(1rem, 1rem) !important;
}

/* Print Invoice Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }
  header, footer, .bg-blue-900, .btn, .print-hide, #mobile-menu-btn, #mobile-menu {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .bg-white, .bg-gray-50, .bg-gray-100 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    border-bottom: 1px solid #000000 !important;
    padding: 6px 12px !important;
  }
}

/* ==========================================================================
   Admin Panel Layout & Typography Overrides (Flashy & Organized)
   ========================================================================== */

/* 1. Restore missing lg: flex/width breakpoints from tailwind.css */
@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row !important;
  }
  .lg\:w-64 {
    width: 16rem !important;
    flex-shrink: 0 !important;
  }
  .lg\:block {
    display: block !important;
  }
  .lg\:hidden {
    display: none !important;
  }
}

/* 2. Sleek Sidebar Redesign */
#admin-sidebar {
  background-color: #0f172a !important; /* Slate 900 */
  border-right: 1px solid #1e293b !important;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
}
#admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem 1rem !important;
}
#admin-sidebar nav span {
  color: #475569 !important; /* Slate 500 */
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  opacity: 0.8;
  display: block;
}
#admin-sidebar nav span:first-of-type {
  margin-top: 0 !important;
}
#admin-sidebar nav a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  color: #94a3b8 !important; /* Slate 400 */
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}
#admin-sidebar nav a:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}
#admin-sidebar nav a.bg-gray-800,
#admin-sidebar nav a[class*="bg-gray-800"] {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* 3. Dashboard Metrics Cards Polish */
.bg-white.border.border-gray-200.rounded-xl {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.015);
}
.bg-white.border.border-gray-200.rounded-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.06), 0 4px 12px -4px rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1 !important;
}

/* 4. Table Row Transitions & Aesthetics */
tbody.divide-y tr {
  transition: background-color 0.15s ease;
}
tbody.divide-y tr:hover {
  background-color: #f8fafc !important;
}

/* 5. Custom status badge tweaks */
.bg-blue-100.text-blue-800, 
[class*="bg-blue-100"] {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  font-weight: 700 !important;
}

/* 6. Dynamic Fluid Heights on Mobile Screens (max-width: 767px) */
@media (max-width: 767px) {
  .h-96 {
    height: 16rem !important; /* Scale product details image down from 384px to 256px */
  }
  .h-48 {
    height: 10rem !important; /* Scale catalog grid images from 192px to 160px */
  }
  .h-44 {
    height: 9rem !important;
  }
  .h-40 {
    height: 8rem !important;
  }
  .h-32 {
    height: 6rem !important;
  }
}

