/* ═══════════════════════════════════════════════
   PropSearch — CSS
   Aesthetic: Industrial minimal, dark slate + amber
═══════════════════════════════════════════════ */

:root {
  --bg: #0f1117;
  --bg2: #171b24;
  --bg3: #1e2330;
  --surface: #1a1f2e;
  --surface2: #222840;
  --border: #2a3045;
  --border2: #3a4560;
  --amber: #f5a623;
  --amber2: #ffbe4d;
  --amber-dim: rgba(245,166,35,0.12);
  --amber-glow: rgba(245,166,35,0.25);
  --text: #e8eaf0;
  --text2: #8b92a8;
  --text3: #5a6175;
  --green: #22c55e;
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --green-dim: rgba(34,197,94,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Syne', sans-serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  font-size: 22px;
  color: var(--amber);
  line-height: 1;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber);
  background: var(--amber-dim);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.user-badge {
  font-size: 0.78rem;
  color: var(--text2);
  font-family: var(--mono);
}

.nav-logout {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-logout:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-dim);
}

/* Role pills in navbar */
.role-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.role-pill.role-superadmin {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber-glow);
}

.role-pill.role-agent {
  background: rgba(99,179,237,0.12);
  color: #63b3ed;
  border: 1px solid rgba(99,179,237,0.25);
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */

.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ─── Flash Bar ─── */
.flash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.flash-bar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.6;
  color: inherit;
}

.flash-success {
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--green);
}

.flash-error {
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--red);
}

/* ─── Page Header ─── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.page-sub {
  font-size: 0.84rem;
  color: var(--text3);
  margin-top: 5px;
}

.file-count-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--amber-dim);
  border: 1px solid var(--amber-glow);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-align: right;
}

.file-count-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.file-count-label {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════ */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}

.field-label svg { opacity: 0.7; }

.field-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.field-input::placeholder { color: var(--text3); }

.field-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: #0f0f0f;
}

.btn-primary:hover {
  background: var(--amber2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--amber-glow);
}

.btn-ghost {
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg3);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.btn-full { width: 100%; justify-content: center; }

.btn-sm { font-size: 0.8rem; padding: 7px 14px; }

/* ═══════════════════════════════════════════════
   SEARCH CARD
═══════════════════════════════════════════════ */

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .search-grid { grid-template-columns: 1fr; }
}

.search-actions {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   RESULTS
═══════════════════════════════════════════════ */

.results-section {
  margin-bottom: 40px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.results-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.results-count {
  font-size: 0.8rem;
  color: var(--text3);
  font-family: var(--mono);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table thead {
  background: var(--surface2);
}

.results-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tbody tr {
  background: var(--bg2);
  transition: background 0.1s;
}

.results-table tbody tr:nth-child(even) {
  background: var(--surface);
}

.results-table tbody tr:hover {
  background: var(--bg3);
}

.row-num {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.78rem;
  width: 40px;
}

.cell-owner { font-weight: 600; color: var(--text); min-width: 160px; }
.cell-mono { font-family: var(--mono); font-size: 0.83rem; color: var(--text2); min-width: 130px; }
.cell-address { color: var(--text2); min-width: 200px; max-width: 300px; line-height: 1.5; }

.cell-source { white-space: nowrap; }

.source-chip {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 4px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.sheet-chip {
  display: inline-block;
  background: var(--surface2);
  color: var(--text3);
  font-size: 0.68rem;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text3);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 0.85rem;
  color: var(--text3);
}

/* ═══════════════════════════════════════════════
   FILE MANAGER
═══════════════════════════════════════════════ */

.files-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.empty-files {
  text-align: center;
  padding: 30px;
  color: var(--text3);
  font-size: 0.85rem;
}

.files-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  margin-bottom: 16px;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.files-table th {
  background: var(--bg3);
  padding: 9px 14px;
  text-align: left;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}

.files-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.files-table tbody tr:last-child td { border-bottom: none; }
.files-table tbody tr { background: var(--bg2); transition: background 0.1s; }
.files-table tbody tr:hover { background: var(--bg3); }

.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
}

.file-name svg { opacity: 0.5; flex-shrink: 0; }

.file-size, .file-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  white-space: nowrap;
}

.file-action { width: 40px; }

.btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delete:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-dim);
}

/* ─── Drop Zone ─── */
.drop-zone {
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 0.83rem;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════ */

.login-page {
  display: flex;
  min-height: 100vh;
}

.login-deco {
  flex: 1;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}

.deco-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deco-text span {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: transparent;
  -webkit-text-stroke: 1px var(--border2);
}

.deco-text span:nth-child(2) {
  color: var(--amber);
  -webkit-text-stroke: 0;
}

@media (max-width: 700px) {
  .login-deco { display: none; }
}

.login-panel {
  width: 420px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 44px;
  background: var(--bg);
}

@media (max-width: 700px) {
  .login-panel { width: 100%; padding: 40px 24px; }
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  font-size: 2.5rem;
  color: var(--amber);
  margin-bottom: 12px;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-hint {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text3);
  font-family: var(--mono);
}

/* ─── Alert ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ═══════════════════════════════════════════════
   USER MANAGEMENT PAGE
═══════════════════════════════════════════════ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.add-user-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.role-chip.role-superadmin {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber-glow);
}

.role-chip.role-agent {
  background: rgba(99,179,237,0.12);
  color: #63b3ed;
  border: 1px solid rgba(99,179,237,0.25);
}

/* fallback for old .role-chip without modifier */
.role-chip:not(.role-superadmin):not(.role-agent) {
  background: var(--amber-dim);
  color: var(--amber);
}

.protected-label {
  font-size: 0.72rem;
  color: var(--text3);
  font-family: var(--mono);
  font-style: italic;
}

/* ─── Upload trigger ─── */
.upload-trigger {
  cursor: pointer;
}

/* ─── Drag-over highlight ─── */
body.drag-active .drop-zone {
  border-color: var(--amber);
  background: var(--amber-dim);
  color: var(--amber);
}

/* ═══════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════ */

.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 800px) {
  .profile-layout { grid-template-columns: 1fr; }
}

.profile-info-card {}

.profile-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}

.profile-info-value {
  font-size: 0.88rem;
  color: var(--text);
  text-align: right;
}

/* Permissions list */
.perm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.perm-list li {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.perm-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.perm-ok {
  color: var(--green);
}
.perm-ok::before { background: var(--green); }

.perm-no {
  color: var(--text3);
  text-decoration: line-through;
}
.perm-no::before { background: var(--text3); }

/* Card hint */
.card-hint {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.5;
}

.card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text3);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-family: var(--mono);
}

/* Optional / Required labels in form */
.optional-label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text3);
  font-size: 0.72rem;
}

.required-label {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--amber);
  font-size: 0.72rem;
}

/* Select field */
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6175' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Role info box in add user form */
.role-info-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text3);
}

/* ═══════════════════════════════════════════════
   FILE MANAGER PAGE
═══════════════════════════════════════════════ */

.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.drop-zone-lg {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone-lg:hover,
.drop-zone-lg.drag-over {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.drop-zone-icon {
  color: var(--text3);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.drop-zone-lg:hover .drop-zone-icon,
.drop-zone-lg.drag-over .drop-zone-icon {
  color: var(--amber);
}

.drop-zone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text2);
}

.drop-zone-sub {
  font-size: 0.78rem;
  color: var(--text3);
}

.file-label-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.file-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text3);
  font-style: italic;
  margin-top: 2px;
}

.file-name-text {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  word-break: break-all;
}

/* Info legend */
.info-legend {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legend-icon {
  color: var(--text3);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-legend p {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.6;
}

.info-legend strong {
  color: var(--text2);
}

.info-legend em {
  color: var(--amber);
  font-style: normal;
}

/* Search logic note */
.search-logic-note {
  font-size: 0.72rem;
  color: var(--amber);
  font-family: var(--mono);
  background: var(--amber-dim);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--amber-glow);
}

/* file-count-badge as link */
a.file-count-badge {
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

a.file-count-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--amber-glow);
}

/* ═══════════════════════════════════════════════
   CACHE STATS & FILE MANAGER ADDITIONS
═══════════════════════════════════════════════ */

.cache-stats-badge {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cache-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
}

.cache-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.cache-label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.cache-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Cache status pills */
.cache-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.cache-hit {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

.cache-miss {
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border);
}

/* Re-index button */
.btn-reindex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reindex:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--amber-dim);
}
