@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap');

/* Modern Premium Palette */
:root {
  --color-primary: #2563eb; /* Royal blue‑600 */
  --color-primary-light: rgba(37, 99, 235, 0.1);
  --color-accent: #06b6d4; /* Cyan‑500 */
  --color-bg: #f8fafc; /* Slate-50 background */
  --color-text: #0f172a; /* Slate-900 text */
  --color-text-muted: #64748b; /* Slate-500 text */
  --color-badge-bg: #ef4444; /* Red-500 */
  --color-success: #10b981; /* Emerald-500 */
  --border-radius-xl: 1rem;
  --border-radius-lg: 0.75rem;
}

body {
  background-color: var(--color-bg) !important;
  color: var(--color-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Premium Card & Containers with Glassmorphism cues */
.bg-white.rounded-xl {
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 2px 4px -2px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.bg-white.rounded-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
}

/* Premium Navigation Links & Sidebar Items */
.sidebar-link {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: inset 4px 0 0 0 #ffffff;
  padding-left: 1rem;
}

/* Global Form Input Styling (Sleeker & More Premium Borders) */
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"], select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff;
  font-family: inherit;
  border-radius: var(--border-radius-lg);
}

input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  background-color: #ffffff;
  outline: none;
}

/* Premium Button Transitions & Click Actions */
button, a.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius-lg);
}

button:active {
  transform: scale(0.96) !important;
}

/* Tab bar */
.tab-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--border-radius-lg);
  padding: 0.25rem;
  gap: 0.25rem;
  overflow: hidden;
}

.tab-bar button {
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: calc(var(--border-radius-lg) - 0.25rem);
  transition: all 0.2s ease;
}

.tab-bar button.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05) !important;
}

.tab-bar button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text);
}

/* Low‑stock badge */
.low-stock-badge {
  background: var(--color-badge-bg);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Modal backdrop & glassmorphism */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #ffffff;
  border-radius: var(--border-radius-xl);
  max-width: 32rem;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
