/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .header {
    overflow-x: hidden;
  }
  
  .device-options {
    max-width: 30%;
  }
  
  .device-options button {
    width: 40px;
  }
  
  .device-options > div {
    padding: 0 5px;
  }
  
  .actions {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .actions > button.btn {
    padding: 0 8px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    white-space: nowrap;
  }
  
  .actions > button.btn.login {
    min-width: 70px;
  }
    .actions > button.btn.reg {
    min-width: 90px;
    display: none !important;
  }
  
  .balance-display {
    padding: 0 5px;
    min-width: 60px;
  }
  
  .balance-display div div:first-child {
    font-size: 12px;
  }
  
  .balance-display div div:last-child {
    font-size: 8px;
  }
  
  #clock-container, .actions > div:last-child {
    padding: 0 8px;
  }
  
  #timezones-dropdown, #settings-dropdown {
    width: 80%; /* Use percentage for better mobile adaptation */
    max-width: 300px;
    max-height: 50vh; /* Smaller on mobile to ensure it fits */
    padding-bottom: 8px; /* Add some padding at the bottom for better touch scrolling */
  }
  
  #timezones-dropdown div, #settings-dropdown div {
    padding: 10px 8px; /* Larger touch targets for mobile */
  }
  
  /* Navigation styles for mobile */
  .navigation {
    padding: 5px 0;
  }
  
  .navigation-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .navigation .logo {
    transform: scale(0.4);
    margin-right: 5px;
  }
  
  .navigation ul {
    font-size: 0.9em;
    gap: 10px;
  }
  
  .navigation ul li {
    padding: 5px 8px;
  }
  
  @media screen and (max-width: 480px) {
    .device-options > button:nth-child(3),
    .device-options > button:nth-child(4) {
      display: none;
    }
    
    .navigation .logo {
      transform: scale(0.35);
      margin-right: 0;
    }
    
    .navigation ul {
      font-size: 0.8em;
      gap: 8px;
    }
    
    .button-text {
      font-size: 10px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    
    .actions > button.btn.login img {
      margin-right: 2px;
      width: 14px;
      height: 14px;
    }
    
    .balance-display {
      min-width: 50px;
      padding: 0 3px;
    }
    
    .balance-display div div:first-child {
      font-size: 11px;
    }
  }
}