/* LeadFinder — warm amber / gold enterprise theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f8f4ec; color: #3d2f1f; font-size: 14px; }
.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: 230px; background: linear-gradient(180deg, #2b1f12 0%, #3a2a15 100%); color: #f4e6c8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(244,230,200,.15); }
.brand-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #f0a92b, #d98b0b); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #2b1f12; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .3px; }
.brand-sub { font-size: 10.5px; color: #cbb27f; }
nav { padding: 12px 0; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: #e8d7ae; text-decoration: none; font-weight: 600; font-size: 13.5px; border-left: 3px solid transparent; transition: all .15s; }
.nav-item:hover { background: rgba(240,169,43,.12); color: #ffd98a; }
.nav-item.active { background: rgba(240,169,43,.18); border-left-color: #f0a92b; color: #ffd98a; }
.ni { width: 18px; text-align: center; }
.side-foot { padding: 12px 16px; font-size: 10px; color: #b09a6c; border-top: 1px solid rgba(244,230,200,.15); }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: #fffdf8; border-bottom: 2px solid #e8d5a8; }
.page-title { font-size: 21px; font-weight: 800; color: #6b4a12; }
.top-actions { display: flex; gap: 8px; }
.content { padding: 22px 28px; }

/* Buttons — always labeled (never icon-only) */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid #c9a45c; background: #fff; color: #6b4a12; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn:hover { background: #fdf3dc; }
.btn-primary { background: linear-gradient(135deg, #f0a92b, #d98b0b); border-color: #c07f09; color: #2b1f12; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-danger { background: #b5402a; border-color: #93301e; color: #fff; }
.btn-danger:hover { background: #c74a32; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: wait; }

/* Cards & stat boxes */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: #fffdf8; border: 1px solid #ead9b4; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(107,74,18,.07); }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: #a3803f; margin-bottom: 12px; font-weight: 800; }
.stat-box { text-align: left; border-top: 3px solid #f0a92b; }
.stat-num { font-size: 30px; font-weight: 800; color: #6b4a12; line-height: 1.1; }
.stat-label { font-size: 12px; font-weight: 700; color: #a3803f; margin-top: 3px; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; }
.status-chip { background: #fff; border: 1px solid #e2c98f; border-radius: 10px; padding: 10px 16px; min-width: 120px; }
.status-chip .n { font-size: 22px; font-weight: 800; color: #6b4a12; }
.status-chip .t { font-size: 11.5px; font-weight: 700; color: #a3803f; text-transform: uppercase; letter-spacing: .5px; }
.status-chip.dnc { background: #fdeae4; border-color: #e4b4a4; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fffdf8; border: 1px solid #ead9b4; border-radius: 12px; overflow: hidden; }
th { background: #f3e6c6; color: #6b4a12; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; padding: 11px 12px; text-align: left; white-space: nowrap; }
th a { color: #6b4a12; text-decoration: none; }
td { padding: 10px 12px; border-top: 1px solid #f0e4c8; vertical-align: middle; }
tr:hover td { background: #fdf6e5; }
.clickable-row { cursor: pointer; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.b-new { background: #e8f0fd; color: #27518c; }
.b-contacted { background: #fdf0d5; color: #9c6b0c; }
.b-replied { background: #e3f4e5; color: #2c6e38; }
.b-meeting { background: #ece1fa; color: #5c3a9e; }
.b-won { background: #d2f0d8; color: #1e6b2e; }
.b-lost { background: #eee9e1; color: #7a6c58; }
.b-dnc { background: #f8d7cc; color: #93301e; }
.b-high { background: #d2f0d8; color: #1e6b2e; }
.b-medium { background: #fdf0d5; color: #9c6b0c; }
.b-low { background: #eee9e1; color: #7a6c58; }
.b-none { background: #d2f0d8; color: #1e6b2e; }
.b-social { background: #ece1fa; color: #5c3a9e; }
.b-real { background: #f8d7cc; color: #93301e; }
.b-walkin { background: #e0eef4; color: #235d75; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: #6b4a12; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d6bc84; border-radius: 8px; background: #fff; color: #3d2f1f; font-size: 13.5px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f0a92b; border-color: #d98b0b; }
textarea { min-height: 110px; resize: vertical; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.checkbox-list label { display: flex; gap: 7px; align-items: center; background: #fff; border: 1px solid #e2c98f; border-radius: 8px; padding: 8px 10px; font-weight: 600; font-size: 13px; cursor: pointer; color: #3d2f1f; text-transform: none; letter-spacing: 0; }
.checkbox-list input:checked + span { color: #a06e08; font-weight: 800; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .field { margin-bottom: 0; min-width: 140px; }
.filter-bar .field.grow { flex: 1; min-width: 220px; }

/* Misc */
.flash { padding: 11px 18px; border-radius: 8px; margin: 12px 28px 0; font-weight: 600; }
.flash.ok { background: #e3f4e5; color: #2c6e38; border: 1px solid #b5dcbd; }
.flash.error { background: #fdeae4; color: #93301e; border: 1px solid #e4b4a4; }
.muted { color: #a08b5f; font-size: 12px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 14px; font-size: 13.5px; }
.kv dt { font-weight: 800; color: #a3803f; }
.progress-wrap { background: #eee2c2; border-radius: 8px; height: 10px; overflow: hidden; margin: 8px 0; }
.progress-bar { background: linear-gradient(90deg, #f0a92b, #d98b0b); height: 100%; border-radius: 8px; }
.compliance { background: #fdf3dc; border: 1px solid #e2c98f; border-radius: 10px; padding: 14px 18px; font-size: 12.5px; line-height: 1.7; }
.compliance b { color: #8a5e10; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #f0a92b, #d98b0b); color: #2b1f12; font-weight: 800; font-size: 14px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
@media (max-width: 900px) { .two-col, .grid-2 { grid-template-columns: 1fr; } .sidebar { width: 70px; } .brand-name, .brand-sub, .nav-item span:not(.ni), .side-foot { display: none; } }
