body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.sidebar-title {
  font-family: "Capture Smallz", sans-serif; /* Corrected Name */
  /* Add any additional styling if needed */
}

.welcome-message {
  font-family: "Capture Smallz", sans-serif; /* Corrected Name */
  /* Add any additional styling if needed */
}

/* Font definitions for the MyRacing App */
@font-face {
  font-family: 'CaptureSmallz';
  src: url(/e29ae9794c8a1fcbca56.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Show fallback font immediately while loading */
}

/* Racing-style text styling */
.racing-font {
  font-family: 'CaptureSmallz', 'Impact', 'Haettenschweiler', sans-serif;
  letter-spacing: 1px;
  font-weight: bold;
}

.racing-text {
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  position: relative;
  display: inline-block;
  padding: 0 5px;
}

.racing-text::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: red;
  transform: skew(-15deg);
}
.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================= */
/* FIX FOR BLURRY INPUT FIELDS - TARGETED APPROACH */
/* ============================================= */

/* ONLY remove blur from MUI input field borders (fieldsets) */
.MuiOutlinedInput-notchedOutline,
fieldset.MuiOutlinedInput-notchedOutline {
  /* Remove the problematic blur that was making text unreadable */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Ensure input text itself is crisp */
.MuiInputBase-input,
.MuiOutlinedInput-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  /* No blur on the actual input elements */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  
  /* Ensure text is readable */
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Remove blur from buttons ONLY if they're causing issues */
.MuiButton-root.MuiButton-contained,
.MuiButton-root.MuiButton-outlined {
  /* Buttons can keep their glassmorphic effect if using opacity */
  /* Only remove if text is blurry */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ============================================= */
/* PRESERVE GLASSMORPHIC DESIGN */
/* ============================================= */

/* Glass panels should use opacity-based glass effect, not blur */
.glass-panel,
.login-panel,
.form-container {
  /* Keep the glassmorphic look without blur */
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

/* Input containers should have subtle background */
.MuiTextField-root .MuiOutlinedInput-root {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(26, 43, 99, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.MuiTextField-root .MuiOutlinedInput-root:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(26, 43, 99, 0.3);
}

.MuiTextField-root .MuiOutlinedInput-root.Mui-focused {
  background: rgba(255, 255, 255, 0.95);
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* Labels should be visible */
.MuiInputLabel-root {
  background-color: white;
  padding: 0 4px;
  color: rgba(0, 0, 0, 0.6);
}

/* FIX FOR LOGIN/REGISTER PAGE LABEL POSITIONING */

/* Fix non-shrunk label position (when input is empty) */
.MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Center the label properly in the input field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  z-index: 1;
}

/* Fix shrunk label position (when input has value or is focused) */
.MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Position label on the top border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 10 !important;
}

/* Ensure proper background for shrunk labels */
.MuiInputLabel-shrink,
.MuiInputLabel-formControl.MuiInputLabel-shrink,
.MuiFormLabel-filled {
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 10 !important;
}

/* Fix the notched outline legend that creates space for the label */
.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline legend {
  padding: 0 8px !important;
  max-width: 1000px !important;
  font-size: 0.75em !important;
}

/* When input is focused, ensure label stays visible */
.MuiOutlinedInput-root.Mui-focused .MuiInputLabel-shrink,
.MuiOutlinedInput-root.Mui-focused .MuiInputLabel-formControl {
  background-color: white !important;
  color: #1976d2 !important;
}

/* Specific fix for login and register forms */
.form-section .MuiInputLabel-root,
.login-panel .MuiInputLabel-root,
.register-panel .MuiInputLabel-root {
  z-index: 10 !important;
}

/* Override any conflicting background when not shrunk */
.form-section .MuiInputLabel-root:not(.MuiInputLabel-shrink) {
  background-color: transparent !important;
}
/* Login Page Glassmorphic Styles */

.login-glass-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

/* Background Effects - Simple demo style */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.logo-watermark {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.03;
  transform: rotate(-15deg);
}

/* Language Switcher Container */
.language-switcher-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* Login Content */
.login-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* Glass Panel - Cross-browser solution without backdrop-filter issues */
.login-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(26, 43, 99, 0.15);
  border-radius: 24px !important;
  box-shadow: 
    0 20px 40px -12px rgba(50, 50, 93, 0.25),
    0 10px 20px -8px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 3rem 2.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* REMOVED backdrop-filter from login-panel to prevent input blur
   The blur effect was causing all child elements (including inputs) to appear blurry
   Now using only background opacity for the glass effect */

.login-panel:hover {
  box-shadow: 
    0 24px 48px -12px rgba(50, 50, 93, 0.3),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(26, 43, 99, 0.15));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-title {
  font-family: 'CaptureSmallz', sans-serif !important;
  font-weight: 900 !important;
  margin-bottom: 0.5rem !important;
}

.gradient-text {
  background: linear-gradient(135deg, #1A2B63, #457B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #64748B;
  font-size: 0.95rem;
}

/* Form Section - Completely isolated from any blur effects */
.form-section {
  margin-bottom: 2rem;
  position: relative;
  z-index: 100;
  /* Create new stacking context */
  isolation: isolate;
  /* Ensure no filters affect this section */
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* CRITICAL FIX: Label positioning for login form */
.form-section .MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Label position when input is empty - centered in field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  padding: 0 !important;
  z-index: 11;
}

.form-section .MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Label position when input is focused or has value - on border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 12 !important;
}

/* OAuth Section */
.oauth-section {
  margin: 2rem 0;
}

.divider-glass {
  margin: 2rem 0 !important;
  &::before,
  &::after {
    border-color: rgba(26, 43, 99, 0.1) !important;
  }
}

.divider-text {
  color: #64748B;
  padding: 0 1rem;
}

.google-button {
  padding: 0.75rem 1rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  background: white !important;
  border: 1px solid rgba(26, 43, 99, 0.2);
  transition: all 0.3s ease !important;
  /* Chrome blur fix */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.google-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 43, 99, 0.15);
}

/* Sign Up Link Section */
.signup-link-section {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

/* Form Input Styling Override */
.form-section .MuiTextField-root {
  margin-bottom: 1rem;
}

/* Input fields - Guaranteed clarity across all browsers */
.form-section .MuiOutlinedInput-root {
  background: #FFFFFF !important;
  border: 2px solid rgba(26, 43, 99, 0.2) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  /* Force rendering context */
  will-change: border-color, box-shadow;
  /* Disable any inherited filters */
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.form-section .MuiOutlinedInput-root fieldset {
  border: none !important;
}

.form-section .MuiOutlinedInput-root:hover {
  background: #FFFFFF !important;
  border-color: rgba(26, 43, 99, 0.4) !important;
  box-shadow: 0 4px 12px rgba(26, 43, 99, 0.08);
}

.form-section .MuiOutlinedInput-root.Mui-focused {
  background: #FFFFFF !important;
  border-color: #1A2B63 !important;
  box-shadow: 0 6px 20px rgba(26, 43, 99, 0.15);
  outline: none;
}

.form-section .MuiButton-contained {
  background: linear-gradient(135deg, #1A2B63, #457B9D) !important;
  box-shadow: 0 4px 20px rgba(26, 43, 99, 0.25) !important;
  font-weight: 600 !important;
  padding: 0.75rem !important;
  transition: all 0.3s ease !important;
}

.form-section .MuiButton-contained:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 43, 99, 0.35) !important;
}

/* Responsive Design */
@media (max-width: 600px) {
  .login-panel {
    padding: 2rem 1.5rem;
    border-radius: 20px !important;
  }

  .login-logo {
    width: 80px !important;
    height: 80px !important;
  }

  .login-title {
    font-size: 1.75rem !important;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  .language-switcher-container {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .login-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #1A2B63;
  }

  .google-button,
  .form-section .MuiOutlinedInput-root {
    border-width: 2px !important;
    border-color: #1A2B63 !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .login-logo:hover,
  .google-button:hover,
  .form-section .MuiButton-contained:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Loading State */
.login-panel.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Input Text - Maximum clarity */
.form-section .MuiOutlinedInput-input {
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Ensure text is not affected by any filters */
  filter: none !important;
  -webkit-filter: none !important;
}

.form-section .MuiInputLabel-root {
  color: rgba(26, 43, 99, 0.8) !important;
  font-weight: 600 !important;
  /* Remove fixed background and padding - let shrink state control it */
}

.form-section .MuiInputLabel-root.Mui-focused {
  color: #1A2B63 !important;
  font-weight: 700 !important;
}

/* Error State */
.error-message {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #E63946;
  text-align: center;
}
/* RegisterPageGlass CSS - Glassmorphic Design */

.register-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Effects - Simple demo style */
.register-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

.register-background .logo-watermark {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  opacity: 0.03;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* Language Switcher */
.language-switcher-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Main Content */
.register-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* Glass Panel */
.register-panel {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px !important;
  border: 1px solid rgba(26, 43, 99, 0.1);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
  padding: 3rem 2.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.register-panel:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Header Section */
.register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-logo {
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.register-logo:hover {
  transform: scale(1.05);
}

.register-title {
  font-family: 'CaptureSmallz', 'Bebas Neue', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.1em;
}

.gradient-text {
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-subtitle {
  color: #64748B;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Form Section */
.form-section {
  margin-bottom: 1.5rem;
}

/* CRITICAL FIX: Label positioning for register form */
.form-section .MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Label position when input is empty - centered in field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  padding: 0 !important;
  z-index: 11;
}

.form-section .MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Label position when input is focused or has value - on border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 12 !important;
}

.form-section .MuiTextField-root {
  margin-bottom: 1rem;
}

.form-section .MuiOutlinedInput-root {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 43, 99, 0.2);
  transition: all 0.3s ease;
}

.form-section .MuiOutlinedInput-root:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(26, 43, 99, 0.3);
}

.form-section .MuiOutlinedInput-root.Mui-focused {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(26, 43, 99, 0.4);
}

/* OAuth Section */
.oauth-section {
  margin: 1.5rem 0;
}

.auth-divider {
  margin: 1.5rem 0;
}

.auth-divider .divider-text {
  color: #94A3B8;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.oauth-button {
  padding: 0.75rem !important;
  border-color: rgba(26, 43, 99, 0.2) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.oauth-button:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(26, 43, 99, 0.3) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-button {
  color: #1A2B63 !important;
}

/* Login Link Section */
.login-link-section {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-prompt {
  color: #64748B;
}

.auth-link {
  color: #457B9D !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #1A2B63 !important;
  text-decoration: underline !important;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Loading State */
.register-panel.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  .register-panel {
    padding: 2rem 1.5rem;
    border-radius: 20px !important;
  }

  .register-logo {
    width: 80px !important;
    height: 80px !important;
  }

  .register-title {
    font-size: 2rem !important;
  }

  .language-switcher-container {
    top: 10px;
    right: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .register-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #1A2B63;
  }
  
  .gradient-text {
    background: #1A2B63;
    -webkit-text-fill-color: #1A2B63;
  }
}

/* Focus States */
.oauth-button:focus-visible,
.auth-link:focus-visible {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
}

/* Password Requirements */
.password-requirements {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(26, 43, 99, 0.1);
}

/* Country Select */
.country-select {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.country-select:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Role Select */
.role-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.role-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 43, 99, 0.2) !important;
  transition: all 0.3s ease !important;
}

.role-button:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(26, 43, 99, 0.3) !important;
}

.role-button.selected {
  background: rgba(26, 43, 99, 0.1) !important;
  border-color: #457B9D !important;
  color: #1A2B63 !important;
}
/* GlassmorphicLayout CSS - Shared navigation styles for all glassmorphic pages */

/* Layout Structure */
.glassmorphic-layout {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Desktop Sidebar */
.glass-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(26, 43, 99, 0.1);
  box-shadow:
    4px 0 24px rgba(0, 0, 0, 0.05),
    inset -1px 0 0 rgba(255, 255, 255, 0.5);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(26, 43, 99, 0.1);
}

.sidebar-logo {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.brand-text {
  font-family: 'CaptureSmallz', 'Bebas Neue', sans-serif !important;
  font-size: 1.8rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  margin: 0.25rem 0;
}

/* Force identical styles on button and anchor */
.nav-link,
.nav-submenu-toggle {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 0;
  background: none;
  margin: 0;
  color: #1A2B63;
  width: 100%;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  padding: 0.75rem 1.5rem;
  gap: 0.75rem; /* Space between icon and text */
}

/* Icon container - fixed width to ensure alignment */
/* Both buttons and anchors now have .nav-content wrapper */
.nav-link .nav-content > svg:first-child,
.nav-submenu-toggle .nav-content > svg:first-child {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
}

.nav-link:hover,
.nav-submenu-toggle:hover {
  background: rgba(26, 43, 99, 0.05);
  color: #1A2B63;
}

.nav-link.active {
  background: rgba(26, 43, 99, 0.1);
  color: #1A2B63;
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
}

/* Wrapper for icon + text - simple flex container */
/* Apply to BOTH anchor and button */
.nav-link .nav-content,
.nav-submenu-toggle .nav-content {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Same gap as parent */
  flex: 1;
}

/* Push expand icon to the right */
.nav-submenu-toggle .expand-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-submenu-toggle .expand-icon svg {
  width: 20px;
  height: 20px;
}

/* Submenu */
.nav-submenu {
  background: rgba(248, 250, 252, 0.5);
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.nav-submenu.open {
  max-height: 500px;
}

.nav-submenu .nav-link {
  padding-left: 4rem;
  font-size: 0.9rem;
}

/* Top Bar */
.glass-topbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 43, 99, 0.1);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  z-index: 900;
  display: flex;
  align-items: center;
}

.topbar-content {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  display: none; /* Hidden on desktop, shown on mobile/tablet */
  position: absolute;
  left: 60px; /* Leave space for hamburger menu */
  top: 50%;
  transform: translateY(-50%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* Push actions to the right */
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(26, 43, 99, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: #1A2B63;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-left: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Content Area */
.glassmorphic-content {
  margin-left: 280px;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  position: relative;
}

/* Consistent padding for all child pages */
.glassmorphic-content > * {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .glass-sidebar {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .glass-topbar {
    left: 0;
    height: 60px;
    padding-left: 60px; /* Space for hamburger menu */
  }
  
  .topbar-logo {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    position: static;
    left: auto;
    transform: none;
  }
  
  .topbar-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .topbar-logo .brand-text {
    font-size: 1.4rem !important;
    font-family: 'CaptureSmallz', 'Bebas Neue', sans-serif !important;
  }
  
  .glassmorphic-content {
    margin-left: 0;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
  }
  
  .glassmorphic-content > * {
    padding: 1rem;
  }
  
  .topbar-content {
    padding: 0 1rem;
  }
  
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: 0.5rem;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1A2B63;
  border: 1px solid rgba(26, 43, 99, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  z-index: 1200;
  transition: left 0.3s ease;
}

.mobile-nav-drawer.open {
  left: 0;
}

.mobile-nav-content {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  padding: 2rem 0;
}

.mobile-nav-header {
  text-align: center;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(26, 43, 99, 0.1);
}

.nav-logo {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.mobile-nav-menu {
  padding: 1rem 0;
}

.nav-button-mobile {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 2rem;
  background: none;
  border: none;
  color: #1A2B63;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-button-mobile:hover {
  background: rgba(26, 43, 99, 0.05);
}

.nav-button-mobile svg {
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-button-mobile span {
  flex: 1;
}

.mobile-submenu {
  background: rgba(248, 250, 252, 0.5);
}

.mobile-submenu .nav-button-mobile {
  padding-left: 4rem;
  font-size: 0.9rem;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-drawer.open ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Glass Button Light */
.glass-button-light {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 43, 99, 0.1);
  transition: all 0.2s ease;
}

.glass-button-light:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .glass-sidebar {
    background: rgba(30, 41, 59, 0.8);
    border-right-color: rgba(148, 163, 184, 0.1);
  }
  
  .glass-topbar {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
  
  .sidebar-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
  
  .nav-link,
  .nav-submenu-toggle,
  .nav-button-mobile {
    color: #e2e8f0;
  }
  
  .nav-link:hover,
  .nav-submenu-toggle:hover,
  .nav-button-mobile:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
  }
  
  .nav-link.active {
    background: rgba(148, 163, 184, 0.15);
    color: #f1f5f9;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  }
  
  .nav-submenu {
    background: rgba(15, 23, 42, 0.5);
  }
  
  .mobile-submenu {
    background: rgba(15, 23, 42, 0.5);
  }
  
  .icon-btn {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
  }
  
  .icon-btn:hover {
    background: rgba(30, 41, 59, 0.8);
  }
  
  .mobile-nav-content {
    background: rgba(30, 41, 59, 0.95);
  }
  
  .mobile-nav-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
  
  .glass-button-light {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.1);
  }
  
  .glass-button-light:hover {
    background: rgba(30, 41, 59, 0.8);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
/* ============================================= */
/* CENTRALIZED BACKGROUND SYSTEM */
/* Added: $(date +%Y-%m-%d) */
/* ============================================= */

/* Central background container - matches demo exactly */
.glassmorphic-background-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
  z-index: -1;
  pointer-events: none;
}

/* Logo watermark - matches demo exactly */
.logo-watermark {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.03;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

/* Ensure all page containers are transparent */
[class*="-glass-container"],
[class*="-container"][class*="glass"],
[class*="-page"][class*="glass"] {
  background: transparent !important;
  position: relative;
}

.admin-layout-container {
  min-height: 100vh;
  background: transparent;
  color: inherit;
}

.admin-layout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 43, 99, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-layout-logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-logout-button {
  color: #1A2B63 !important;
}

.admin-logout-button:hover {
  background: rgba(26, 43, 99, 0.1) !important;
}

.admin-layout-content {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .admin-layout-header {
    padding: 0.75rem 1rem;
  }

  .admin-layout-logo {
    font-size: 1.25rem;
  }
}

