:root {
  --sidebar-bg: var(--header-bg-color);
  --border-color: rgba(0, 0, 0, 0.08);
  --primary-color: var(--link-color);
  --hover-bg: rgba(var(--link-color-rgb), 0.06);
  --file-card-bg: var(--header-bg-color);
}

.file-sidebar {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 15px 0;
}

.file-sidebar .new-btn {
  border-radius: 24px;
  padding: 12px 24px;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.file-sidebar .new-btn:hover {
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3),
    0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.file-sidebar .nav-link {
  color: #5f6368;
  padding: 10px 12px;
  border-radius: 0 24px 24px 0;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.file-sidebar .nav-link:hover {
  background-color: var(--hover-bg);
  color: #202124;
}

.file-sidebar .nav-link.active {
  background-color: #e8f0fe;
  color: var(--primary-color);
  font-weight: 500;
}

.file-sidebar .nav-link i {
  font-size: 1.1rem;
}

.jstree-container {
  margin-top: 10px;
  margin-bottom: 20px;
  max-height: calc(100vh - 350px);
  min-width: 200px;
  /* overflow-y: auto; */
}

/* .jstree-container::-webkit-scrollbar {
  width: 6px;
}

.jstree-container::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 3px;
} */

#jstree {
  font-size: 14px;
}

.jstree-right-main-content {
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.header-toolbar {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.view-controls button {
  width: 40px;
  height: 40px;
  border-radius: 20%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: large;
}

.view-controls button.active {
  background-color: #e8f0fe;
  color: var(--primary-color);
}

.toolbar {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #5f6368;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #202124;
  text-decoration: underline;
}

.tree-panel {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.3s ease;
  display: none;
}

#jstree {
  font-size: 14px;
}

.files-container {
  flex: 1;
  overflow-y: auto;
  background-color: white;
}

.folder-item-card{
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--file-card-bg, white);
}

.folder-item-card:hover {
  background-color: var(--hover-bg);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.folder-item-card.selected {
  background-color: #e8f0fe;
  border-color: var(--primary-color);
}

.folder-item-card .folder-item-icon {
  font-size: 5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.folder-item-card .folder-item-name {
  font-weight: 500;
  font-size: 14px;
  color: #202124;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
  
.folder-item-card .folder-item-meta {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}

.file-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--file-card-bg, white);
}

.file-card:hover {
  background-color: var(--hover-bg);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.file-card.selected {
  background-color: #e8f0fe;
  border-color: var(--primary-color);
}

.file-card .file-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.file-card .folder-icon {
  color: #5f6368;
}

.file-card .file-icon-doc {
  color: #4285f4;
}

.file-card .file-name {
  font-weight: 500;
  font-size: 14px;
  color: #202124;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card .file-meta {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}

.file-card .file-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.file-card .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-card:hover .btn-icon {
  opacity: 1;
}

.file-card .btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.file-card .btn-star.starred {
  opacity: 1;
  color: #fbbc04;
}

#listView table,
#listRecentView table,
#listFavouritesView table 
#listTrashView
#listSharedView{
  font-size: 14px;
}

#listView tbody tr,
#listRecentView tbody tr,
#listFavouritesView tbody tr,
#listTrashView tbody tr 
#listSharedView tbody tr{
  cursor: pointer;
  transition: background-color 0.2s;
}

#listView tbody tr:hover,
#listRecentView tbody tr:hover,
#listFavouritesView tbody tr:hover,
#listTrashView tbody tr:hover 
#listSharedView tbody tr:hover{
  background-color: var(--hover-bg);
}

#listView tbody tr.selected,
#listRecentView tbody tr.selected,
#listFavouritesView tbody tr.selected,
#listTrashView tbody tr.selected
#listSharedView tbody tr.selected{
  background-color: #e8f0fe;
}

#listView .file-name-cell,
#listRecentView .file-name-cell,
#listFavouritesView .file-name-cell,
#listTrashView .file-name-cell
#listSharedView .file-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

#listView .file-cell-icon
#listRecentView .file-cell-icon,
#listFavouritesView .file-cell-icon,
#listTrashView .file-cell-icon
#listSharedView .file-cell-icon {
  /* font-size: 1.5rem; */
  color: var(--primary-color);
}

#listView .file-icon,
#listRecentView .file-icon,
#listFavouritesView .file-icon,
#listTrashView .file-icon
#listSharedView .file-icon {
  font-size: 1.5rem;
}

#listView .folder-icon,
#listRecentView .folder-icon,
#listFavouritesView .folder-icon,
#listTrashView .folder-icon
#listSharedView .folder-icon {
  color: #5f6368;
}

#listView .file-icon-doc,
#listRecentView .file-icon-doc,
#listFavouritesView .file-icon-doc,
#listTrashView .file-icon-doc
#listSharedView .file-icon-doc {
  color: #4285f4;
}

#listView .action-buttons,
#listRecentView .action-buttons,
#listFavouritesView .action-buttons,
#listTrashView .action-buttons
#listSharedView .action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

#listView tbody tr:hover .action-buttons,
#listRecentView tbody tr:hover .action-buttons,
#listFavouritesView tbody tr:hover .action-buttons,
#listTrashView tbody tr:hover .action-buttons
#listSharedView tbody tr:hover .action-buttons {
  opacity: 1;
}

#listView .btn-icon,
#listRecentView .btn-icon,
#listFavouritesView .btn-icon,
#listTrashView .btn-icon
#listSharedView .btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#listView .btn-icon:hover,
#listRecentView .btn-icon:hover,
#listFavouritesView .btn-icon:hover,
#listTrashView .btn-icon:hover
#listSharedView .btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#listView .btn-icon-settings,
#listRecentView .btn-icon-settings,
#listFavouritesView .btn-icon-settings,
#listTrashView .btn-icon-settings
#listSharedView .btn-icon-settings {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 
#listView .btn-icon-settings:hover {
  background-color: rgba(0, 0, 0, 0.1);
} */

#listView .btn-star.starred,
#listRecentView .btn-star.starred,
#listFavouritesView .btn-star.starred,
#listTrashView .btn-star.starred 
#listSharedView .btn-star.starred {
  opacity: 1 !important;
  color: #fbbc04;
}

@media (max-width: 768px) {
  .file-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s;
  }

  .file-sidebar.show {
    left: 0;
  }

  .jstree-right-main-content {
    margin-left: 0 !important;
  }
}
/* 
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
} */

.jstree-default .jstree-clicked {
  background: #e8f0fe !important;
  color: var(--primary-color) !important;
  /* border-radius: 0 24px 24px 0; */
}

.jstree-default .jstree-hovered {
  background: var(--hover-bg) !important;
  /* border-radius: 0 24px 24px 0; */
}

.jstree-default .jstree-icon {
  color: #5f6368;
}

/* .jstree-default .jstree-anchor {
  padding: 6px 8px;
  border-radius: 0 24px 24px 0;
  margin-bottom: 2px;
} */

#jstree .jstree-anchor {
  align-items: center;
  font-size: 14px;
  line-height: 24px;
}

#jstree .fa,
#jstree .fas,
#jstree .far {
  margin-right: 8px;
  width: 18px;
  text-align: center;
  font-size: 16px;
}

#jstree .fa-hdd {
  color: #5f6368;
}

#jstree .fa-user-friends {
  color: #1a73e8;
}

#jstree .fa-clock {
  color: #34a853;
}

#jstree .fa-share-alt-square {
  color: #1a73e8;
}

#jstree .fa-star {
  color: #fbbc04;
}

#jstree .fa-trash-alt {
  color: #ea4335;
}

#jstree .fa-folder {
  color: #5f6368;
}

#jstree {
  font-size: 14px;
}

.jstree-default .jstree-open > .jstree-ocl {
  background-position: -36px -4px;
}

.jstree-default .jstree-closed > .jstree-ocl {
  background-position: -4px -4px;
}

.jstree-container .jstree-container-ul {
  padding-left: 0;
}

#jstree > ul > li > a {
  font-weight: 500;
}

.jstree-table {
    table-layout: fixed;
    width: 100%;
}

.jstree-table td {
    white-space: normal; 
    word-wrap: break-word;
    overflow: hidden;
}

#jstree-create-folder,
#jstree-upload-files {
  cursor: pointer;
}

.jstree-general-access-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #6c757d;
  margin-right: 1rem; 
}