:root { color: #172033; background: #f4f7fb; font-family: Arial, sans-serif; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.auth-page { display: grid; place-items: center; padding: 24px; }
.auth-card, .welcome-card { width: min(100%, 460px); padding: 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .08); }
.eyebrow { margin: 0 0 8px; color: #2563eb; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0 0 10px; }
.muted { color: #64748b; }
.form-stack { display: grid; gap: 10px; margin-top: 24px; }
label { font-weight: 700; font-size: .9rem; }
input { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; }
button { margin-top: 10px; padding: 12px 16px; border: 0; border-radius: 10px; color: #fff; background: #2563eb; font: inherit; font-weight: 700; cursor: pointer; }
.alert { margin-top: 20px; padding: 12px 14px; border-radius: 10px; color: #991b1b; background: #fee2e2; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 5vw; background: #fff; border-bottom: 1px solid #e2e8f0; }
.user-menu { display: flex; gap: 16px; align-items: center; }
.user-menu a { color: #2563eb; font-weight: 700; text-decoration: none; }
.page-shell { padding: 5vw; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.quick-link, .button { display: inline-block; padding: 9px 13px; border-radius: 9px; color: #1d4ed8; background: #dbeafe; font-size: .85rem; font-weight: 700; text-decoration: none; }
.quick-link.active, .quick-link:hover { color: #fff; background: #2563eb; }
.success { margin: 20px 0; padding: 12px 14px; border-radius: 10px; color: #166534; background: #dcfce7; }
.form-panel { margin-bottom: 20px; }
.prospect-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prospect-form label { display: grid; gap: 6px; }
.prospect-form textarea { resize: vertical; }
.prospect-form button { align-self: end; }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-form input, .filter-form select { width: auto; min-width: 190px; }
.button.secondary { color: #475569; background: #e2e8f0; }
.button.danger { border: 0; color: #991b1b; background: #fee2e2; cursor: pointer; font: inherit; }
td small { display: block; color: #64748b; }
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.empty-state { padding: 30px; color: #64748b; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card, .panel { padding: 22px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 35px rgba(15, 23, 42, .05); }
.stat-card { display: grid; gap: 12px; }
.stat-card span { color: #64748b; font-size: .85rem; }
.stat-card strong { color: #0f172a; font-size: 2rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1.15rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { color: #64748b; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.activity-list { display: grid; gap: 12px; }
.activity-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { font-size: .88rem; }
.activity-item small { margin-top: 3px; color: #64748b; }
.activity-type { flex: 0 0 auto; align-self: flex-start; padding: 4px 8px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: .7rem; font-weight: 700; }
.app-body { background: #f5f7f9; color: #172033; }
.app-layout { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 250px; flex-direction: column; width: 250px; height: 100vh; padding: 28px 16px 18px; color: #d8f4ef; background: #103c3a; box-shadow: 12px 0 35px rgba(15, 61, 59, .12); z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 32px; color: #fff; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 1.08rem; letter-spacing: -.02em; }
.sidebar-brand small { margin-top: 2px; color: #9ed4cb; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: #f97316; font-weight: 800; letter-spacing: -.08em; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-label { margin: 12px 10px 7px; color: #83b9b1; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 11px; border-radius: 11px; color: #c5e4df; font-size: .9rem; font-weight: 600; text-decoration: none; transition: .2s ease; }
.sidebar-link span { width: 22px; color: #79b8ae; font-size: .68rem; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgba(255, 255, 255, .12); }
.sidebar-link.active { box-shadow: inset 3px 0 #f97316; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(216, 244, 239, .16); color: #9ed4cb; font-size: .75rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .12); }
.app-main { flex: 1; min-width: 0; }
.app-main .topbar { position: sticky; top: 0; z-index: 10; padding: 20px 4vw; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 18px rgba(15, 23, 42, .03); }
.app-main .topbar > div:first-of-type { display: flex; align-items: center; gap: 16px; }
.app-main .topbar h1 { color: #102f3d; font-size: 1.55rem; }
.menu-toggle { display: none; margin: 0 0 0 0; padding: 9px 11px; color: #103c3a; background: #e1f1ee; }
.app-main .user-menu { gap: 10px; }
.app-main .user-menu span { display: inline-block; }
.app-main .logout-link { color: #0f766e; }
.dashboard-content { padding: 32px 4vw 48px; }
.dashboard-content .quick-links { display: none; }
.dashboard-content .stats-grid { margin-bottom: 28px; }
.dashboard-content .stat-card { border-top: 3px solid #0f766e; }
.dashboard-content .panel-heading h2 { color: #102f3d; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .58); z-index: 100; }
.modal-card { width: min(100%, 760px); max-height: min(90vh, 820px); overflow-y: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(15, 23, 42, .24); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-heading h2 { color: #102f3d; }
.modal-close { margin: 0; padding: 5px 10px; color: #64748b; background: #eef2f7; font-size: 1.2rem; line-height: 1; }
.modal-close:hover { color: #102f3d; background: #e2e8f0; }
.modal-open { overflow: hidden; }
.add-action { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 16px; color: #fff; background: linear-gradient(135deg, #f97316, #ea580c); }
.add-action:hover { color: #fff; background: linear-gradient(135deg, #ea580c, #c2410c); }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.list-filter { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 10px; margin: 0; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.list-filter input, .list-filter select { min-width: 180px; flex: 1; }
.list-filter button { margin: 0; }
.list-filter .button { white-space: nowrap; }
.form-panel { border: 0; background: transparent; box-shadow: none; padding: 0; }
body.app-body > .app-layout .page-shell > .form-panel { margin-bottom: 20px; }
@media (max-width: 700px) { .modal { padding: 12px; } .modal-card { padding: 20px; } .list-toolbar { align-items: stretch; flex-direction: column; } .list-filter { align-items: stretch; flex-direction: column; } .list-filter input, .list-filter select { width: 100%; } }
@media (max-width: 900px) { .sidebar { flex-basis: 220px; width: 220px; } }
@media (max-width: 700px) { .sidebar { position: fixed; left: -260px; height: 100vh; transition: left .25s ease; } .sidebar.is-open { left: 0; } .menu-toggle { display: inline-block; } .app-main .topbar { padding: 16px 20px; } .dashboard-content { padding: 24px 20px 36px; } .app-main .user-menu span { display: none; } }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .prospect-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar { align-items: flex-start; flex-direction: column; } .user-menu { flex-wrap: wrap; } .stats-grid { grid-template-columns: 1fr; } }
