/* ===== CSS COLOR VARIABLES ===== */
:root {
  /* Navbar Variables */
  --header-height: 70px;
}

/* ===== NAVBAR STYLES ===== */
.admin-navbar {
  background: var(--bg-white);
  height: var(--header-height);
  border-bottom: 1px solid var(--bg-neutral);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  background: var(--bg-primary-light);
  color: var(--bg-primary);
}

.sidebar-toggle-btn:active {
  transform: scale(0.95);
}

.page-title h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===== USER DROPDOWN STYLES ===== */
.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  min-height: 44px;
}

.user-dropdown-btn:hover {
  background: var(--bg-neutral);
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--bg-neutral);
  min-height: 44px;
}

.dropdown-item-main:last-child {
  border-bottom: none;
}

.dropdown-item-main:hover {
  background: var(--bg-primary-light);
  color: var(--bg-primary);
}

/* Override Bootstrap's active state for dropdown-item-main */
.dropdown-item-main.active,
.dropdown-item-main:active {
  color: var(--bg-primary) !important;
  background-color: var(--bg-primary-light) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .admin-navbar {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .admin-navbar {
    padding: 0 15px;
  }

  .page-title h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .admin-navbar {
    padding: 0 10px;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-right {
    gap: 10px;
  }

  .user-dropdown-btn span {
    display: none;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .admin-navbar {
    height: 60px;
  }
}

/* ===== TOUCH DEVICE STYLES ===== */
@media (hover: none) {
  .sidebar-toggle-btn:active {
    background: var(--bg-primary-light);
  }
}
