.topbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  padding-bottom: 10px;
  background: var(--bg-light);
  z-index: 20;
}

#top-region {
  flex-shrink: 0;
  z-index: 19;
  padding-bottom: 0;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

/* --- SCROLLABLE CONTENT AREA --- */
#main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-top: 0;
  padding-bottom: 80px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#main-content::-webkit-scrollbar {
  display: none;
}

/* --- STICKY HEADER  --- */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg-light);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* --- BOTTOM NAV  --- */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  background: var(--card-white);
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 60;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nav-item img {
  height: 30px;
  width: 30px;
}
.nav-item.active {
  color: var(--primary-blue);
  font-weight: 600;
}

/* --- FILTER BUTTONS --- */
.filter-bar {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter {
  background: var(--card-white);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.filter.active {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(19, 116, 237, 0.3);
}

/* --- COMPONENTS --- */
.search-bar {
  position: relative;
  width: 100%;
}
.search-bar input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  border: none;
  background: var(--card-white);
  box-shadow: var(--shadow-1);
  font-size: 15px;
  color: var(--blaq);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  opacity: 0.5;
}

.category-cards {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-card-icon img {
  width: 36px;
  height: 36px;
}
.category-card {
  /* min-width: 110px; */
  max-width: 100%;
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-1);
  flex-shrink: 0;
}

.password-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-white);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.password-item img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}
.password-meta {
  flex: 1;
  min-width: 0;
}
.password-title {
  font-weight: 600;
  color: var(--blaq);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.password-sub {
  font-size: 13px;
  color: var(--text);
  margin-top: 2px;
}

.btn-dots {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px; 
  line-height: 1;
  color: var(--text); 
  transition: all 0.2s ease;
}

.btn-dots:hover {
  background-color: rgba(0, 0, 0, 0.05); 
  color: var(--blaq); 
}

.btn-dots:active {
  transform: scale(0.9); 
  background-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  #main-content {
    padding-top: 20px;
  }
  .items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }
  .category-section {
    margin-bottom: 40px;
    width: 100%;
  }
  .category-header {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--blaq);
  }
  .password-item {
    margin-bottom: 0;
    height: 100%;
  }
}

/* flotting add button in password page */
.fab {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--card-white);
  font-size: 30px;
  border: none;
  box-shadow: 0 10px 20px rgba(19, 116, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  cursor: pointer;
}
