@font-face {
    font-family: "Cooper";
    src: url("/static/fonts/Cooper[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1b2b3a;
    --muted: #5f6b7a;
    --accent: #ff7a59;
    --surface: #ffffff;
    --surface-muted: #f3f4f6;
    --border: #e6e8ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8f7f3;
    color: var(--ink);
    padding: 28px clamp(16px, 6vw, 64px) 60px;
}

h1, h2, h3 {
    font-family: "Cooper", "Times New Roman", serif;
    margin: 0;
}

.coach-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.coach-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.coach-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ghost-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn {
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.coach-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.coach-controls input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

.client-count {
    font-size: 13px;
    color: var(--muted);
}

.coach-table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.coach-table {
    width: 100%;
    border-collapse: collapse;
}

.coach-table th,
.coach-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.coach-table th {
    background: #f4f3ef;
    font-weight: 600;
    cursor: pointer;
}

.coach-table tbody tr:hover {
    background: #faf9f6;
}

.client-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 4px;
}

.client-link span {
    font-size: 12px;
    color: var(--muted);
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.badge.connected {
    border-color: #b7e4c7;
    background: #ecfdf3;
    color: #0f5132;
}

.badge.disconnected {
    border-color: #f2c7c7;
    background: #fff5f5;
    color: #8b2c2c;
    opacity: 0.5;
}

.badge-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
}

.badge-logo.linkedin { background: #0077b5; }
.badge-logo.google { background: #ea4335; }
.badge-logo.outlook { background: #0078d4; }

.report-status {
    display: grid;
    gap: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
    width: max-content;
}

.status-idle {
    background: #f3f4f6;
    color: #4b5563;
}

.status-in_progress {
    background: #fff7ed;
    color: #c2410c;
}

.status-queued {
    background: #eef2ff;
    color: #4338ca;
}

.status-complete {
    background: #ecfdf3;
    color: #0f5132;
}

.status-failed {
    background: #fff5f5;
    color: #b42318;
}

.progress {
    background: #f0f1f3;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0;
}

.report-meta {
    font-size: 12px;
    color: var(--muted);
}

.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.coach-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.card h3 {
    margin-bottom: 12px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.list li:last-child {
    border-bottom: none;
}

@media (max-width: 720px) {
    .coach-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .coach-table th,
    .coach-table td {
        padding: 12px;
        font-size: 13px;
    }
}
