/* Container Reset */
#files-container #files.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)) !important;
  gap: 25px !important;
  padding: 20px 0 !important;
}

/* Fix Fullscreen and Search UI spacing */
#topbar-top .btn-topbar {
  border-radius: 8px;
  padding: 8px;
  margin-left: 5px;
  border: 1px solid #eee;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  background-color: white;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 6px;
}

.view-btn.active {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
}

.sort-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  background-color: white;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* add new css 2nd march 2026 */

.top-header-search > svg {
  display: none;
}
.top-header-search {
  max-width: 550px;
  border: 1px solid #e9ecef !important;
  background-color: #f8f9fa !important;
  color: #000;
  box-shadow: none;
  border-radius: 8px;
  max-height: 40px;
}
.top-header-search #search {
  padding: 7px;
  border: none !important;
  background-color: transparent !important;
  color: #000;
  box-shadow: none;
  padding-left: 38px;
}
.top-header-search #search:hover {
  box-shadow: none;
}
.header-controls > #topbar-top {
  background: transparent !important;
}

button#change-layout {
  border: none;
  background-color: transparent;
  padding: 0;
}
#change-layout.active > button {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}
#topbar-top > button {
  padding: 0;
  border: none;
  background-color: transparent;
}
#topbar-top > button > button:hover {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}
#topbar-top > button:last-child:hover {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}

.top-header-search > i.bi-search {
  left: 16px;
}
#breadcrumbs .crumb a > svg,
#folder-actions > svg {
  fill: #667eea;
}
#breadcrumbs .crumb a {
  text-decoration: none;
  /* color: #667eea; */
  color: #212529bf;
}
#breadcrumbs .crumb::before {
  color: #212529bf;
}
#topbar-breadcrumbs {
  background: transparent;
}
.folder-info .breadcrumbs-info-size:before,
.folder-info .breadcrumbs-info-size {
  color: #212529bf;
}

.border-0 {
  margin-bottom: 20px;
  border: 0 !important;
}
/* .breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: #212529;
  
} */
/* .crumb-link {
  color: #667eea;
}

#topbar-breadcrumbs {
  background: #eceff1;
}

.crumb-active .crumb-link {
  color: #212529;
}
.crumb-link:hover {
  color: #212529;
} */

/* 2. Force the tile height and look */
/* #files .files-a {
  width: 450px !important;
  height: 450px !important;
  min-height: 450px !important;
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Make the Preview Image fill the top 80% of the tile */

/* 4. Text Overlay: Dark gradient at the bottom for readability */
/* #files .files-data {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100px !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 15px !important;
  z-index: 5 !important;
} */

/* 5. Style the Category Name */
/* #files .files-data .name {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
} */

/* 6. Hide unnecessary details (dates, extensions) on the home tiles */

/* 7. Hover animation */

/* Responsive: Scale down for mobile screens */
/* @media (max-width: 500px) {
  #files-container #files {
    grid-template-columns: 1fr !important;
  }
  #files .files-a {
    height: 100vw !important;
    min-height: 100vw !important;
  }
} */
