/* Custom CSS overrides & Dark mode enhancements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Status badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-available { background-color: #d1fae5; color: #065f46; }
.badge-assigned { background-color: #dbeafe; color: #1e40af; }
.badge-returned { background-color: #e0e7ff; color: #3730a3; }
.badge-repair { background-color: #fef3c7; color: #92400e; }
.badge-lost { background-color: #fee2e2; color: #991b1b; }

.dark .badge-available { background-color: rgba(6, 95, 70, 0.3); color: #6ee7b7; }
.dark .badge-assigned { background-color: rgba(30, 64, 175, 0.3); color: #93c5fd; }
.dark .badge-returned { background-color: rgba(55, 48, 163, 0.3); color: #c7d2fe; }
.dark .badge-repair { background-color: rgba(146, 64, 14, 0.3); color: #fde047; }
.dark .badge-lost { background-color: rgba(153, 27, 27, 0.3); color: #fca5a5; }

/* Pulse animation for pending status */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.animate-pulse-subtle {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Lamp Interactive UI Theme */
:root {
  --bg-color: #121417;
  --lamp-matte: #e8e2d9;
  --lamp-shade: #f5f0e6;
  --lamp-base: #d1ccc2;
  --glow-color: rgba(255, 214, 110, 0.3);
  --accent-color: #d4a373;
  --on: 0;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.lamp-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  overflow-x: hidden;
  transition: background var(--transition);
  position: relative;
}

body.lamp-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, var(--glow-color), transparent 70%);
  opacity: var(--on);
  transition: opacity var(--transition);
  pointer-events: none;
}

.lamp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  padding: 2rem 1rem;
  z-index: 1;
}

.lamp-wrapper {
  position: relative;
  width: 280px;
  height: 380px;
  display: flex;
  justify-content: center;
  user-select: none;
}

.lamp-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lamp-shade {
  fill: var(--lamp-shade);
  transition: fill var(--transition);
}

[data-on="true"] .lamp-shade {
  fill: #fff;
  filter: drop-shadow(0 0 30px rgba(255, 255, 200, 0.4));
}

.lamp-base {
  fill: var(--lamp-base);
}

.inner-glow {
  fill: #ffdb8a;
  opacity: 0;
  filter: blur(15px);
  transition: opacity var(--transition);
}

[data-on="true"] .inner-glow {
  opacity: 0.6;
}

.cord-line {
  stroke: #777;
  stroke-width: 2;
}

.cord-bead {
  fill: var(--accent-color);
  cursor: grab;
}

.cord-hit {
  cursor: grab;
}

.login-form {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);

  transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-form.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #121417;
  background: linear-gradient(
    135deg,
    #bf953f,
    #fcf6ba,
    #b38728,
    #fcf6ba,
    #aa771c
  );
  transition: 0.3s;
}

.login-btn:hover {
  transform: scale(1.02);
  background: var(--lamp-shade);
  box-shadow: 0 6px 20px rgba(191, 149, 63, 0.35);
}

