/****** MOBILE STYLES ******/
.side-bar.mobile-user-info {
  display: none;
}

/* Hide mobile info panel and overlay on all devices by default */
.mobile-info-panel,
.mobile-info-overlay {
  display: none;
}

/* Hide right sidebar (info panel) on mobile by default */
.side-bar.right {
  display: none !important;
}

.container-fluid {
  padding: 0 !important;
}

/* Mobile Stats Toggle Button */
@media (min-width: 768px) {
  .side-bar.right {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .game-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .side-bar {
    min-width: 100% !important;
    max-width: 100% !important;
    flex-grow: 1;
  }

  .game-area {
    flex-grow: 1;
    padding: 0 !important;
  }

  .navbar-fixed-bottom .navbar-header {
    text-align: center;
  }

  .navbar-fixed-bottom .navbar-toggle {
    float: none;
    display: inline-block;
  }

  .navbar-toggle.active {
    background-color: #5cb85c;
  }

  .side-bar.left {
    display: none;
  }

  /* Mobile Top Navigation Bar - Ultra Compact */
  .top-nav-bar {
    min-height: 30px !important;
  }

  .top-nav-content {
    padding: 2px 6px !important;
  }

  .time-date-section {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
  }

  .current-time {
    font-size: 8px !important;
    margin-bottom: 0px !important;
    line-height: 1 !important;
  }

  .current-date {
    font-size: 7px !important;
    line-height: 1 !important;
  }

  .top-nav-buttons {
    gap: 2px !important;
  }

  .nav-button {
    width: 22px !important;
    height: 22px !important;
  }

  .nav-button i {
    font-size: 12px !important;
  }

  .nav-button .badge {
    font-size: 7px !important;
    min-width: 12px !important;
    height: 12px !important;
    top: -2px !important;
    right: -2px !important;
  }

  /* Professional Dashboard Panel - Mobile */
  .professional-dashboard-panel {
    padding: 4px !important;
    margin-bottom: 1px !important;
  }

  .dashboard-content {
    gap: 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .dashboard-section {
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .section-divider {
    display: none !important;
  }

  /* Mobile Player Section */
  .player-section {
    order: 1 !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  .player-info-compact {
    justify-content: center !important;
  }

  .player-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .player-name {
    font-size: 12px !important;
  }

  .rank,
  .level {
    font-size: 10px !important;
  }

  .exp-bar-compact {
    width: 80px !important;
    height: 5px !important;
  }

  /* Mobile Currency Section */
  .currency-section {
    order: 2 !important;
  }

  .currency-item,
  .stat-item {
    justify-content: center !important;
  }

  .currency-icon,
  .stat-icon {
    font-size: 12px !important;
  }

  .currency-amount,
  .stat-value {
    font-size: 11px !important;
  }

  /* Mobile Stats Section */
  .stats-section {
    order: 3 !important;
  }

  /* Compact top bar mobile adjustments */
  .compact-top-bar {
    font-size: 12px;
  }

  .currency-item {
    margin-right: 10px !important;
  }

  /* Mobile bottom stats overlay toggle */
  .mobile-stats-toggle {
    position: fixed;
    bottom: 80px;
    right: 10px;
    z-index: 1000;
    background-color: #2c2c2c;
    border: 2px solid #c0c0c0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 46px;
    color: #ff5722;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }

  .mobile-stats-toggle:hover {
    background-color: #ff5722;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  }

  /* Hidden by default - only show on mobile with .show class */
  .mobile-info-panel {
    display: none;
    position: fixed;
    bottom: 60px; /* Above bottom navigation + margin */
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 2px solid #c0c0c0;
    padding: 15px;
    z-index: 10100; /* Above everything */
    overflow-y: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  }

  .mobile-info-panel.show {
    display: block;
  }

  /* Mobile overlay for stats */
  .mobile-info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Above content, below panel/nav */
  }

  .mobile-info-overlay.show {
    display: block;
  }

  /* Mobile Quick Actions Bar */
  .mobile-quick-actions {
    display: none; /* Hidden by default, shown only on mobile */
    background: linear-gradient(
      135deg,
      var(--industrial-darker) 0%,
      var(--industrial-dark) 50%,
      var(--industrial-darker) 100%
    );
    border-bottom: 1px solid var(--border-silver);
    padding: 6px 12px;
    position: relative;
    z-index: 1020; /* Above dashboard panel */
  }

  .mobile-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
  }

  /* Mobile Time Section */
  .mobile-time-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.2;
    font-family: "Electrolize", cursive;
  }

  .mobile-time {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
  }

  .mobile-time i,
  .mobile-date i {
    font-size: 10px;
    opacity: 0.8;
  }

  /* Mobile Action Buttons */
  .mobile-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .nav-button {
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 32px;
    min-height: 32px;
  }

  .mobile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
  }

  .mobile-action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
  }

  /* Show mobile quick actions bar only on mobile */
  @media (max-width: 767px) {
    .mobile-quick-actions {
      display: block !important;
    }
  }

  /* Mobile Horizontal Header Menu */
  .mobile-header-menu-bar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(107, 31, 9, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 16px;
    border: 2px solid rgba(107, 31, 9, 0.2);
    backdrop-filter: blur(10px);
    background-blend-mode: multiply;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 8px 4px;
    margin-bottom: 5px;
  }

  .mobile-header-menu-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    gap: 0; /* Remove gap since we use margins */
  }

  .mobile-header-menu-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .mobile-header-menu-item {
    flex-shrink: 0;
    position: relative;
    white-space: nowrap;
    color: var(--text-primary, #e0e0e0) !important;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px var(--shadow, rgba(0,0,0,0.8));
    margin: 0 2px;
    min-width: 70px;
    text-align: center;
  background: linear-gradient(90deg, var(--accent-orange-dark-2), var(--accent-dark-2));
  border-color: var(--accent-primary);
    border-radius: 4px;
  }

  .mobile-header-menu-item:hover,
  .mobile-header-menu-item:focus {
    background: linear-gradient(135deg, var(--industrial-dark, #2a2a2a) 0%, var(--industrial-darker, #1a1a1a) 100%) !important;
    color: var(--accent-orange, #ff6b35) !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow, rgba(0,0,0,0.5));
  }

  .mobile-header-menu-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px var(--shadow, rgba(0,0,0,0.5));
  }

}
