/* BeatGuard - Dark UX Modernism */

/* CSS Variables for Modern Minimalist Design */
:root {
  --absolute-black: #000000;
  --deep-black: #0a0a0a;
  --surface-black: #1a1a1a;
  --elevated-black: #2a2a2a;
  
  --primary-blue: #06b6d4;
  --primary-purple: #8b5cf6;
  --primary-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  
  --glass-white: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  --blur-amount: 40px;
  --glow-intensity: 0.3;
}

/* Global white flash prevention */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

/* Style checkmarks and emojis to be white with glow */
.feature-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
}

/* Force upload section transparency */
.upload-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.upload-section.fade-in {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

div.upload-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Allow text selection globally */
* {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Allow text selection in form inputs */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Force all interactive elements to use our color scheme */
button, .btn, input[type="button"], input[type="submit"], input[type="reset"], a.btn {
  background-color: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25) !important;
  -webkit-tap-highlight-color: transparent !important;
}

button:active, .btn:active, input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, a.btn:active {
  background-color: rgba(59, 130, 246, 0.4) !important;
  border-color: rgba(96, 165, 250, 0.9) !important;
  color: #ffffff !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

button:focus, .btn:focus, input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, a.btn:focus {
  background-color: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.7) !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 0 18px rgba(59, 130, 246, 0.35) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--absolute-black);
  color: var(--text-primary);
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  padding-top: 70px;
  letter-spacing: -0.01em;
}

/* Background is now handled by FloatingLines component */
/* Old animated gradient background removed - replaced with FloatingLines */

/* Typography Architecture */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  margin-bottom: 0.875rem;
}

p {
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
}

/* Navbar - Floating Glass Panel */
.navbar {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.navbar-brand:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Animated Socket Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.socket {
  width: 40px;
  height: 40px;
  position: relative;
}

.circle {
  background: #ffffff;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.gel {
  height: 4px;
  width: 4px;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
}

.center-gel {
  margin-left: -2px;
  margin-top: -2px;
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.c1 {
  margin-left: -6px;
  margin-top: -2px;
}

.c2 {
  margin-left: -4px;
  margin-top: -6px;
}

.c3 {
  margin-left: 0px;
  margin-top: -6px;
}

.c4 {
  margin-left: 2px;
  margin-top: -2px;
}

.c5 {
  margin-left: -4px;
  margin-top: 2px;
}

.c6 {
  margin-left: 0px;
  margin-top: 2px;
}

.c7 {
  margin-left: -8px;
  margin-top: -6px;
}

.c8 {
  margin-left: 4px;
  margin-top: -6px;
}

.c9 {
  margin-left: -2px;
  margin-top: 5px;
}

.c10 {
  margin-left: -8px;
  margin-top: 2px;
}

.c11 {
  margin-left: 4px;
  margin-top: 2px;
}

.c12 {
  margin-left: -2px;
  margin-top: -9px;
}

.c13 {
  margin-left: -6px;
  margin-top: -9px;
}

.c14 {
  margin-left: 2px;
  margin-top: -9px;
}

.c15 {
  margin-left: -6px;
  margin-top: 5px;
}

.c16 {
  margin-left: 2px;
  margin-top: 5px;
}

.c17 {
  margin-left: -10px;
  margin-top: -2px;
}

.c18 {
  margin-left: 6px;
  margin-top: -2px;
}

.c19 {
  margin-left: -8px;
  margin-top: -12px;
}

.c20 {
  margin-left: 4px;
  margin-top: -12px;
}

.c21 {
  margin-left: 0px;
  margin-top: -12px;
}

.c22 {
  margin-left: -4px;
  margin-top: -12px;
}

.c23 {
  margin-left: -8px;
  margin-top: 9px;
}

.c24 {
  margin-left: 4px;
  margin-top: 9px;
}

.c25 {
  margin-left: 0px;
  margin-top: 9px;
}

.c26 {
  margin-left: -4px;
  margin-top: 9px;
}

.c28 {
  margin-left: -12px;
  margin-top: -6px;
}

.c29 {
  margin-left: -12px;
  margin-top: 2px;
}

.c30 {
  margin-left: 6px;
  margin-top: 5px;
}

.c31 {
  margin-left: -10px;
  margin-top: -9px;
}

.c32 {
  margin-left: -14px;
  margin-top: -2px;
}

.c33 {
  margin-left: 8px;
  margin-top: -6px;
}

.c34 {
  margin-left: 8px;
  margin-top: 2px;
}

.c35 {
  margin-left: -10px;
  margin-top: 5px;
}

.c36 {
  margin-left: 6px;
  margin-top: -9px;
}

.c37 {
  margin-left: 10px;
  margin-top: -2px;
}

.r1 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.2s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.2s;
}

.r2 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.4s;
}

.r3 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.6s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.6s;
}

.r1 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.2s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.2s;
}

.r2 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.4s;
}

.r3 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.6s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.6s;
}

@keyframes pulse00 {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(0.01);
    transform: scale(0.01);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes fade00 {
  0% {
    background: #ffffff;
  }

  50% {
    background: #1e40af;
  }

  100% {
    background: #ffffff;
  }
}

.logo-text {
  color: #ffffff;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Logout Button Fix */
.dropdown-item[type="submit"] {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

.dropdown-item[type="submit"]:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.dropdown-item[type="submit"]:active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Login Form Fixes */
#loginForm {
  position: relative;
  z-index: 1;
}

#loginBtn {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  transition: all 0.3s ease !important;
}

#loginBtn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

#loginBtn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2) !important;
}

#loginBtn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

/* Login Form Input Styling */
#loginForm input[type="text"], 
#loginForm input[type="password"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  transition: all 0.3s ease !important;
}

#loginForm input[type="text"]:focus, 
#loginForm input[type="password"]:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2) !important;
  outline: none !important;
}

#loginForm input[type="text"]::placeholder, 
#loginForm input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

#loginForm label {
  color: #ffffff !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}

.nav-link {
  color: #ffffff !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}


.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons - Energy Emitting */
.btn-beatguard {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #ffffff;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.15), inset 0 0 15px rgba(59, 130, 246, 0.1);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}


.btn-beatguard:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(96, 165, 250, 0.9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(96, 165, 250, 0.2);
  text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
}

.btn-beatguard:active {
  background: rgba(59, 130, 246, 0.5);
  border-color: rgba(96, 165, 250, 1);
  color: #ffffff;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6), 0 0 35px rgba(59, 130, 246, 0.4), inset 0 0 25px rgba(96, 165, 250, 0.3);
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9);
}

.btn-beatguard:focus {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(96, 165, 250, 0.8);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.4);
  outline: none;
}

.btn-outline-beatguard {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.7);
  color: #ffffff;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25), inset 0 0 10px rgba(59, 130, 246, 0.05);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}


.btn-outline-beatguard:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(147, 197, 253, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2), inset 0 0 15px rgba(96, 165, 250, 0.15);
}

.btn-outline-beatguard:active {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(147, 197, 253, 1);
  color: #ffffff;
  transform: translateY(0);
  box-shadow: 0 2px 15px rgba(59, 130, 246, 0.5), 0 0 35px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(96, 165, 250, 0.2);
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9);
}

.btn-outline-beatguard:focus {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.8);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.3);
  outline: none;
}

/* Cards - Glassmorphic Panels */
.card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}


.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Forms - Floating Inputs */
.form-control {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(30, 64, 175, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-control:focus {
  background: rgba(26, 26, 26, 0.9);
  border-color: #1e40af;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
  outline: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

/* Tables - Clean Data */
.table-dark {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.table-dark th {
  background: rgba(30, 64, 175, 0.1);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.2);
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.table-dark td {
  border: none;
  padding: 1rem;
  color: #ffffff;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.table-dark tbody tr:hover {
  background: rgba(30, 64, 175, 0.05);
}

.table-dark tbody tr:hover td {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Dropdown - Clean Menu */
.dropdown-menu {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 400;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dropdown-item:hover {
  background: rgba(30, 64, 175, 0.1);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Alert - Clean Feedback */
.alert-danger {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid rgba(30, 64, 175, 0.3);
  color: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Loading Overlay - Clean */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: var(--text-primary);
  text-align: center;
  flex-direction: column;
}

#loading-overlay.active {
  display: flex;
}

/* Animated Bar Loader - Clean */
.loader {
  position: relative;
  margin-bottom: 2rem;
}

.bar {
  width: 8px;
  height: 60px;
  background: var(--primary-blue);
  display: inline-block;
  transform-origin: bottom center;
  border-radius: 4px 4px 0 0;
  animation: barPulse 1.2s ease-in-out infinite;
  margin: 0 2px;
}

.bar1 { animation-delay: 0.1s; }
.bar2 { animation-delay: 0.2s; }
.bar3 { animation-delay: 0.3s; }
.bar4 { animation-delay: 0.4s; }
.bar5 { animation-delay: 0.5s; }
.bar6 { animation-delay: 0.6s; }
.bar7 { animation-delay: 0.7s; }
.bar8 { animation-delay: 0.8s; }

@keyframes barPulse {
  0%, 100% {
    transform: scaleY(0.1);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Utility Classes */
.text-beatguard {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.bg-beatguard {
  background: var(--primary-blue) !important;
}

.border-beatguard {
  border-color: var(--primary-blue) !important;
}

/* Feature Card Headings */
.feature-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .btn-beatguard {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-content h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  
  .hero-content h3 {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Focus States for Accessibility */
.btn-beatguard:focus,
.btn-outline-beatguard:focus,
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Selection Styling */
::selection {
  background: rgba(30, 64, 175, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(30, 64, 175, 0.3);
  color: #ffffff;
}

/* Prevent white flash on button press */
* {
  -webkit-tap-highlight-color: transparent;
}

button, .btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Override Bootstrap button defaults */
.btn:focus,
.btn:active,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn.focus:active {
  background-color: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Prevent Bootstrap button white flash */
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active {
  background-color: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
}

/* Override any white backgrounds */
.btn-primary:active,
.btn-primary:focus,
.btn-primary:active:focus {
  background-color: rgba(30, 64, 175, 0.2) !important;
  border-color: rgba(30, 64, 175, 0.5) !important;
  color: #ffffff !important;
}

/* Comprehensive button flash prevention */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}

/* Override ALL button states */
.btn:active,
.btn:focus,
.btn:active:focus,
.btn.active,
.btn.active:focus,
.btn.active:active,
.btn.active:active:focus,
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active:focus,
.btn:not(:disabled):not(.disabled).active:focus {
  background-color: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
  box-shadow: inherit !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Specific overrides for our custom buttons */
.btn-beatguard:active,
.btn-beatguard:focus,
.btn-beatguard:active:focus {
  background: rgba(59, 130, 246, 0.5) !important;
  border-color: rgba(96, 165, 250, 1) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6), 0 0 35px rgba(59, 130, 246, 0.4), inset 0 0 25px rgba(96, 165, 250, 0.3) !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9) !important;
}

.btn-outline-beatguard:active,
.btn-outline-beatguard:focus,
.btn-outline-beatguard:active:focus {
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(147, 197, 253, 1) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
  box-shadow: 0 2px 15px rgba(59, 130, 246, 0.5), 0 0 35px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(96, 165, 250, 0.2) !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9) !important;
}

/* Prevent any white backgrounds on all elements */
*:active,
*:focus,
*:active:focus {
  -webkit-tap-highlight-color: transparent !important;
}

/* Override Bootstrap's default button colors */
.btn-primary {
  background-color: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.15), inset 0 0 15px rgba(59, 130, 246, 0.1) !important;
}

.btn-primary:hover {
  background-color: rgba(59, 130, 246, 0.4) !important;
  border-color: rgba(96, 165, 250, 0.9) !important;
  color: #ffffff !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(96, 165, 250, 0.2) !important;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:active:focus {
  background-color: rgba(59, 130, 246, 0.5) !important;
  border-color: rgba(96, 165, 250, 1) !important;
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6), 0 0 35px rgba(59, 130, 246, 0.4), inset 0 0 25px rgba(96, 165, 250, 0.3) !important;
}