/* =========================================================
   FILE CENTER – BASE
========================================================= */
.file-center {
  padding: 48px;
}

.file-center-header {
  margin-bottom: 32px;
}

.file-center-header h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
}

.file-center-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================================
   LAYOUT
========================================================= */
.file-center-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

/* =========================================================
   FOLDERS (LEFT)
========================================================= */
.file-center-folders {
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 12px;
}

.file-center-folders ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-center-folders li {
  list-style: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}

.file-center-folders li:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.file-center-folders li.active {
  background: var(--accent-soft);
  color: var(--text-main);
}

/* =========================================================
   FILE TABLE (RIGHT)
========================================================= */
.file-center-files {
  display: flex;
  flex-direction: column;
}

/* HEADER */
.file-head {
  display: grid;
  grid-template-columns: 1fr 140px 100px 48px;
  align-items: center;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ROW */
.file-row {
  display: grid;
  grid-template-columns: 1fr 140px 100px 48px;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

.file-row:first-of-type {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.file-row:hover {
  background: var(--bg-panel);
}

/* COLUMNS */
.file-name {
  font-weight: 500;
}

.file-date,
.file-size {
  font-size: 12px;
  color: var(--text-muted);
}

/* ACTIONS */
.file-action {
  display: flex;
  justify-content: flex-end;
}

.file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
}

.file-download:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}


.file-center-folders .folder.active {
  background: var(--accent-soft);
  color: var(--text-main);
  font-weight: 500;
}

.file-center-folders .folder {
  transition: background 0.15s ease, color 0.15s ease;
}


.folder-child {
  display: none;
  padding-left: 18px;
  font-size: 12px;
  opacity: 0.85;
}
