/* MeasureX - Drishya Technologies Industrial Automation Design System */
/* Theme: Luxury Industrial Golden & Black */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #08090C;
  --bg-secondary: #101217;
  --bg-tertiary: #171A21;
  --bg-card: rgba(20, 24, 33, 0.85);
  --bg-card-hover: rgba(28, 33, 45, 0.95);
  
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-metallic: #E5B80B;
  --gold-dark: #997A15;
  --gold-amber: #FFBF00;
  
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --gold-glow-intense: 0 0 35px rgba(229, 184, 11, 0.55);
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-border-focus: rgba(212, 175, 55, 0.7);

  --text-white: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #F5D061;

  --accent-blue: #0EA5E9;
  --accent-green: #10B981;
  --accent-red: #EF4444;

  --border-dark: #1E232F;
  --font-heading: 'Rajdhani', 'Orbitron', sans-serif;
  --font-tech: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Industrial Grid Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Gold Vignette */
.ambient-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(8, 9, 12, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Typography Utility Classes */
.font-tech {
  font-family: var(--font-tech);
  letter-spacing: 1px;
}

.font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF0B8 0%, #D4AF37 50%, #AA8012 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-silver-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 50%, #64748B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Premium Buttons */
.btn-gold {
  background: linear-gradient(135deg, #E5B80B 0%, #D4AF37 50%, #B8860B 100%);
  color: #08090C;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid #FFDF73;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #FFDF73 0%, #E5B80B 50%, #C59B16 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.75px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
  border-color: #FFDF73;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.btn-dark {
  background: var(--bg-tertiary);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-dark:hover {
  background: #232834;
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* Glowing Border Pill Tags */
.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-subtle {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #08090C;
}

::-webkit-scrollbar-thumb {
  background: #262B37;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Industrial Corner Accents */
.tech-corner {
  position: relative;
}

.tech-corner::before,
.tech-corner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.tech-corner::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.tech-corner::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

/* Pulse animation for live indicators */
@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  display: inline-block;
  animation: goldPulse 2s infinite;
}

/* Form Controls with Gold Focus */
.input-dark {
  width: 100%;
  background: #0C0E13;
  border: 1px solid #242A38;
  color: #F8FAFC;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-dark:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  background: #11141B;
}

.input-dark::placeholder {
  color: #525E75;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #10131A;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Navigation Link Effects */
.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #CBD5E1;
  transition: color 0.2s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #F5D061);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #141822;
  border-left: 4px solid var(--gold-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Interactive Tabs & Category Pills */
.filter-pill {
  background: #12151D;
  border: 1px solid #232938;
  color: #94A3B8;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: #1A1F2B;
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.4);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 134, 11, 0.15) 100%);
  color: #FFDF73;
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  font-weight: 600;
}

/* Sub-category Pill Style */
.sub-pill {
  background: rgba(15, 18, 26, 0.8);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  color: #CBD5E1;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-pill:hover,
.sub-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #FFDF73;
}

/* Tables in Admin and Spec Modals */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tech-table th {
  background: #151A24;
  color: var(--gold-light);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.tech-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1A202C;
  color: #CBD5E1;
}

.tech-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

/* Industrial Metric Counter Card */
.metric-card {
  background: linear-gradient(145deg, #12151D 0%, #0D0F15 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ================= SATISFIED CUSTOMERS MARQUEE SCROLL ================= */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.client-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.client-marquee-track-1 {
  display: flex;
  width: max-content;
  animation: marquee-left 38s linear infinite;
}

.client-marquee-track-2 {
  display: flex;
  width: max-content;
  animation: marquee-right 42s linear infinite;
}

.client-marquee-wrapper:hover .client-marquee-track-1,
.client-marquee-wrapper:hover .client-marquee-track-2 {
  animation-play-state: paused;
}

.client-card-item {
  flex-shrink: 0;
  width: 270px;
  background: rgba(13, 16, 23, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0.65rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.client-card-item:hover {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(22, 28, 40, 0.95);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.25);
}

/* ================= PRODUCT PAGE VERTICAL SIDEBAR STYLES ================= */
.sidebar-category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: #CBD5E1;
  font-size: 0.825rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-category-btn:hover {
  background: rgba(28, 34, 48, 0.9);
  border-color: rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  transform: translateX(3px);
}

.sidebar-category-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(153, 122, 21, 0.15) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.sidebar-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: rgba(13, 16, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-size: 0.78rem;
  text-align: left;
  transition: all 0.18s ease;
  cursor: pointer;
}

.sidebar-sub-btn:hover {
  background: rgba(24, 29, 42, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  color: #F1F5F9;
  transform: translateX(2px);
}

.sidebar-sub-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--gold-primary);
  font-weight: 600;
}

.sidebar-brand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-brand-btn:hover {
  background: rgba(25, 30, 42, 0.9);
  border-color: rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
}

.sidebar-brand-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(20, 24, 34, 0.8) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

