/* =====================================================
   EMPTY PURPLE HEADER - Just the bar, nothing else
   Following user's instructions step-by-step
   ===================================================== */

@media only screen and (max-width: 768px) {
  
  /* ========== PURPLE GRADIENT BAR ONLY ========== */
  
  .navbar {
    height: 65px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35) !important;
    padding: 0 18px !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  /* ========== LEFT: LOGO WITH TRANSPARENT BACKGROUND ========== */
  
  .navbar-brand-wrapper {
    display: flex !important;
    align-items: center;
    width: auto !important;
    min-width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    flex-shrink: 0;
  }

  .navbar-brand-inner-wrapper {
    display: flex !important;
    align-items: center;
    width: auto !important;
    background: transparent !important;
  }

  /* Hide hamburger menu */
  .navbar-toggler {
    display: none !important;
  }

  /* LOGO - Transparent background */
  .navbar-brand,
  .brand-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
  }

  /* Logo image */
  .brand-logo img,
  .navbar-brand img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 36px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important; /* Make logo white */
  }

  /* Hide mini logo */
  .brand-logo-mini {
    display: none !important;
  }

  /* ========== RIGHT: PROFILE AVATAR ONLY ========== */
  
  .navbar-menu-wrapper {
    display: flex !important;
    width: auto !important;
    padding: 0 !important;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    background: transparent !important;
  }

  /* Hide everything except profile */
  .navbar-menu-wrapper > * {
    display: none !important;
  }

  /* Show only navbar-nav-right */
  .navbar-menu-wrapper .navbar-nav-right {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    margin: 0 !important;
    background: transparent !important;
  }

  /* ========== HIDE EVERYTHING EXCEPT PROFILE ========== */
  
  /* Hide ALL nav items first */
  .navbar-nav-right > * {
    display: none !important;
  }

  .navbar-nav-right .nav-item {
    display: none !important;
  }

  /* Force hide notification bell */
  .navbar-nav-right li:has(#notificationDropdown),
  .navbar-nav-right .nav-item:has(#notificationDropdown),
  #notificationDropdown {
    display: none !important;
  }

  /* Force hide message dropdown */
  .navbar-nav-right li:has(#messageDropdown),
  .navbar-nav-right .nav-item:has(#messageDropdown),
  #messageDropdown {
    display: none !important;
  }

  /* Force hide all dropdowns */
  .navbar-nav-right .nav-item.dropdown,
  .navbar-nav-right .dropdown {
    display: none !important;
  }

  /* Force hide settings/gear icon */
  .navbar-nav-right li:has(.typcn-cog-outline),
  .navbar-nav-right .nav-item:has(.typcn-cog-outline) {
    display: none !important;
  }

  /* Force hide bell icon */
  .navbar-nav-right li:has(.typcn-bell),
  .navbar-nav-right .nav-item:has(.typcn-bell) {
    display: none !important;
  }

  /* ========== SHOW ONLY PROFILE ========== */
  
  /* Show profile avatar */
  .navbar-nav-right .nav-item.nav-profile,
  .navbar-nav-right .nav-profile,
  .nav-profile {
    display: flex !important;
    margin: 0 !important;
    background: transparent !important;
  }

  /* Profile avatar - Rounded icon, transparent background */
  .nav-profile .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 46px !important;
    height: 46px !important;
    background: transparent !important;
    border: 3px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
  }

  .nav-profile .nav-link:active {
    transform: scale(0.95);
    border-color: rgba(255, 255, 255, 0.9) !important;
  }

  /* Profile image - fills the circle */
  .nav-profile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
  }

  /* Hide name text */
  .nav-profile-name {
    display: none !important;
  }

  /* ========== HIDE DESKTOP SIDEBAR ========== */
  
  .sidebar {
    display: none !important;
  }

  /* Hide settings panels */
  .theme-setting-wrapper,
  #right-sidebar,
  .settings-panel {
    display: none !important;
  }

  /* ========== CONTENT AREA ========== */
  
  .main-panel {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 65px !important;
    padding-bottom: 80px !important;
  }

  .content-wrapper {
    padding: 20px 16px !important;
    padding-bottom: 95px !important;
    min-height: calc(100vh - 65px - 80px);
    background: #f8f9fa !important;
  }

  /* ========== HIDE ONLINE BADGE ON MOBILE ========== */
  
  #online-status {
    display: none !important;
  }
}

/* ========== LANDSCAPE ========== */

@media only screen and (max-width: 768px) and (orientation: landscape) {
  .navbar {
    height: 56px !important;
  }

  .main-panel {
    margin-top: 56px !important;
  }
}

/* ========== STANDALONE (Installed PWA) ========== */

@media all and (display-mode: standalone) and (max-width: 768px) {
  .navbar {
    padding-top: max(env(safe-area-inset-top, 10px), 10px) !important;
    height: calc(65px + env(safe-area-inset-top, 0px)) !important;
  }

  .main-panel {
    margin-top: calc(65px + env(safe-area-inset-top, 0px)) !important;
  }
}

