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

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

:root {
  --td: #193C3C;
  --tm: #00505A;
  --tl: #E6F0F1;
  --gold: #A59664;
  --red: #A32D2D;
  --red-light: #FCEBEB;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --green: #3B6D11;
  --green-light: #EAF3DE;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #dde3e3;
  --bg: #f5f7f7;
  --white: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.seal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Electrolize', monospace;
  font-size: 11px;
  color: var(--td);
  font-weight: 600;
  flex-shrink: 0;
}
.seal-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Electrolize', monospace;
  font-size: 14px;
  color: var(--td);
  letter-spacing: 0.04em;
}
.back-link {
  font-size: 13px;
  color: rgba(25,60,60,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--td); }

.hero {
  background: var(--td);
  padding: 36px 40px 30px;
  border-bottom: 3px solid var(--gold);
}
.hero-label {
  font-family: 'Electrolize', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: 'Electrolize', monospace;
  font-size: 28px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.next-bar {
  background: var(--tl);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.next-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tm);
  flex-shrink: 0;
}
.next-text {
  font-size: 13px;
  color: var(--tm);
}
.next-text strong { font-weight: 500; }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.stat-tile-accent {
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Electrolize', monospace;
  font-size: 20px;
  color: var(--td);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--tm);
}

.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 40px 60px;
  width: 100%;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.folder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.folder-card:hover {
  border-color: var(--tm);
  transform: translateY(-2px);
}
.folder-top {
  background: var(--td);
  padding: 18px 18px 14px;
}
.folder-icon-wrap {
  margin-bottom: 10px;
}
.folder-name {
  font-family: 'Electrolize', monospace;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.folder-bottom {
  padding: 14px 18px;
}
.folder-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.folder-count {
  font-size: 12px;
  color: var(--tm);
  font-weight: 500;
}
.folder-arrow {
  font-size: 12px;
  color: var(--tm);
  margin-top: 10px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--tm); color: var(--tm); }
.filter-btn.active { background: var(--td); color: #fff; border-color: var(--td); }

.quick-section { margin-top: 36px; }
.quick-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quick-head {
  background: var(--td);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quick-head-title {
  font-family: 'Electrolize', monospace;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
}
.meeting-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-upcoming { background: var(--gold); color: var(--td); }
.badge-complete { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.badge-special { background: var(--tm); color: #fff; }

.file-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  gap: 12px;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: #fafcfc; }
.file-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.file-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Electrolize', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.icon-pdf { background: var(--red-light); color: var(--red); }
.icon-doc { background: var(--blue-light); color: var(--blue); }
.icon-xlsx { background: var(--green-light); color: var(--green); }
.icon-file { background: #f0f0f0; color: #666; }
.file-info { min-width: 0; }
.file-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.file-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.file-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}
.tag-agenda { background: var(--tl); color: var(--tm); }
.tag-minutes { background: #FAEEDA; color: #854F0B; }
.tag-draft { background: var(--red-light); color: var(--red); }
.file-view {
  font-size: 12px;
  color: var(--tm);
  border: 1px solid var(--tm);
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.file-view:hover { background: var(--tm); color: #fff; }

.no-docs {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background 0.1s;
}
.quick-row:last-child { border-bottom: none; }
.quick-row:hover { background: #fafcfc; }
.quick-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-name { font-size: 13px; color: var(--text); font-weight: 500; }
.quick-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.quick-view {
  font-size: 12px;
  color: var(--tm);
  border: 1px solid var(--tm);
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.quick-view:hover { background: var(--tm); color: #fff; }

.error-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

footer {
  background: var(--td);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
footer span { font-size: 12px; color: rgba(255,255,255,0.45); }
footer a { font-size: 12px; color: var(--gold); text-decoration: none; }

@media (max-width: 700px) {
  .topbar { padding: 0 16px; height: 50px; }
  .brand-name { font-size: 11px; }
  .hero { padding: 24px 16px 20px; }
  .hero h1 { font-size: 22px; }
  .next-bar { padding: 10px 16px; }
  .stat-tiles { grid-template-columns: 1fr 1fr; padding: 16px 16px 0; gap: 10px; }
  .stat-tiles .stat-tile:first-child { grid-column: 1 / -1; }
  .stat-value { font-size: 17px; }
  .page-body { padding: 20px 16px 40px; }
  .folder-grid { grid-template-columns: 1fr; gap: 12px; }
  .file-row { padding: 10px 12px; }
  .file-name { font-size: 12px; }
  footer { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
}
