/* ====================================
   VUAE WARRANTY SYSTEM - CSS Stylesheet
   ==================================== */

.warranty-wrapper {
  min-height: calc(100vh - 80px);
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #0e0e12 0%, #050506 100%);
}

/* Hide dev gear by default; JS shows it after login */
.warranty-wrapper ~ .dev-settings-trigger {
  display: none;
}

/* Fine-grain noise texture overlay for a physical premium textured look */
.warranty-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 1;
}

/* Background Blurred Glow Shapes */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: floatGlow 16s infinite alternate ease-in-out;
}

.bg-glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.22) 0%, rgba(255, 45, 45, 0) 70%);
  top: -15%;
  left: -10%;
  animation-duration: 18s;
}

.bg-glow-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.bg-glow-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0) 70%);
  top: 25%;
  right: 5%;
  animation-duration: 15s;
  animation-delay: -3s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, -60px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-30px, 30px) scale(0.9) rotate(360deg);
  }
}

.warranty-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Developer Settings Floating Gear */
.dev-settings-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-normal);
}

.dev-settings-trigger:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(255, 45, 45, 0.3);
}

/* Dev Settings Modal */
.dev-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(15px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.dev-modal.active {
  display: flex;
  opacity: 1;
}

/* Glass Cards & Containers */
.warranty-glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Auth Section Styles - Premium Responsive Split Card Layout */
.auth-gate {
  max-width: 960px; /* Wider for desktop split screen */
  width: 100%;
  margin: 0 auto;
  min-height: 580px;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 12, 0.45); /* Translucent dark glass */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row; /* Split screen layout */
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card {
  display: flex;
  width: 100%;
  flex-direction: row;
}

/* LEFT PANEL (Desktop marketing panel) */
.auth-left-panel {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  display: flex;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem;
  background: #060608;
}

.auth-left-glow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 45, 45, 0.28) 0%, rgba(147, 51, 234, 0.16) 40%, rgba(0, 0, 0, 0) 80%);
  filter: blur(30px);
  z-index: 1;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.auth-left-logo img {
  height: 32px;
  width: auto;
}

.marketing-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 45, 45, 0.12);
  border: 1px solid rgba(255, 45, 45, 0.25);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.marketing-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.marketing-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* RIGHT PANEL (Forms container) */
.auth-right-panel {
  flex: 1.3;
  position: relative;
  display: flex;
  flex-direction: column;
}

.auth-card-content {
  position: relative;
  z-index: 5;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.auth-logo-mobile {
  display: none;
}

.auth-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: left;
  letter-spacing: -0.02em;
}

.auth-header-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Labels above inputs matching the desktop mockup */
.auth-input-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Inputs styling */
.form-group-pill {
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-control-pill {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm); /* 8px borders like the desktop mockup */
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control-pill:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 45, 45, 0.35);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.15);
}

.form-control-pill::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

/* Submit button styling */
.btn-pill {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm); /* Match 8px inputs */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 45, 45, 0.2);
  text-align: center;
}

.btn-pill:hover {
  background: #ff4545;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 45, 45, 0.35);
}

.btn-pill:disabled {
  background: var(--card-border);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Forgot Password link */
.auth-forgot-pw {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-forgot-pw a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-forgot-pw a:hover {
  color: var(--primary);
}

/* Or separator */
.auth-divider-pill {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.auth-divider-pill::before,
.auth-divider-pill::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider-pill span {
  padding: 0 1rem;
}

/* Social Login Row */
.auth-social-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-social-row .google {
  width: 100%;
  border-radius: var(--radius-sm);
  height: auto;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-social-row .google:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 45, 45, 0.3);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.12);
}

/* Switch Link at the bottom */
.auth-switch-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.auth-switch-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-switch-link a:hover {
  color: #ff4545;
  text-decoration: underline;
}

/* View panels transitions */
.auth-view-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.4s ease;
}

.auth-view-panel.active {
  display: flex;
}

/* Background waves inside the card (hidden on desktop) */
.auth-card-wave {
  display: none;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 860px) {
  /* On medium screens, collapse left panel */
  .auth-left-panel {
    display: none;
  }
  
  .auth-gate {
    max-width: 440px;
  }
  
  .auth-right-panel {
    flex: 1;
  }
  
  .auth-logo-mobile {
    display: block;
    margin-bottom: 2rem;
  }
  
  .auth-logo-mobile img {
    height: 28px;
  }
}

@media (max-width: 500px) {
  /* On mobile screens, display as standard glass card container */
  .auth-gate {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin: 1rem 0 2.5rem;
    position: relative;
    z-index: 10;
  }

  .auth-card {
    width: 100%;
    height: auto;
  }

  .auth-card-wave {
    display: block; /* Show curves on mobile only */
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.22;
    mix-blend-mode: screen;
    z-index: 1;
  }

  .auth-card-wave.wave-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(255, 45, 45, 0) 70%);
    top: -5%;
    right: -20%;
  }

  .auth-card-wave.wave-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #f97316 0%, rgba(249, 115, 22, 0) 70%);
    top: 20%;
    left: -25%;
  }

  .auth-card-wave.wave-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #9333ea 0%, rgba(147, 51, 234, 0) 70%);
    bottom: -5%;
    right: -10%;
  }

  .auth-card-content {
    padding: 3.5rem 2rem 2rem;
  }

  .auth-header-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .auth-header-desc {
    display: none; /* Hide subtitle on mobile to save vertical space */
  }

  /* Pill-shaped inputs on mobile */
  .form-control-pill {
    padding: 1rem 1.75rem;
    border-radius: 50px;
  }

  .btn-pill {
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
  }

  .auth-input-label {
    display: none; /* Hide labels on mobile to match pill-placeholder mockup */
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--card-border);
}

.auth-divider:not(:empty)::before {
  margin-right: .5em;
}

.auth-divider:not(:empty)::after {
  margin-left: .5em;
}

.btn-google {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--glass-border);
  width: 100%;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Dashboard Views (Hidden by default) */
.dashboard-view {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.dashboard-view.active {
  display: block;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1.5rem;
}

.dashboard-user-info h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.dashboard-user-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Customer Grid Layout */
.customer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }
}

.warranty-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .warranty-list {
    grid-template-columns: 1fr;
  }
}

/* Warranty Item Cards */
.warranty-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.warranty-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.warranty-item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.warranty-item-product {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.warranty-item-serial {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.warranty-item-date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.status-badge.pending {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  grid-column: span 2;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Staff Stats Bar */
.staff-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .staff-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .staff-stats-grid {
    grid-template-columns: 1fr;
  }
}

.staff-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

.staff-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.staff-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.staff-stat-icon.total { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.staff-stat-icon.pending { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.staff-stat-icon.approved { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.staff-stat-icon.rejected { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.staff-stat-info h4 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.staff-stat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Staff Filters Bar */
.staff-filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .staff-filters-bar {
    flex-direction: column;
  }
}

.staff-search-wrapper {
  flex: 1;
  position: relative;
}

.staff-search-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.staff-search-wrapper .form-control {
  padding-left: 2.75rem;
}

/* Staff Table & List View */
.staff-warranties-container {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.staff-table th {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.staff-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.staff-table tr:last-child td {
  border-bottom: none;
}

.staff-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.staff-customer-cell {
  display: flex;
  flex-direction: column;
}

.staff-customer-name {
  font-weight: 600;
  color: var(--text);
}

.staff-customer-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Table Actions */
.staff-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-table-action {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-table-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-table-action.approve:hover {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.btn-table-action.reject:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.btn-table-action.delete:hover {
  color: var(--primary);
  border-color: rgba(255, 45, 45, 0.3);
  background: rgba(255, 45, 45, 0.1);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.2);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Page Loader override inside widgets */
.widget-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 45, 45, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Dropdown Menu Theme Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.custom-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.custom-dropdown-trigger.active,
.custom-dropdown-trigger:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.2);
}

.custom-dropdown-trigger i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown-trigger.active i {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-dropdown-options {
  position: absolute;
  top: 115%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.custom-dropdown-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-dropdown-option {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-dropdown-option:hover {
  background: rgba(255, 45, 45, 0.08);
  color: var(--text);
  padding-left: 1.5rem; /* Staggered slide interaction */
}

.custom-dropdown-option.selected {
  background: rgba(255, 45, 45, 0.15);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

/* Input with action button (QR scanner icon) */
.input-with-btn {
  position: relative;
  width: 100%;
}

.input-action-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 5;
}

.input-action-btn:hover {
  background: rgba(255, 45, 45, 0.1);
  color: var(--primary);
  border-color: rgba(255, 45, 45, 0.25);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.2);
}

/* Custom Datepicker Calendar styles */
.custom-datepicker {
  position: relative;
  width: 100%;
}

.custom-datepicker-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.custom-datepicker-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.custom-datepicker-trigger.active,
.custom-datepicker-trigger:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.2);
}

.custom-datepicker-trigger i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.custom-datepicker-trigger.active i {
  color: var(--primary);
}

.custom-datepicker-calendar {
  position: absolute;
  top: 115%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-datepicker-calendar.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
  color: var(--primary);
  background: rgba(255, 45, 45, 0.08);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.calendar-day:hover {
  background: rgba(255, 45, 45, 0.08);
  color: var(--text);
}

.calendar-day.other-month {
  color: var(--text-dim);
  opacity: 0.35;
}

.calendar-day.today {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.calendar-day.selected {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.35);
}

/* ====================================
   Mobile Compatibility Adjustments
   ==================================== */
@media (max-width: 768px) {
  .warranty-wrapper {
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 6.5rem; /* responsive padding with clearance for navbars */
  }

  .warranty-glass-card {
    padding: 1.5rem;
  }

  .staff-warranties-container {
    border: none;
    background: none;
    overflow-x: visible;
  }

  .staff-table {
    min-width: 0;
  }

  .staff-table thead {
    display: none;
  }

  .staff-table, 
  .staff-table tbody, 
  .staff-table tr, 
  .staff-table td {
    display: block;
    width: 100%;
  }

  .staff-table tr {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .staff-table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .staff-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 1rem;
    justify-content: flex-end;
  }

  .staff-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
  }

  .staff-customer-cell {
    align-items: flex-end;
    text-align: right;
  }
}

/* ====================================
   SETTINGS VIEW & DELETION BANNER STYLES
   ==================================== */

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Deletion Notice Banner Amber Glow */
#deletion-restore-banner {
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.04) !important;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.08);
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.25);
  }
  100% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.45);
  }
}

/* Magic Link toggle styling */
#magic-link-toggle-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

#magic-link-toggle-text:hover {
  color: var(--primary);
}

/* Dashboard header mobile responsiveness */
@media (max-width: 576px) {
  .dashboard-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
  }
  .dashboard-user-info h2 {
    font-size: 1.6rem !important;
  }
}

.dashboard-header button,
.dashboard-header .btn-secondary {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

