/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
  }
  
  /* Site Header */
  .site-header {
    direction: ltr;
    background-color: #162032;
    color: #2DD4BF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 3rem;
    height: 70px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    border-bottom: 1px solid #1E2D40;
}
  
  /* Left side: brand */
  .header-left .brand-text {
    font-weight: bold;
    font-size: 1.4rem;
    color: #00DCA2;  /* Green brand text */
    letter-spacing: 0.5px;
  }
  
  /* Right side: icons */
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between icons */
  }
  
  /* Icons styling */
  .header-icon svg {
    display: block;
    color: #2DD4BF;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
  }

  .header-icon:hover svg {
    color: #14b8a6;
  }
  
  .header-icon {
    text-decoration: none;
    cursor: pointer;
  }
  /* Backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Full-screen overlay menu */
.header-menu {
  direction: rtl;
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 400px;
  height: 100vh;
  background: #162032;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.header-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Close button */
.menu-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #61EDE0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1;
}

.menu-close-btn:hover {
  color: #2BCFD6;
}

.menu-close-btn svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* Inner container — limits width on desktop */
.menu-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-top: 0.5rem;
}

/* Top header section */
.menu-top-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 48px 20px 24px;
}

.menu-header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.menu-biz-name {
  color: #FFFFFF;
  font-family: "Assistant", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.menu-last-login,
.menu-last-login-time {
  color: #ADBDD0;
  font-family: "Assistant", sans-serif;
  font-size: 13px;
}

.menu-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #2BCFD6;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tiles grid */
.menu-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 16px;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1E2D40;
  border: 1px solid #243350;
  border-radius: 12px;
  padding: 14px 6px;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
  font-family: "Assistant", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 84px;
  position: relative;
}

button.menu-tile {
  border: 1px solid #243350;
  font-family: "Assistant", sans-serif;
  width: 100%;
}

.menu-tile:hover:not(.disabled):not(.empty) {
  background: #253d56;
}

.menu-tile.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.tile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  direction: rtl;
}

.tile-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tile-status-badge.connected {
  color: #8CF6AE;
  background: rgba(27, 94, 32, 0.28);
  border: 1px solid rgba(140, 246, 174, 0.35);
}

.tile-status-badge.connected .tile-status-dot {
  background: #5BE37A;
}

.tile-status-badge.disconnected {
  color: #FFB4B4;
  background: rgba(140, 28, 28, 0.24);
  border: 1px solid rgba(255, 180, 180, 0.28);
}

.tile-status-badge.disconnected .tile-status-dot {
  background: #FF6B6B;
}

/* Home button */
.menu-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2a2f2f;
  border: 1px solid #3d4a4a;
  color: #a8b8b8;
  font-family: "Assistant", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 30px;
  margin: 10px auto 8px;
  width: 85%;
  direction: rtl;
  transition: background 0.2s, color 0.2s;
}

.menu-home-btn:hover {
  background: #323a3a;
  color: #c8d8d8;
}

.menu-home-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Exit button */
.menu-exit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E53935;
  color: #FFFFFF;
  font-family: "Assistant", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 30px;
  margin: 8px auto 24px;
  width: 85%;
  direction: rtl;
  transition: background 0.2s;
}

.menu-exit-btn:hover {
  background: #c62828;
}

/* Disabled menu item legacy support */
.disabled-menu-item {
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}
/* ===============
   Button Link Styles
   =============== */
   .btn-link {
    display: inline-block;
    padding: 0.3rem 2rem;
    background-color: #2DD4BF;
    color: #0D1117;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 100px;
}

.header-right .btn-link {
    min-width: 100px;
    padding: 0.4rem 1.5rem;
}

.btn-link:hover {
    background-color: #14b8a6;
}

.brand-text {
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.header-center {
  flex: 1;
  text-align: center;
  color: #61EDE0;
  font-size: 1rem;
  font-weight: 500;
  direction: rtl;
}
  /* Optional: for screens narrower than 600px, adjust spacing or size */
  @media (max-width: 600px) {
    .site-header {
      padding: 1.5rem 1rem;
    }
    .header-left .brand-text {
      font-size: 1.2rem;
    }
    .header-right {
      gap: 0.75rem;
    }
    .header-icon svg {
      width: 32px;  /* Increase the width */
      height: 32px; /* Increase the height */
    }
    }
  