@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg:           #f2f1ed;
  --surface:      #ffffff;
  --surface2:     #f7f6f2;
  --border:       #e3e1d9;
  --border-mid:   #cccab8;
  --text:         #18181a;
  --text-2:       #6b6a64;
  --text-3:       #a3a198;
  --accent:       #1f4535;
  --accent-mid:   #2d6a4f;
  --accent-light: #eaf2ee;
  --danger:       #b91c1c;
  --danger-light: #fef2f2;
  --warning:      #92400e;
  --warning-light:#fffbeb;
  --success:      #14532d;
  --success-light:#f0fdf4;
  --info:         #1e3a8a;
  --info-light:   #eff6ff;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
}

body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s ease; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #163325; text-decoration: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); text-decoration: none; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border); }
.btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; padding: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.form-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; width: 100%; transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: var(--accent-mid); }
.form-input::placeholder { color: var(--text-3); }
.form-error { font-size: 13px; color: var(--danger); }
.form-hint { font-size: 12px; color: var(--text-3); }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-Pending { background: var(--warning-light); color: var(--warning); }
.badge-Reviewed { background: var(--info-light); color: var(--info); }
.badge-Approved { background: var(--success-light); color: var(--success); }
.badge-Needs-Follow-up { background: var(--danger-light); color: var(--danger); }

.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; text-decoration: none; }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-mid); flex-shrink: 0; }
.logo:hover { text-decoration: none; }

.page-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header-left { display: flex; align-items: center; gap: 16px; }
.page-header-title { font-size: 16px; font-weight: 600; }
.page-header-sub { font-size: 13px; color: var(--text-2); margin-top: 1px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1; }
.c-warning { color: var(--warning); }
.c-success { color: var(--success); }
.c-danger { color: var(--danger); }
.c-info { color: var(--info); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; cursor: pointer; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
tbody td { padding: 13px 16px; vertical-align: middle; }
.td-muted { color: var(--text-2); font-size: 13px; }
.td-bold { font-weight: 500; }
.mono { font-family: 'DM Mono', monospace; }

.tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 24px; }
.tab-btn { padding: 14px 4px; margin-right: 24px; font-size: 14px; font-weight: 500; color: var(--text-3); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-search { max-width: 220px; padding: 7px 12px; font-size: 13px; }
.filter-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-pill { padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; background: transparent; border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: all 0.12s; font-family: 'DM Sans', sans-serif; }
.filter-pill:hover { background: var(--surface2); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.status-select { padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; }

.detail-row td { background: var(--bg); padding: 0; }
.detail-panel { padding: 16px 20px; display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.detail-group { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.detail-link { font-size: 13px; color: var(--info); text-decoration: underline; word-break: break-all; }
.detail-none { font-size: 13px; color: var(--text-3); }

.dropzone { border: 1.5px dashed var(--border-mid); border-radius: var(--radius); padding: 24px 20px; cursor: pointer; transition: all 0.15s; background: var(--bg); text-align: center; }
.dropzone:hover, .dropzone.drag-over { border-color: var(--accent-mid); background: var(--accent-light); }
.dropzone.filled { border-style: solid; border-color: var(--success); background: var(--success-light); }
.dropzone-label { font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.dropzone-hint { font-size: 12px; color: var(--text-3); }
.dropzone-filename { font-size: 14px; font-weight: 500; color: var(--success); }
.dropzone-filesize { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.empty-state { padding: 48px 24px; text-align: center; color: var(--text-3); font-size: 14px; }
.admin-badge { background: var(--accent); color: white; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; }

.property-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.property-card-main { flex: 1; min-width: 160px; }
.property-card-name { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.property-card-meta { font-size: 13px; color: var(--text-3); }
.property-card-actions { display: flex; gap: 6px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 480px; border: 1px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; z-index: 200; opacity: 0; transform: translateY(8px); transition: all 0.2s; pointer-events: none; max-width: 320px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.dashboard-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 24px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.section-sub { font-size: 13px; color: var(--text-3); }

@media (max-width: 640px) {
  .page-header { padding: 14px 16px; }
  .dashboard-body { padding: 16px; }
  .modal { padding: 24px 20px; }
}
