@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --primary: #4f46e5;
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --hover-bg: #f9fafb;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 20px;
  font-size: 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Header */
header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Table styling */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: #f9fafb;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
}

th a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--hover-bg);
}

/* File items */
.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.file-name i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

a.item-link {
  text-decoration: none;
  color: var(--text-main);
  flex-grow: 1;
}

a.item-link:hover {
  color: var(--primary);
}

/* Badges & Text util */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background-color: #e0e7ff;
  color: #4338ca;
  font-weight: 500;
}

.text-sm {
  font-size: 13px;
  color: var(--text-muted);
}

/* Utility colors override for icons */
.text-danger {
  color: #ef4444;
}
.text-primary {
  color: #3b82f6;
}
.text-success {
  color: #10b981;
}
.text-warning {
  color: #f59e0b;
}
.text-info {
  color: #06b6d4;
}
.text-secondary {
  color: #6b7280;
}
.text-muted {
  color: #9ca3af;
}

.fa-sort-up,
.fa-sort-down {
  color: var(--primary); /* Màu xanh chủ đạo */
  margin-left: 5px;
}

.fa-sort.text-muted {
  color: #d1d5db; /* Màu xám nhạt */
  margin-left: 5px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  th:nth-child(3), td:nth-child(3), /* Size */
    th:nth-child(4), td:nth-child(4)  /* Date */ {
    display: none;
  }
  .file-name {
    font-size: 14px;
  }
}
