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

:root {
    --bg: #f7f5f1;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e7e2da;
    --green: #0f3d36;
    --green-soft: #e6f1ed;
    --orange: #e9772f;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

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

button,
input {
    font: inherit;
}

.login-body,
.install-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(15, 61, 54, 0.14), transparent 32%),
        linear-gradient(135deg, #f7f5f1, #ffffff);
}

.auth-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-mark,
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-weight: 800;
}

.auth-card h1 {
    margin: 22px 0 6px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.auth-card p {
    color: var(--muted);
}

.auth-card form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 650;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    background: white;
}

.button {
    border: 0;
    background: var(--green);
    color: white;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff1f1;
    color: #a11212;
    border: 1px solid #ffd7d7;
}

.success {
    padding: 12px 14px;
    border-radius: 14px;
    background: #edfff6;
    color: #0d6846;
    border: 1px solid #b9edd5;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 276px 1fr;
}

.sidebar {
    background: rgba(255, 255, 255, 0.74);
    border-right: 1px solid var(--line);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    backdrop-filter: blur(18px);
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 14px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    padding: 13px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 600;
}

.nav a.active,
.nav a:hover {
    background: var(--green-soft);
    color: var(--green);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-footer small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    text-transform: capitalize;
}

.sidebar-footer button {
    border: 0;
    background: #f1eee9;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.main {
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin: 0 0 6px;
}

.topbar h1 {
    font-size: 38px;
    margin: 0;
    letter-spacing: -0.05em;
}

.search-box {
    width: min(420px, 40vw);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.8);
    color: var(--muted);
    border-radius: 18px;
    padding: 15px 18px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.metric-card,
.panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(17,24,39,0.05);
}

.metric-card {
    padding: 22px;
}

.metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 10px 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.panel {
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.panel-header span {
    color: var(--green);
    font-weight: 800;
}

.checklist {
    display: grid;
    gap: 14px;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
}

.checklist input {
    width: auto;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .search-box {
        width: 100%;
    }
}


.muted {
    color: var(--muted);
    line-height: 1.6;
}

.code-block {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: #111827;
    color: #f9fafb;
    overflow-x: auto;
    margin: 12px 0 22px;
}

.lead-list {
    display: grid;
    gap: 10px;
}

.lead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.lead-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--green-soft);
    color: var(--green);
}

.pill.soft {
    background: #f1eee9;
    color: #4b5563;
}

.install-help {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.install-help h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.install-help ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.install-help code {
    color: var(--green);
    font-weight: 800;
}


.notice-card {
    padding: 18px 20px;
    border: 1px solid #f3d19c;
    background: #fff8ed;
    color: #7c4a03;
    border-radius: 20px;
    margin-bottom: 18px;
}

.notice-card p {
    margin: 6px 0 0;
    color: #7c4a03;
}
