/* ─── RESET & BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  /* Palette — light, formal, navy-anchored */
  --bg:      #f4f5f7;
  --bg2:     #ffffff;
  --bg3:     #eef0f3;
  --border:  #d0d5dd;
  --border2: #b0b8c8;

  --navy:    #1a2744;
  --navy2:   #243459;
  --navy3:   #2e4070;

  --text:    #1a2035;
  --text2:   #4a5568;
  --text3:   #8a96a8;

  --accent:  #1a5fb4;
  --accent2: #1d6fd4;
  --accent-light: rgba(26,95,180,0.08);

  --green:   #1a7a3f;
  --green-bg:#eaf6ee;
  --yellow:  #92600a;
  --yellow-bg:#fef3d0;
  --red:     #b91c1c;
  --red-bg:  #fef2f2;
  --orange:  #9a3c0a;
  --orange-bg:#fff3e0;
  --purple:  #5b21b6;
  --purple-bg:#f3f0ff;

  --radius:    6px;
  --radius-sm: 4px;
  --shadow:    0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; font-size: 0.9375rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; }
textarea, input, select { font-family: inherit; font-size: 0.9rem; }
h1, h2, h3 { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.main-content { padding: 2rem 2rem 4rem; }

/* ─── NAVBAR ────────────────────────────────────────────────────────────── */
.navbar, .admin-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.navbar .container, .admin-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 2rem;
}
.brand { font-size: 1rem; font-weight: 700; color: #ffffff; letter-spacing: 0.01em; text-transform: uppercase; }
.brand:hover { text-decoration: none; color: #e2e8f0; }
.badge-admin { background: var(--accent); color: #fff; font-size: 0.6rem; padding: 2px 6px; border-radius: 2px; vertical-align: middle; margin-left: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a { color: #c8d3e8; font-size: 0.82rem; font-weight: 500; padding: 6px 14px; border-radius: 0; transition: all .12s; letter-spacing: .01em; text-transform: uppercase; }
.nav-links a:hover { color: #ffffff; background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-link { background: none; color: #c8d3e8; font-size: 0.82rem; font-weight: 500; padding: 6px 14px; border-radius: 0; transition: all .12s; text-transform: uppercase; letter-spacing: .01em; }
.btn-link:hover { color: #fca5a5; background: rgba(220,38,38,0.12); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: all .12s; cursor: pointer; white-space: nowrap; letter-spacing: .01em;
}
.btn:hover { background: var(--accent2); color: #fff; text-decoration: none; box-shadow: var(--shadow-md); }
.btn-outline {
  display: inline-flex; align-items: center;
  background: var(--bg2); color: var(--text2); font-weight: 600; font-size: 0.85rem;
  padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border2);
  transition: all .12s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg2); color: var(--text2); font-size: 0.78rem; font-weight: 500;
  padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: all .12s; cursor: pointer; white-space: nowrap; letter-spacing: .01em;
}
.btn-sm:hover { border-color: var(--border2); color: var(--text); text-decoration: none; }
.btn-success { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }
.btn-success:hover { opacity: .88; }
.btn-danger  { background: var(--red-bg) !important; color: var(--red) !important; border-color: rgba(185,28,28,.3) !important; }
.btn-danger:hover { background: #fee2e2 !important; }
.full-width { width: 100%; justify-content: center; }

/* ─── FLASH MESSAGES ────────────────────────────────────────────────────── */
.flash {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 1.5rem;
  font-size: 0.875rem; line-height: 1.5; border-left: 4px solid;
}
.flash-success { background: var(--green-bg); border-color: var(--green); color: #145a30; }
.flash-error   { background: var(--red-bg);   border-color: var(--red);   color: var(--red); }
.flash-warning { background: var(--yellow-bg); border-color: var(--yellow); color: var(--yellow); }
.flash-close   { background: none; border: none; color: inherit; font-size: 1.1rem; cursor: pointer; padding: 0 4px; opacity: .5; }
.flash-close:hover { opacity: 1; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.hero h1 { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: .4rem; }
.hero p  { color: #a8badc; font-size: 0.95rem; margin-bottom: 2rem; }
.stats-row { display: flex; gap: 2.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 3px; }
.stat { color: #8eacd4; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ─── SECTION TITLE ─────────────────────────────────────────────────────── */
.section-title { font-size: 0.72rem; font-weight: 700; color: var(--text3); margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }

/* ─── PROJECT GRID ──────────────────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.project-card {
  display: block; background: var(--bg2);
  padding: 1.5rem; transition: background .12s;
  color: var(--text); border-left: 4px solid transparent;
}
.project-card:hover { background: #f8fafc; border-left-color: var(--accent); text-decoration: none; }
.project-card-icon { font-size: 1.4rem; margin-bottom: .6rem; }
.project-card h3  { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.project-card p   { color: var(--text2); font-size: 0.85rem; margin-bottom: .75rem; line-height: 1.5; }
.project-link     { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: .01em; }

/* ─── PAGE HEADER ───────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 2px solid var(--border);
}
.page-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.subtitle { color: var(--text2); margin-top: .2rem; font-size: 0.875rem; }
.breadcrumb { display: inline-flex; align-items: center; gap: 5px; color: var(--text3); font-size: 0.8rem; margin-bottom: .75rem; font-weight: 500; }
.breadcrumb:hover { color: var(--accent); text-decoration: none; }

/* ─── REPORT LIST ───────────────────────────────────────────────────────── */
.report-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.report-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem; color: var(--text); transition: background .1s;
}
.report-card:last-child { border-bottom: none; }
.report-card:hover { background: #f6f8fb; text-decoration: none; }
.report-importance { text-align: center; min-width: 48px; padding: 6px 8px;
  border-radius: var(--radius-sm); flex-shrink: 0; }
.imp-high { background: var(--red-bg); border: 1px solid rgba(185,28,28,.2); }
.imp-med  { background: var(--yellow-bg); border: 1px solid rgba(146,96,10,.2); }
.imp-low  { background: var(--green-bg); border: 1px solid rgba(26,122,63,.2); }
.imp-num  { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1; }
.imp-high .imp-num { color: var(--red); }
.imp-med  .imp-num { color: var(--yellow); }
.imp-low  .imp-num { color: var(--green); }
.imp-label { font-size: 0.6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
.report-info { flex: 1; min-width: 0; }
.report-info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.report-desc { color: var(--text2); font-size: 0.82rem; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.report-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.76rem; color: var(--text3); align-items: center; }
.report-arrow { color: var(--text3); flex-shrink: 0; font-size: .8rem; }

/* ─── STATUS BADGES ─────────────────────────────────────────────────────── */
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-open        { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(185,28,28,.25); }
.status-in_progress { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(146,96,10,.25); }
.status-resolved    { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(26,122,63,.25); }
.status-closed      { background: var(--bg3);       color: var(--text3);  border: 1px solid var(--border); }
.status-wontfix     { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(91,33,182,.25); }

.imp-badge { display: inline-block; padding: 2px 10px; border-radius: 2px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.imp-badge.imp-high { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(185,28,28,.2); }
.imp-badge.imp-med  { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(146,96,10,.2); }
.imp-badge.imp-low  { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(26,122,63,.2); }
.imp-badge-sm { display: inline-block; padding: 2px 7px; border-radius: 2px; font-size: 0.72rem; font-weight: 700; }
.imp-badge-sm.imp-high { color: var(--red); background: var(--red-bg); }
.imp-badge-sm.imp-med  { color: var(--yellow); background: var(--yellow-bg); }
.imp-badge-sm.imp-low  { color: var(--green); background: var(--green-bg); }
.badge-pending { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(146,96,10,.2); font-size: .7rem; padding: 2px 7px; border-radius: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge, .badge-active { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--green-bg); color: var(--green); border: 1px solid rgba(26,122,63,.2); }
.badge-inactive { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.badge-admin-sm { background: var(--accent); color: #fff; font-size: 0.62rem; padding: 1px 5px; border-radius: 2px; margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; max-width: 860px;
  box-shadow: var(--shadow);
}
.form-card.no-shadow { box-shadow: none; border: none; background: none; padding: 0; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.form-group.required label::after { content: ' *'; color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.form-row .form-group { margin-bottom: 1.1rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea {
  background: var(--bg2); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 11px; width: 100%; transition: border-color .12s, box-shadow .12s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,95,180,0.1); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--border); }
.checkbox-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem !important; color: var(--text) !important; text-transform: none !important; letter-spacing: 0 !important; }
.checkbox-label input { width: auto; }

/* ─── IMPORTANCE SLIDER ─────────────────────────────────────────────────── */
.importance-slider { display: flex; align-items: center; gap: 1rem; }
.importance-slider input[type=range] { flex: 1; accent-color: var(--accent); }
.imp-display {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: 1.2rem; font-weight: 800; color: var(--navy);
}

/* ─── CAPTCHA ───────────────────────────────────────────────────────────── */
.captcha-group { background: #f0f4fa; border: 1px solid #c7d4e8; border-radius: var(--radius-sm); padding: 1rem; border-left: 4px solid var(--accent); }
.captcha-input { max-width: 150px; }

/* ─── UPLOAD ZONE ───────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border2); border-radius: var(--radius);
  padding: 2rem; text-align: center; transition: all .15s; cursor: pointer;
  background: var(--bg3);
}
.upload-zone.dragover, .upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.upload-hint { font-size: 0.78rem; color: var(--text3); }
.upload-link { color: var(--accent); cursor: pointer; font-weight: 600; }
.hidden-file { display: none; }
.preview-list { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; justify-content: center; }
.preview-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.preview-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.preview-item span { font-size: 0.7rem; color: var(--text3); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── REPORT DETAIL ─────────────────────────────────────────────────────── */
.report-detail-header { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--border); }
.report-detail-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.meta-item { font-size: 0.8rem; color: var(--text3); }
.detail-grid { display: grid; gap: 1rem; }
.detail-main { display: flex; flex-direction: column; gap: 1rem; }
.detail-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.detail-section h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.detail-section p  { color: var(--text); font-size: 0.9rem; line-height: 1.7; }
.behavior-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.behavior-expected { border-left: 4px solid var(--green); }
.behavior-actual   { border-left: 4px solid var(--red); }
.section-admin-notes { border-left: 4px solid var(--accent); background: #f0f4fa; }
.env-code { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--navy); padding: 8px 12px; background: var(--bg3); border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ─── IMAGE GALLERY ─────────────────────────────────────────────────────── */
.image-gallery { display: flex; gap: .75rem; flex-wrap: wrap; }
.gallery-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gallery-item img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: opacity .15s; }
.gallery-item:hover img { opacity: .85; }
.gallery-item span { font-size: 0.72rem; color: var(--text3); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.gallery-item-admin { display: flex; flex-direction: column; gap: 6px; }
.gallery-item-admin img { width: 130px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.gallery-meta { display: flex; flex-direction: column; gap: 4px; max-width: 130px; }
.gallery-meta span { font-size: 0.72rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; }

/* ─── COMMENTS ──────────────────────────────────────────────────────────── */
.discussion-section { margin-top: 1rem; }
.discussion-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }
.comments-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comment { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
.comment:last-child { border-bottom: none; }
.comment-admin { background: #f0f4fa; border-left: 4px solid var(--accent); }
.comment-pending { background: #fffbeb; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.comment-author { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.comment-date   { font-size: 0.75rem; color: var(--text3); }
.comment-body   { font-size: 0.88rem; color: var(--text); line-height: 1.65; }
.comment-admin-actions { display: flex; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.comment-form-wrap { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.comment-form-wrap h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.comment-notice { font-size: 0.76rem; color: var(--text3); margin-top: .5rem; }
.no-comments { color: var(--text3); font-size: 0.875rem; margin-bottom: 1rem; }
.admin-comment-form { background: #f0f4fa; border: 1px solid #c7d4e8; border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.admin-comment-form textarea { background: var(--bg2); }
.comment-on { font-weight: 400; color: var(--text2); margin-left: .4rem; font-size: .82rem; }
.comment-on a { color: var(--accent); }

/* ─── ADMIN BODY ────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.admin-page-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01px; margin-bottom: 1.5rem; color: var(--navy); padding-bottom: .75rem; border-bottom: 2px solid var(--border); }

/* ─── STAT CARDS ────────────────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.75rem; }
.stat-card { background: var(--bg2); padding: 1.25rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-card:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-pending .stat-num    { color: var(--yellow); }
.stat-open .stat-num       { color: var(--red); }
.stat-inprogress .stat-num { color: var(--orange); }
.stat-resolved .stat-num   { color: var(--green); }
.stat-total .stat-num      { color: var(--navy); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.admin-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.section-header h2 { font-size: 0.8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border-bottom: 1px solid var(--border); transition: background .1s; color: var(--text); }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg3); text-decoration: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-open        { background: var(--red); }
.dot-in_progress { background: var(--yellow); }
.dot-resolved    { background: var(--green); }
.dot-closed, .dot-wontfix { background: var(--text3); }
.activity-info { flex: 1; min-width: 0; }
.activity-title { display: block; font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.activity-meta  { font-size: 0.72rem; color: var(--text3); }
.project-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.project-row:last-child { border: none; }
.empty-msg { color: var(--text3); font-size: 0.875rem; }
.pending-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pending-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--bg2); border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.pending-item:last-child { border-bottom: none; }
.pending-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.comment-preview { color: var(--text2); }

/* ─── ADMIN TABLES ──────────────────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { background: var(--navy); color: #c8d3e8; font-weight: 600; text-align: left; padding: .6rem 1rem; border-bottom: 2px solid var(--accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.admin-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f5f7fb; }
.row-pending { background: #fffdf0; }
.row-pending td { opacity: .85; }
.action-cell { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.text-center { text-align: center; }

/* ─── FILTER BAR ────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; background: var(--bg2); border: 1px solid var(--border); padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-input { flex: 1; min-width: 150px; }
.filter-select { min-width: 140px; }

/* ─── ADMIN REPORT DETAIL ───────────────────────────────────────────────── */
.admin-report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.admin-report-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; flex-shrink: 0; }
.status-change-bar { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem 1rem; margin-bottom: 1.25rem; }
.status-form { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.status-form label { font-size: 0.72rem; color: var(--text2); font-weight: 700; margin-right: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.btn-status { background: var(--bg2); border: 1px solid var(--border); color: var(--text2); font-size: 0.76rem; font-weight: 600; padding: 4px 12px; border-radius: 2px; cursor: pointer; transition: all .12s; text-transform: uppercase; letter-spacing: .04em; }
.btn-status:hover { border-color: var(--border2); color: var(--text); }
.btn-status.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── ACTIVITY LOG ──────────────────────────────────────────────────────── */
.log-table-wrap { overflow-x: auto; max-height: 280px; overflow-y: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.log-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.log-table th { background: var(--bg3); color: var(--text3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; padding: .45rem .75rem; text-align: left; position: sticky; top: 0; border-bottom: 1px solid var(--border); font-weight: 700; }
.log-table td { padding: .4rem .75rem; border-bottom: 1px solid var(--border); }
.log-table tr:last-child td { border-bottom: none; }
.log-time { color: var(--text3); white-space: nowrap; font-family: var(--mono); font-size: 0.75rem; }
.log-table code { font-family: var(--mono); font-size: 0.76rem; color: var(--accent); background: var(--accent-light); padding: 1px 5px; border-radius: 2px; }

/* ─── AUTH PAGE ─────────────────────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 5rem 1rem; }
.auth-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; max-width: 400px; width: 100%; box-shadow: var(--shadow-md); border-top: 4px solid var(--navy); }
.auth-logo { font-size: 2.5rem; text-align: center; margin-bottom: .5rem; }
.auth-card h1 { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: .2rem; color: var(--navy); }
.auth-subtitle { text-align: center; color: var(--text3); margin-bottom: 2rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; }
.auth-hint { text-align: center; font-size: 0.72rem; color: var(--text3); margin-top: 1.25rem; }

/* ─── EMPTY STATE ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text2); }
.empty-icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--navy); }
.empty-state p  { margin-bottom: 1.5rem; font-size: 0.875rem; }

/* ─── SORT CONTROLS ─────────────────────────────────────────────────────── */
.sort-link { color: #c8d3e8; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sort-link:hover { color: #fff; text-decoration: none; }
.sort-icon { font-size: 0.72rem; opacity: .6; }
.sort-icon.active { opacity: 1; color: #93c5fd; }
.nowrap { white-space: nowrap; }
.no-comment { color: var(--text3); }
.last-comment-date { color: var(--text2); cursor: default; font-size: 0.82rem; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 1.25rem 0; text-align: center; color: var(--text3); font-size: 0.78rem; background: var(--bg2); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row        { grid-template-columns: 1fr; }
  .behavior-grid   { grid-template-columns: 1fr; }
  .dashboard-grid  { grid-template-columns: 1fr; }
  .admin-report-header { flex-direction: column; }
  .admin-report-actions { width: 100%; }
  .hero h1         { font-size: 1.5rem; }
  .stats-row       { gap: 1.5rem; }
  .report-card     { flex-wrap: wrap; }
  .filter-bar      { flex-direction: column; align-items: stretch; }
  .filter-input, .filter-select { width: 100%; }
  .stat-cards      { grid-template-columns: repeat(3, 1fr); }
  .container       { padding: 0 1rem; }
  .main-content    { padding: 1.25rem 1rem 3rem; }
}
