body {
    padding-bottom: 70px; /* Add padding to prevent content from being hidden by the nav bar */
    background: linear-gradient(120deg, rgba(10, 8, 41, 0.97) 0%, rgba(26, 26, 92, 0.95) 100%);
    color: #f0f0f0; /* Lighter text color for better visibility */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.themebg {
    background: linear-gradient(120deg, rgba(10, 8, 41, 0.97) 0%, rgba(26, 26, 92, 0.95) 100%);
}

* {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal;
}

/* Footer specific styles */
.footer {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
}

.footer h4, .footer h5 {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 600 !important;
}

.footer p, .footer a, .footer span {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

/* Improved text visibility */
p, .card-text, .text-muted {
    color: #e0e0e0 !important; /* Lighter text for paragraphs */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.text-muted {
    color: #c0c0c0 !important; /* Lighter muted text */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.form-text, small, .small {
    color: #b0b0b0 !important; /* Lighter helper text */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.form-label {
    color: #e0e0e0; /* Lighter form labels */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.form-control {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
    background-color: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(100, 100, 255, 0.3);
    color: #ffffff;
}

.form-control:focus {
    background-color: rgba(40, 40, 70, 0.8);
    border-color: rgba(100, 100, 255, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(100, 100, 255, 0.25);
    color: #ffffff;
}

/* Improved placeholder text visibility */
::placeholder {
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
    color: #a0a0a0 !important;
    opacity: 0.8 !important;
}

a {
    color: #80a0ff; /* Brighter links */
}

a:hover {
    color: #a0c0ff; /* Even brighter on hover */
}

.user-profile {
    display: flex;
    align-items: center;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Add padding to the body to prevent content overlap */
/* Body padding is now handled in bottom_nav.ejs with !important */

.container-fluid {
    padding-bottom: 70px; /* Ensure content is above nav */
}

.mpadding {
    padding-bottom: 70px !important; /* Ensure content is above nav */
} 

/* New styles for smaller buttons and content */
.btn-sm.w-100 {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.balance-display {
    font-size: 0.9rem !important;
}

h5, .h5 {
    font-size: 1.1rem;
}

h6, .h6 {
    font-size: 0.9rem;
}

/* Make card content more compact */
.card-body {
    padding: 0.75rem;
}

/* Make game purchase popup smaller */
.modal-dialog {
    max-width: 320px;
}

.modal-body {
    padding: 0.75rem;
}

/* Smaller image in popups */
#modal-item-image {
    max-width: 90px !important;
    max-height: 90px !important;
}

/* Smaller headings in popups */
#modal-item-name {
    font-size: 1.1rem !important;
}

/* Smaller prices and balance in popups */
#modal-item-price, #modal-user-balance {
    font-size: 1.1rem !important;
}

/* Global Button Styles with Better Mobile Support */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Optimize for touch */
    will-change: transform; /* Optimize animation performance */
    display: inline-flex !important; /* Force flex layout for icon alignment */
    align-items: center !important; /* Vertical alignment */
    justify-content: center !important; /* Horizontal alignment */
    line-height: 1.2 !important; /* Keep text tight */
    font-family: "Noto Sans Myanmar", "Poppins", sans-serif !important;
    font-weight: 500 !important;
}

.btn i, .btn .bi {
    display: inline-flex !important; /* Force proper icon rendering */
    align-items: center !important;
    justify-content: center !important;
}

/* Smaller button padding for better fit */
.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

/* Button press effect */
.btn:active:not(:disabled),
.btn.pressed:not(:disabled) {
    transform: translateY(2px) scale(0.98);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .btn {
        transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    }
    
    .btn:active:not(:disabled),
    .btn.pressed:not(:disabled) {
        transform: translateY(3px) scale(0.96);
    }
}

/* Specific for purchase modal buttons */
.modal-footer .btn {
    padding: 0.35rem 0.5rem !important; /* Slightly more padding for easier tapping */
    white-space: nowrap !important; /* Prevent text wrapping */
    overflow: hidden !important; /* Hide overflow */
    text-overflow: ellipsis !important; /* Show ellipsis if text too long */
}

/* Make sure icons don't break to new line */
.btn i + span,
.btn .bi + span {
    margin-left: 0.25rem !important;
    display: inline-block !important;
}

/* Button hover effects only for non-touch devices */
@media (hover: hover) {
    .btn:hover:not(:disabled):not(:active):not(.pressed) {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Item Count Badge Fix */
.shop-badge-count {
    z-index: 9999 !important; /* Extremely high z-index to ensure it's on top */
    position: absolute !important;
    pointer-events: none !important; /* Allow clicks to pass through */
    top: -10px !important;
    right: 5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, #4545ff, #2525aa) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) !important;
    transform: translateZ(0) !important; /* Force GPU acceleration */
} 

/* Consistent spinner style */
.spinner-border {
  border-color: rgba(75, 75, 255, 0.2);
  border-top-color: #00ffae !important;
} 

/* Global Top Progress Bar Styles */
.top-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(to right, #4776E6, #8E54E9, #00ffae) !important;
  width: 0% !important;
  z-index: 100000 !important;
  transition: width 0.2s ease !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.top-progress-bar::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(to right, #4776E6, #8E54E9, #00ffae, #4776E6) !important;
  background-size: 200% 100% !important;
  animation: gradient-shift 2s linear infinite !important;
  z-index: 1 !important;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pulsing border for profile pictures - now just a stable border */
.pulse-border {
  border-radius: 50%;
  border: 3px solid #00bfff;
  box-shadow: none;
  animation: none;
}

/* Keep the animation definition for backward compatibility but don't use it */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px #00bfff;
  }
  50% {
    box-shadow: 0 0 35px #00bfff;
  }
}

/* Adjust pulse border for account page */
.profile-avatar.pulse-border {
  border: 5px solid #00bfff;
  box-shadow: 0 0 20px #00bfff;
}

@media (max-width: 767px) {
  .pulse-border {
    border: 3px solid #00bfff;
    box-shadow: 0 0 12px #00bfff;
  }
  
  @keyframes pulseGlow {
    0%, 100% {
      box-shadow: 0 0 12px #00bfff;
    }
    50% {
      box-shadow: 0 0 28px #00bfff;
    }
  }
} 