/* ============================================
   StickyMenuBar Component Styles
   Centralized from EditRumble.js and FlashRumbleCreation.css
   ============================================ */

/* Keyframes */
@keyframes pulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes borderLightTop {
  0% {
    left: 0%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
  5% {
    left: 0%;
    top: 50%;
    opacity: 1;
    width: 0px;
    height: 0px;
  }
  20% {
    left: 0%;
    top: 0%;
    opacity: 1;
    width: 64px;
    height: 64px;
  }
  60% {
    left: 100%;
    top: 0%;
    opacity: 1;
    width: 64px;
    height: 64px;
  }
  90% {
    left: 100%;
    top: 50%;
    opacity: 1;
    width: 0px;
    height: 0px;
  }
  95% {
    left: 100%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
  100% {
    left: 0%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
}

@keyframes borderLightBottom {
  0% {
    left: 0%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
  5% {
    left: 0%;
    top: 50%;
    opacity: 1;
    width: 0px;
    height: 0px;
  }
  20% {
    left: 0%;
    top: 100%;
    opacity: 1;
    width: 64px;
    height: 64px;
  }
  60% {
    left: 100%;
    top: 100%;
    opacity: 1;
    width: 64px;
    height: 64px;
  }
  90% {
    left: 100%;
    top: 50%;
    opacity: 1;
    width: 0px;
    height: 0px;
  }
  95% {
    left: 100%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
  100% {
    left: 0%;
    top: 50%;
    opacity: 0;
    width: 0px;
    height: 0px;
  }
}

@keyframes rotate-border {
  to {
    transform: rotate(1turn);
  }
}

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main container with glassmorphism */
div.sticky-menu-bar.warning-section {
  position: relative;
  background: linear-gradient(90deg,
    rgba(50, 50, 120, 0.4) 0%,
    rgba(20, 20, 40, 0.5) 25%,
    rgba(20, 20, 40, 0.5) 50%,
    rgba(50, 50, 120, 0.4) 75%,
    rgba(20, 20, 40, 0.5) 100%
  );
  background-size: 200% 100%;
  /* animation: gradientShift 15s ease infinite; */ /* Gradient animation disabled */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
  padding: 12px 8px;
  width: 100% !important;
  transition: all 0.3s ease;
  min-height: 70px; /* Ensure minimum height to contain content */
  display: flex; /* Proper flex container */
  align-items: center; /* Center content vertically */
}

/* Fallback for browsers without glassmorphism support */
/* Removed to avoid interfering with sticky behavior
.warning-section {
  position: relative;
}
*/

.warning-section::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  border-radius: 8px;
  border: 1px solid #6366f1;
  animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.2;
  pointer-events: none;
}

/* Sticky state styles - wrapped in media query to avoid conflicts with mobile */
@media (min-width: 768px) {
  div.sticky-menu-bar.warning-section.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    margin: 0 !important;
    max-width: 100vw !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 !important;
    padding: 12px 20px;
    animation: slideDown 0.3s ease-out;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform;
  }

  /* Centralized sticky version - if you prefer 90% width */
  .warning-section.sticky-active.centralized {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1000;
    width: 90%;
    max-width: 1320px;
    transition: all 0.3s ease;
  }

  div.sticky-menu-bar.warning-section.sticky-inactive {
    position: relative !important;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* Placeholder to prevent content jump */
.sticky-menu-placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* Simple sticky version using native CSS sticky */
.sticky-menu-bar.sticky-simple {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99999;
  transition: all 0.3s ease;
}

/* Fix for overflow-x: hidden on body */
#sticky-menu-portal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* Ensure sticky menu works with body overflow-x hidden */
body .sticky-menu-bar.warning-section.sticky-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  transform: translateX(0) !important;
}

/* Hide the warning text section by default on mobile */
.sticky-menu-bar .d-flex.align-items-center.p-3.wrn-btn.col-md-7 {
  display: none !important;
}

/* Override the old pulse animation with new border-rotate effect */
.sticky-menu-bar .step.active {
  color: #ffffff !important; /* Settings should be WHITE when active */
  /* Removed background to fix white square issue */
  font-weight: bold;
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

/* Ensure Settings (first step) is always white */
.sticky-menu-bar .step:first-child {
  color: #ffffff !important;
}

.sticky-menu-bar .step:first-child svg {
  fill: #ffffff !important;
}

.sticky-menu-bar .step:first-child .step-title {
  color: #ffffff !important;
}

/* Create highlight background container */
.sticky-menu-bar .step.active .step-content {
  position: relative;
  z-index: 2;
}

/* Removed pseudo-element that was causing white square behind Settings icon */

/* Container for the light effect - only 1px border area */
.step-light-effect {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Remove mask from container to let light point be visible */
}

/* Light point styles */
.light-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(
    circle at center,
    #6366f1,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.light-point-top {
  animation: borderLightTop 4s linear infinite;
}

.light-point-bottom {
  animation: borderLightBottom 4s linear infinite;
}

/* Mask the inner area to show only 1px border - FIXED */
.step-light-effect::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  background: rgba(20, 20, 40, 1); /* Solid background to mask the light */
  border-radius: 7px;
  z-index: 1;
  pointer-events: none;
}


/* Removed fallback animation that was causing white square on Settings icon */

/* Stepper styles */
.stepper-dark-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.25rem 0.4rem; /* Further reduced - very tight around buttons */
  min-height: 48px; /* Further reduced - tighter container */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sticky-menu-bar .progress-steps {
  display: flex !important;
  align-items: center;
  gap: 4px;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.sticky-menu-bar .step {
  display: flex;
  flex-direction: row; /* Horizontal layout - icon next to text */
  align-items: center;
  justify-content: center;
  gap: 8px; /* Proper gap for horizontal layout */
  color: rgba(255,255,255,0.6);
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 14px; /* More padding for better height */
  border-radius: 6px;
  text-align: center;
  min-width: 60px;
  text-decoration: none;
  outline: none;
  border: none;
  background: transparent !important; /* Force transparent background */
  position: relative;
}

/* Give non-active steps (like Settings when not active, and Cancel) a subtle background */
.sticky-menu-bar .step:not(.active):not(.step-save-rumble) {
  background: rgba(255,255,255,0.05) !important;
}

/* Hover effect for non-save, non-active steps (only Cancel) */
.sticky-menu-bar .step:not(.step-save-rumble):not(.active):hover {
  /* No opacity change to keep text clear */
  background: rgba(255,255,255,0.20) !important; /* Even more visible background on hover */
}

/* Double spacing between Save and Cancel buttons */
.sticky-menu-bar .step.step-save-rumble + .step {
  margin-left: 8px; /* Additional spacing to double the gap between Save and Cancel */
}

/* Step content con titoli inline - updated for no circles */
.sticky-menu-bar .step-content {
  display: flex;
  /* Default flex-direction is row (horizontal) */
  align-items: center;
  gap: 8px; /* Horizontal gap between icon and text */
  justify-content: center;
}

/* Style for icons in steps */
.sticky-menu-bar .step-content svg {
  display: inline-block !important;
  vertical-align: middle;
  visibility: visible !important;
  opacity: 1 !important;
  fill: currentColor !important;
  color: inherit !important;
}


/* Style for step numbers when no icon is provided */
.sticky-menu-bar .step-number {
  font-size: 14px;
  font-weight: bold;
}

/* Style for checkmarks */
.sticky-menu-bar .step-checkmark {
  font-size: 14px;
  font-weight: bold;
  color: #a4ff00;
}

.sticky-menu-bar .step-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: inherit;
}

/* Step buttons as navigation - clickable like previous/next */
.sticky-menu-bar button.step,
.warning-section a.step {
  appearance: none;
  outline: none;
  font-family: inherit;
}

.warning-section .step.clickable {
  background: rgba(255,255,255,0.05);
}

.warning-section .step.clickable:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.warning-section .step:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.warning-section .step.active {
  color: #ff4757;
  /* Removed background to fix white square issue */
  font-weight: bold;
  position: relative;
}

.sticky-menu-bar .step.completed {
  color: #a4ff00;
}

.sticky-menu-bar .step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: transparent;
  transition: all 0.3s ease;
  color: inherit;
  flex-shrink: 0;
}

.warning-section .step.active .step-circle {
  background: #ff4757;
  border-color: #ff4757;
  color: white;
  transform: scale(1.05);
}

.warning-section .step.completed .step-circle {
  background: #a4ff00;
  border-color: #a4ff00;
  color: black;
}

.warning-section .step:hover:not(.disabled) .step-circle {
  border-color: #ff4757;
}

.sticky-menu-bar .step-text {
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-top: 2px;
  color: inherit;
}

/* Animated progress dots */
.sticky-menu-bar .progress-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
}

.sticky-menu-bar .progress-dots .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6366f1;
  animation: loadingDot 1.4s ease-in-out infinite both;
}

.sticky-menu-bar .progress-dots .dot-1 {
  animation-delay: -0.32s;
}

.sticky-menu-bar .progress-dots .dot-2 {
  animation-delay: -0.16s;
}

.sticky-menu-bar .progress-dots .dot-3 {
  animation-delay: 0;
}

/* Completed state - static green dots */
.sticky-menu-bar .progress-dots.completed .dot {
  background: #a4ff00;
  animation: none;
  opacity: 1;
}

/* Buttons */
.cancel-btn,
.edit-mode-btn,
.save-and-exit-btn,
.next-step-btn {
  min-width: 80px;
  font-family: "DINRegular";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 44px;
  padding: 0 16px;
}

.cancel-btn {
  background: rgba(255,255,255,0.05);
  color: #ffffff !important;
}

.cancel-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.edit-mode-btn {
  background: #ff4757;
  color: #ffffff !important;
}

.edit-mode-btn:hover:not(:disabled) {
  background: #d63638;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 72, 77, 0.3);
}

.save-and-exit-btn {
  background: rgba(255,255,255,0.05);
  color: #ffffff !important;
}

.next-step-btn {
  background: rgba(255,255,255,0.05);
  color: #ffffff !important;
}

.next-step-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

button.next-step-btn {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: none;
  font-family: "DINRegular";
  font-size: 11px;
  font-weight: 600;
  padding: 8px 16px;
  color: #ffffff !important;
  height: 36px;
  transition: all 0.2s ease;
  cursor: pointer;
}

button.next-step-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* Layout adjustments */
.sticky-menu-bar .wrn-btn {
  gap: 8px !important;
}

.sticky-menu-bar .d-flex.gap-2 {
  gap: 0.5rem !important;
  margin-left: auto !important; /* Always push buttons to the right */
}

.sticky-menu-bar.row p {
  font-size: 13px !important;
}

.legue-not-checked-warning {
  margin: 0;
  color: #fff;
}

/* Desktop: center the content */
@media (min-width: 768px) {
  /* Force sticky behavior on desktop - override any conflicting styles */
  div.sticky-menu-bar.warning-section.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    margin: 0 !important;
  }
  
  div.sticky-menu-bar.warning-section.sticky-inactive {
    position: relative !important;
  }
  
  .sticky-menu-bar.row {
    display: flex;
    justify-content: center;
  }
  
  .sticky-menu-bar .w-1320 {
    max-width: 1320px;
    margin: 0 auto;
  }
  
  .warning-section.sticky-active .w-1320 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
  }
  
  .warning-section.sticky-active .row {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Show warning text on desktop */
  .sticky-menu-bar .d-flex.align-items-center.p-3.wrn-btn.col-md-7 {
    display: flex !important;
  }
  
  /* Center content inside Col md-5 */
  .sticky-menu-bar .wrn-btn.col-md-5 {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 0.25rem !important;
  }
  
  .sticky-menu-bar .wrn-btn.col-md-5 .d-flex:last-child {
    margin-left: auto;
  }
  
  .sticky-menu-bar .stepper-dark-container {
    height: auto; /* Let content determine height */
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .sticky-menu-bar .wrn-btn.col-md-5 button {
    height: 44px; /* Same height as stepper toggle */
  }
  
  /* Equal width for Save and Cancel buttons on desktop */
  .sticky-menu-bar .wrn-btn.col-md-5 button.save-and-exit-btn,
  .sticky-menu-bar .wrn-btn.col-md-5 button.cancel-btn {
    width: 100px;
  }
  
  /* Slightly wider Save button */
  .sticky-menu-bar .wrn-btn.col-md-5 button.edit-mode-btn {
    width: 120px;
  }
}

/* Ensure Row inside sticky container has no conflicting styles */
.sticky-menu-bar.warning-section > .row {
  width: 100%;
  margin: 0;
}

/* Maximum specificity using ID selector - overrides everything */
/* Desktop only - mobile has its own rules with media query */
@media (min-width: 768px) {
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    margin: 0 !important;
    max-width: none !important;
  }

  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-inactive {
    position: relative !important;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  /* Use ID selector for maximum specificity on mobile */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-inactive {
    position: relative !important;
    border-radius: 10px;
    margin: 0 10px 1rem 10px !important;
    width: calc(100% - 20px) !important;
  }
  
  /* Override for league-stage variant to be full width without margins */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-inactive[data-variant="league-stage"] {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    /* Ensure content scrolls underneath */
    transform: translateZ(0);
    will-change: transform;
  }
  
  .sticky-menu-bar.row {
    padding: 0.5rem;
    border: none;
  }
  
  .sticky-menu-bar .wrn-btn {
    justify-content: center !important;
    padding: 0;
  }
  
  .sticky-menu-bar .wrn-btn.col-md-5 {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0;
    justify-content: space-between;
    align-items: center !important;
    position: relative;
    min-height: 44px;
    padding: 0;
  }
  
  /* Mobile: stepper takes 50%, buttons take 50% */
  .sticky-menu-bar .stepper-dark-container {
    flex: 0 0 50%;
    position: relative;
    left: auto;
    transform: none;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile stepper adjustments */
  .sticky-menu-bar .step {
    min-width: auto;
    padding: 4px 8px;
  }
  
  .sticky-menu-bar .step-content {
    gap: 6px;
  }
  
  .sticky-menu-bar .step-circle {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }
  
  .sticky-menu-bar .step-text {
    font-size: 7px;
    max-width: 40px;
  }
  
  .sticky-menu-bar .step-title {
    font-size: 11px;
  }
  
  .sticky-menu-bar .progress-dots {
    padding: 0 2px;
  }
  
  .sticky-menu-bar .progress-dots .dot {
    width: 3px;
    height: 3px;
  }
  
  /* Buttons take remaining space */
  .sticky-menu-bar .wrn-btn.col-md-5 .d-flex:last-child {
    flex: 1;
    justify-content: flex-end;
    gap: 0.5rem;
    display: flex;
  }
  
  /* Button adjustments for mobile */
  .cancel-btn.p-1.p-md-2,
  .edit-mode-btn.p-1.p-md-2,
  .save-and-exit-btn.p-1.p-md-2,
  .sticky-menu-bar .cancel-btn,
  .sticky-menu-bar .edit-mode-btn,
  .sticky-menu-bar .save-and-exit-btn {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Ensure equal split for buttons in flex container */
  .sticky-menu-bar .d-flex.gap-2,
  .sticky-menu-bar .d-flex.gap-1 {
    gap: 0.5rem !important;
    width: 100%;
    flex: 1;
    height: 44px;
    align-items: stretch;
  }
  
  .sticky-menu-bar .d-flex.gap-2 button,
  .sticky-menu-bar .d-flex.gap-1 button {
    flex: 1 !important;
    height: 100% !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Make the button container fill available space like burger menu */
  .sticky-menu-bar .wrn-btn.col-md-5 > button:not(.next-step-btn),
  .sticky-menu-bar .wrn-btn.col-md-5 > .d-flex {
    flex: 1;
  }
}

/* ========================================
   EDIT PAGES MOBILE BEHAVIOR (Centralized)
   Used by: LeagueEdit, EditRumble, etc.
   Triggered by: variant="league-setting"
   ======================================== */

@media (max-width: 767px) {
  /* league-setting variant on mobile = edit page behavior */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section[data-variant="league-setting"],
  .sticky-menu-bar.warning-section.variant-league-setting {
    /* Sempre sticky su mobile per edit pages */
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important; /* TUTTI gli angoli a 0px */
    z-index: 1000;
  }
  
  /* Override per sticky-inactive */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-inactive[data-variant="league-setting"],
  .sticky-menu-bar.warning-section.sticky-inactive.variant-league-setting {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important; /* TUTTI gli angoli a 0px */
  }
  
  /* Override per sticky-active */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-active[data-variant="league-setting"],
  .sticky-menu-bar.warning-section.sticky-active.variant-league-setting {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important; /* TUTTI gli angoli a 0px */
  }
  
  /* Override pseudo-element border-radius for edit pages */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section[data-variant="league-setting"]::before,
  .sticky-menu-bar.warning-section.variant-league-setting::before {
    border-radius: 0 !important; /* Remove radius from pseudo-element */
  }
}

/* ============================================
   MOBILE SPECIFIC - Remove borders and simplify
   Added: 04/08/2025
   ============================================ */
@media (max-width: 767px) {
  .sticky-menu-bar,
  .sticky-menu-bar.sticky,
  .sticky-menu-bar.is-sticky,
  .sticky-menu-bar.sticky-active,
  #gorumble-sticky-menu-bar {
    /* Remove all borders and shadows */
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    /* Semi-transparent gradient matching desktop style for content visibility */
    background: linear-gradient(90deg,
      rgba(30, 30, 70, 0.45) 0%,
      rgba(20, 20, 40, 0.5) 25%,
      rgba(20, 20, 40, 0.5) 50%,
      rgba(30, 30, 70, 0.45) 75%,
      rgba(20, 20, 40, 0.5) 100%
    ) !important;
    /* Enhanced glass effect for better visibility */
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    /* Add subtle shadow to ensure menu is distinguishable */
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
  }
  
  /* ============================================
     LEAGUE STAGE VARIANT - Mobile Full Width Fix
     Added: 21/08/2025
     Fix: Remove margins and make full width on mobile
     ============================================ */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section[data-variant="league-stage"],
  .sticky-menu-bar.warning-section.variant-league-stage {
    /* Override default mobile margins */
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
    border-radius: 0 !important;
  }
  
  /* Ensure sticky state also has no margins */
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-active[data-variant="league-stage"],
  .sticky-menu-bar.warning-section.sticky-active.variant-league-stage {
    margin: 0 !important;
    width: 100% !important;
  }
  
  #gorumble-sticky-menu-bar.sticky-menu-bar.warning-section.sticky-inactive[data-variant="league-stage"],
  .sticky-menu-bar.warning-section.sticky-inactive.variant-league-stage {
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Ensure all button text and icons are white on mobile */
  .sticky-menu-bar button,
  .sticky-menu-bar button span,
  .sticky-menu-bar .cancel-btn,
  .sticky-menu-bar .edit-mode-btn,
  .sticky-menu-bar .save-and-exit-btn,
  .sticky-menu-bar .next-step-btn {
    color: #ffffff !important;
  }
  
  .sticky-menu-bar button svg,
  .sticky-menu-bar button [class*="Icon"] {
    color: #ffffff !important;
    fill: #ffffff !important;
  }
  
  /* Force white color for all icon types INCLUDING Font Awesome and React Icons - but NOT step buttons */
  .sticky-menu-bar button:not(.step) svg path,
  .sticky-menu-bar button:not(.step) svg *,
  .sticky-menu-bar button:not(.step) i,
  .sticky-menu-bar button:not(.step) .fa,
  .sticky-menu-bar button:not(.step) .fas,
  .sticky-menu-bar button:not(.step) .far,
  .sticky-menu-bar button:not(.step) .fab {
    fill: #ffffff !important;
    color: #ffffff !important;
  }
}

/* ============================================
   DESKTOP - Ensure button visibility
   Added: 04/08/2025
   ============================================ */
@media (min-width: 768px) {
  /* Ensure all button text is white on desktop */
  .sticky-menu-bar button,
  .sticky-menu-bar button span,
  .sticky-menu-bar .cancel-btn,
  .sticky-menu-bar .edit-mode-btn,
  .sticky-menu-bar .save-and-exit-btn,
  .sticky-menu-bar .next-step-btn {
    color: #ffffff !important;
  }
  
  .sticky-menu-bar button svg,
  .sticky-menu-bar button [class*="Icon"] {
    color: #ffffff !important;
    fill: #ffffff !important;
  }
  
  /* Force white color for all icon types including Font Awesome and React Icons on desktop - but NOT step buttons */
  .sticky-menu-bar button:not(.step) svg path,
  .sticky-menu-bar button:not(.step) svg *,
  .sticky-menu-bar button:not(.step) i,
  .sticky-menu-bar button:not(.step) .fa,
  .sticky-menu-bar button:not(.step) .fas,
  .sticky-menu-bar button:not(.step) .far,
  .sticky-menu-bar button:not(.step) .fab {
    fill: #ffffff !important;
    color: #ffffff !important;
  }
}

/* Custom responsive classes to avoid Bootstrap conflicts */
@media (max-width: 767px) {
  .sticky-menu-bar .sticky-menu-mobile-icon {
    display: inline-flex !important;
  }
  
  .sticky-menu-bar .sticky-menu-desktop-text {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .sticky-menu-bar .sticky-menu-mobile-icon {
    display: none !important;
  }
  
  .sticky-menu-bar .sticky-menu-desktop-text {
    display: inline-block !important;
  }
}

/* Ensure icons have uniform size */
.sticky-menu-bar .sticky-menu-mobile-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
}

.sticky-menu-bar .sticky-menu-mobile-icon .fa {
  font-size: 18px !important;
  line-height: 1 !important;
}
/* ============================================
   Red Rumble Save Button (Step 2)
   Added for step-save-rumble class
   ============================================ */
.sticky-menu-bar .step.step-save-rumble {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

.sticky-menu-bar .step.step-save-rumble:hover {
  /* Much brighter gradient with glow effect */
  background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 100%) !important;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.5) !important;
}

.sticky-menu-bar .step.step-save-rumble svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.sticky-menu-bar .step.step-save-rumble .step-title {
  color: #ffffff !important;
}

/* Mobile-specific step padding */
@media (max-width: 767px) {
  .sticky-menu-bar .step {
    min-width: auto;
    padding: 8px 18px;
  }
}

/* Fix: Remove vertical scrollbar on mobile sticky menu */
@media (max-width: 767px) {
  .sticky-menu-bar,
  .sticky-menu-bar.warning-section,
  #gorumble-sticky-menu-bar,
  .sticky-menu-bar.sticky-active,
  .sticky-menu-bar.sticky-inactive {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    max-height: none !important;
  }

  /* Ensure inner containers don't cause scrollbar */
  .sticky-menu-bar .row,
  .sticky-menu-bar .wrn-btn,
  .sticky-menu-bar .d-flex {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }
}
