/* 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;
  height: 40px;
}
.top-header-search #search {
  padding: 12px;
  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;
}

.search-highlight {
  outline: 2px solid #007bff;
  background: rgba(0, 123, 255, 0.1);
  transition: all 0.5s ease;
}

.home-tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.category-tile {
  width: 450px;
  height: 450px;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}
.category-tile:hover {
  transform: scale(1.02);
}
.category-tile span {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 100%;
  padding: 20px;
  font-size: 1.5rem;
}

/**
  PDF, EXCEL logo
*/

/* 🔹 Main grid container */
.files-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 🔹 Each item (card style) */
.files-grid .files-a {
  display: flex;
  flex-direction: column; /* stack icon + text */
  align-items: center; /* horizontal center */
  justify-content: center; /* vertical center */
  text-align: center;

  width: 140px;
  height: 140px;

  padding: 10px;
  border-radius: 8px;

  text-decoration: none;
}

/* 🔹 ICON CONTAINER */
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 80px; /* 🔥 gives vertical space */

  margin-bottom: 8px;
}

/* 🔹 ICON SIZE */
.file-icon i {
  font-size: 60px;
  line-height: 1;
}

/* 🔹 TEXT SECTION */
.files-data {
  width: 100%;
}

/* 🔹 FILE NAME */
.files-data .name {
  font-size: 13px;
  display: block;
  word-break: break-word;
}

/* 🔹 EXTENSION */
.files-data .ext {
  font-size: 11px;
  color: #777;
}

.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;
}
#topbar-info {
  display: none !important;
}

/* 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;
  }
} */
