/* ============================================================================
   Athlete Pulse Widget — apw- prefix
   Coach dashboard: roster overview with today's session + injury flags
   ============================================================================ */

.apw-container {
    padding: 12px 16px;
    font-family: var(--font-family-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    color: var(--gray-800, #1f2937);
}

.apw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.apw-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--gray-900, #111827);
}

.apw-filter {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 0;
    background: #fff;
    color: var(--gray-600, #4b5563);
    cursor: pointer;
}

.apw-filter:focus {
    outline: none;
    border-color: var(--teal, #14b8a6);
}

.apw-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 380px;
    overflow-y: auto;
}

.apw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
    cursor: pointer;
    transition: background var(--transition-fast, 0.15s);
}

.apw-row:hover {
    background: var(--gray-50, #f9fafb);
}

.apw-row:last-child {
    border-bottom: none;
}

/* Avatar circle */
.apw-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* Middle: name + session */
.apw-info {
    flex: 1;
    min-width: 0;
}

.apw-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apw-session {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Session status indicators */
.apw-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.apw-dot-logged {
    background: var(--teal, #14b8a6);
}

.apw-dot-pending {
    background: #f59e0b;
}

/* Right indicators */
.apw-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.apw-injury-icon {
    color: #f59e0b;
    font-size: 16px;
    cursor: help;
}

.apw-lapsing-icon {
    color: #f59e0b;
    font-size: 14px;
    cursor: help;
}

/* Empty state */
.apw-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--gray-400, #9ca3af);
    font-size: 13px;
}

.apw-loading {
    text-align: center;
    padding: 20px 0;
    color: var(--gray-400, #9ca3af);
}

.apw-error {
    text-align: center;
    padding: 12px 0;
    color: var(--red, #ef4444);
    font-size: 12px;
}
